XDEBUG Extension (optional)
The XDebug extension will allow you to track down errors more easily, thanks to display of call stacks for instance. This extension should be present _ONLY_ on your development platform and not on your production platform.
Download this extension against your version of PHP on http://www.xdebug.org.
Copy the extension php_xdebug.dll or php_xdebug.so in the PHP extensions directory (by default php/extensions/).
Register this extension in the php.ini adding the line
#under windows extension=php_xdebug.dll #under linux extension=php_xdebug.so
In the same way, activate the extension, always in php.ini
xdebug.profiler_enable = 1; #under windows: xdebug.profiler_output_dir = C:/path #under linux xdebug.profiler_output_dir = /path/
Restart your web server and check that the extension is actually activated. Using phpinfo(), you should see a XDEBUG section.
If this doesn't work, go to the XDEBUG installation guide for more detailed informations.
PHPUnit
Two solutions are available to install PHPUnit.
- The first is to download the sources and to copy the PHPUnit directory in the www directory of your project.
- The second, the prefered one, is to use the Pear installer.
First, add the channel Pear.phpunit.de to your installation :
pear channel-discover pear.phpunit.de
This is to be done once and will allow you to install PHPUnit using the next command
pear install phpunit/PHPUnit
