Install PEAR if you haven’t already by opening up a new command window and entering the following commands cd \wamp\bin\php\php5.3.0 go-pear.bat
Press enter when the list of directories appears
When asked if you want PHP.ini to be modified press Y and then enter.
You will be told the include path is updated. Press enter.
You be will be told PEAR_ENV.reg has been created. PEAR_ENV.reg
Pear is installed, but it isn’t the newest version of the updater, so we should update because PHPUnit requires at least PEAR Updater 1.8.1 pear update-channels
Thankfully, we are nearly done our journey. We simply need to add a channel to PEAR and then we can install! pear channel-discover pear.phpunit.de pear install –alldeps phpunit/PHPUnit