February 21st, 2012 § § permalink
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
Now we can check whether installation is success by typing phpunit in terminal.
Yes. It worked.
March 18th, 2011 § § permalink
Here is the step by step procedure to install pear and PHPUnit framework.
You can install pear either through browser or through command line. I highly recommend you to use command line since i failed twice in browser.
Make sure you added a path to php.exe into the Environment variable(php) in windows.
- A wizard will take you to provide settings
IF the installation is success now its time to install the PHPUnit framework
pear channel-discover pear.phpunit.de
pear channel-discover components.ez.no
pear channel-discover pear.symfony-project.com
pear install phpunit/PHPUnit