Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <h1>Install via GIT</h1> <p>You can follow the instructions from the Git README: <a href="https://github.com/sebastianbergmann/phpunit/" rel="noreferrer">https://github.com/sebastianbergmann/phpunit/</a></p> <h2>"git" the files and drop them in your home directory</h2> <pre><code>cd ~ &amp;&amp; mkdir phpunit &amp;&amp; cd phpunit git clone git://github.com/sebastianbergmann/phpunit.git git clone git://github.com/sebastianbergmann/dbunit.git git clone git://github.com/sebastianbergmann/php-file-iterator.git git clone git://github.com/sebastianbergmann/php-text-template.git git clone git://github.com/sebastianbergmann/php-code-coverage.git git clone git://github.com/sebastianbergmann/php-token-stream.git git clone git://github.com/sebastianbergmann/php-timer.git git clone git://github.com/sebastianbergmann/phpunit-mock-objects.git git clone git://github.com/sebastianbergmann/phpunit-selenium.git </code></pre> <h2>setup a personal binary path</h2> <pre><code>cd ~ &amp;&amp; mkdir bin vi ~/.profile &gt;&gt; export PATH=$HOME/bin:$PATH &gt;&gt; :wq source ~/.profile </code></pre> <h2>create the executable</h2> <pre><code>touch ~/bin/phpunit chmod 755 ~/bin/phpunit </code></pre> <h2>write the executable</h2> <pre><code>#!/usr/bin/env php &lt;?php // set main method define('PHPUnit_MAIN_METHOD','PHPUnit_TextUI_Command::main'); // add phpunit to the include path $paths = scandir($_ENV['HOME'].'/phpunit'); $includes = array(); foreach($paths as $path){ if (!preg_match('/^\./', $path)){ $includes[] = $_ENV['HOME'].'/phpunit/' . $path; } } set_include_path(implode(PATH_SEPARATOR,$includes).PATH_SEPARATOR.get_include_path()); // set the auto loader require 'PHPUnit/Autoload.php'; // execute PHPUnit_TextUI_Command::main(); </code></pre> <h2>test the executable</h2> <pre><code>which phpunit phpunit --version </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload