Line 129:
Line 129:
*Project-page: https://phpunit.de/
*Project-page: https://phpunit.de/
*Download a release archive from https://github.com/sebastianbergmann/phpunit and extract it to a directory that is listed in the include_path of your php.ini configuration file.
*Download a release archive from https://github.com/sebastianbergmann/phpunit and extract it to a directory that is listed in the include_path of your php.ini configuration file.
−
*Prepare the phpunit script:
−
**For Linux: Rename the phpunit.php script to phpunit and replace the @php_bin@ string in it with the path to your PHP command-line interpreter (usually /usr/bin/php).
−
**For Windows: Replace the @php_bin@ string in file phpunit.bat with the path of your PHP command-line interpreter and @bin_dir@ string with the path of the PHPunit directory.
−
**Edit your Path to inclulde PHPunit directory
−
**Make script runnable (chmod +x phpunit on Linux).
−
*Prepare the PHPUnit/Util/PHP.php script:
−
**Replace the @php_bin@ string if it exists in file it with the path to your PHP command-line interpreter (usually /usr/bin/php).
*Module xdebug can also be required if you plan to make reporting of test code covering.
*Module xdebug can also be required if you plan to make reporting of test code covering.
====Execute PHPUnit tests or generate code coverage reports====
====Execute PHPUnit tests or generate code coverage reports====
−
*Go into directory '''/test''' of sources. Read file '''README''' to know the process to execute a unit test campaign.
+
*Go into directory '''/test''' of sources. Read file '''README''' to know the process to execute one or several unit tests.
====Install other quality tools (phpcs, phpcd, phpdepends)====
====Install other quality tools (phpcs, phpcd, phpdepends)====