Install PHPUnit in Windows, Wamp using PEAR

Go to the directory where PHP is located. Typically, this is <PATH-TO-YOUR-WAMP-INSTALLATION>\bin\php\php5.3.8

We’ll call this path “PHP’s location” throughout this article.

 

Now, install PEAR following instructions in this tutorial.

 

Open a command-prompt, go to PHP’s location using cd, and type:

 

pear channel-discover components.ez.no
pear channel-discover pear.phpunit.de
pear channel-discover pear.symfony-project.com
pear install –alldeps phpunit/PHPUnit

 

We’re done! type phpunit –version to confirm installation.

 

Reference:

http://www.ankara-gtug.org/2011/11/15/phpunit-installation-on-wamp-in-windows-7-and-integration-with-eclipse-2/