http://articles.sitepoint.com/article/getting-started-with-pear/
Open this with a web browser and save it to somewhere under your web root as a *.php file:
http://pear.php.net/go-pear
Execute it using the PHP CLI:
php go-pear.php
Follow the installation instructions, making sure you change paths to point to C:\Program Files\Zend\Zend Server\ bearing in mind that the PHP executable by default lives at C:\Program Files\Zend\Zend Server\bin\php.exe (and the installer will expect to find php.ini at C:\Program Files\Zend\Zend Server\etc\php.ini)
If PEAR doesn’t run via pear at the command line, even after you run the registry settings update which should add the path as an environment variable, the change directory to C:\Program Files\Zend\Zend Server\
Following the PHPUnit installation instructions via http://pear.phpunit.de
Registering the channel:
pear channel-discover pear.phpunit.de
Listing available packages:
pear remote-list -c phpunit
Installing a package:
pear install phpunit/package_name
Greate tutorial…..
Thanks