A few months before I wrote an article on how to install phpunit on windows. Now when I tried to install phpunit on ubuntu I faced an error phpunit/PHPUnit requires PEAR Installer (version >= 1.9.4), installed version is 1.9.2 .
Here is the steps which I used to get rid of this error.
- Install php-pear
sudo apt-get install php-pear
- Update its own channel
sudo pear channel-update pear.php.net
- Upgrade pear
sudo pear upgrade-all
- Now install PHPunit
sudo pear install –alldeps pear.phpunit.de/PHPUnit
Yes. It worked.