- Install PEAR . Issue the command sudo apt-get install php-pear.
- Make sure PEAR is up to date. Issue the command sudo pear channel-update pear.php.net.
- Upgrade the PEAR elements. Issue the command sudo pear upgrade-all.
- Tell PEAR where to find the PHPUnit code. Issue the command sudo pear channel-discover pear.phpunit.de
- Install PHPUnit. Issue the command sudo pear install -a phpunit/PHPUnit. The -a makes sure all dependency packages are also installed.
- Issue the command phpunit --version. You should have version 3.3.17 or newer installed.
- Install XDebug. Issue the command sudo apt-get install php5-xdebug. This is needed if you want the HTML based coverage reports.
- Restart the web server after installing this package. (sudo /etc/init.d/apache restart ).
reference
No comments:
Post a Comment