31,003
edits
| Line 144: | Line 144: | ||
== To develop or use PHPUnit test == | == To develop or use PHPUnit test == | ||
=== Instal PHPUnit === | === From Eclipse === | ||
If you installed PHP Tool Integration plugin for Eclipse, menu to launch PHPUnit tests are available in your Eclipse menu. | |||
If not, you must install and run PHPUnit manually from command line. | |||
=== From Command Line === | |||
==== 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 155: | Line 160: | ||
* 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 === | ==== Execute PHPUnit tests ==== | ||
* Go into directory '''/test''' of CVS version. Read file '''README''' to know the process to execute a unit test campaign. | * Go into directory '''/test''' of CVS version. Read file '''README''' to know the process to execute a unit test campaign. | ||