31,003
edits
m (→Setup) |
|||
| Line 149: | Line 149: | ||
== To develop or use PHPUnit test == | == To develop or use PHPUnit test == | ||
=== Instal PHPUnit === | |||
* Download a release archive from http://pear.phpunit.de/get/ and extract it to a directory that is listed in the include_path of your php.ini configuration file. | * Download a release archive from http://pear.phpunit.de/get/ and extract it to a directory that is listed in the include_path of your php.ini configuration file. | ||
* Prepare the phpunit script: | * Prepare the phpunit script: | ||
| Line 156: | Line 157: | ||
* Prepare the PHPUnit/Util/PHP.php script: | * Prepare the PHPUnit/Util/PHP.php script: | ||
** Replace the @php_bin@ string in it with the path to your PHP command-line interpreter (usually /usr/bin/php). | ** Replace the @php_bin@ string in 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. | |||
=== Execute PHPUnit tests === | |||
* Go into directory '''/test''' of CVS version. Read file '''README''' to know the process to execute a unit test campaign. | |||
= CVS Setup = | = CVS Setup = | ||