To install phpunit, the only way is to use PEAR. However I got annoying errors during the process.
1. apt-get does not install latest Pear, it only install the PEAR up to verision 1.9.2 which will be complained then when you are installing phpunit. Use this,
2. Then install phpunit$ wget http://pear.php.net/go-pear.phar
$ php go-pear.phar
pear channel-discover pear.phpunit.de3. Setup netbeans for phpunit
pear install phpunit/PHPUnit
The right path of phpunit is /home/xxx/pear/bin/phpunit not /usr/lib/php/PHPUnit as documented on neatbeans official website.
No comments:
Post a Comment