I followed the instructions given by CakePHP 2.x (via test.php) to install PHPUnit:
pear channel-discover pear.phpunit.de
pear channel-discover components.ez.no
pear channel-discover pear.symfony-project.com
pear install phpunit/PHPUnit-3.6.4
That all seemed to finish successfully, but test.php still says PHPUnit is not installed!
It also says to verify that PHPUnit is in the include_path in php.ini. I'm not exactly sure which path should be in the include_path. My current include_path is:
include_path=".;C:\Program Files (x86)\PHP\v5.3\PEAR\pear;C:\Program Files (x86)\PHP\v5.3\pear"
I don't see a PHPUnit folder or anything like that, though there is a PHPUnit-3.5.14.tar file in C:\Program Files (x86)\PHP\v5.3\PEAR\. I'm very new to PEAR, so it could easily be something fundamental going wrong.
I also tried restarting IIS after running the PEAR commands.
C:\Program Files (x86)\PHP\v5.3\PEAR\pearlooks right for the include to work. You should also findC:\Program Files (x86)\PHP\v5.3\PEAR\pear\PHPUnit\Autoload.phpif it installed okay. Because PEAR is installed within Program Files check you have administrator privileges when installing. Also there was a recent change to installation instructions in the docs.