install pear and php unit

March 18th, 2011 § 2 comments § 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.

 cd /path/to/php/
 php.exe path/to/go-pear.php
  • A wizard will take you to provide settings

IF the installation is success now its time to install the PHPUnit framework

  • run these commands
 pear channel-discover
 pear channel-discover
 pear channel-discover
 pear install phpunit/PHPUnit