I checked the PHPUnit folder, it was still there?
That might be because of sub-components (Extensions, Framework). However you must not be concerned about that.
To install the latest version, do the following two commands:
> pear config-set auto_discover 1
config-set succeeded
> pear upgrade
...
This will take some time, and will update all that is currently installed. As you have some extensions already available and the latest version of PHPUnit might require those, so update them to prevent failure in the next command:
> pear install pear.phpunit.de/PHPUnit
This should now install it:
Did not download optional dependencies: phpunit/PHP_Invoker, use --alldeps to download automatically
phpunit/PHPUnit can optionally use package "phpunit/PHP_Invoker" (version >= 1.0.0)
downloading PHPUnit-3.6.7.tgz ...
Starting to download PHPUnit-3.6.7.tgz (118,349 bytes)
..........................done: 118,349 bytes
install ok: channel://pear.phpunit.de/PHPUnit-3.6.7
Troubleshooting PEAR
As you reported in comments, this did not work out. Probably pear is in a state that it does not know where top and bottom is. Time to force. First, clear the cache:
> pear clear-cache
reading directory C:\...\Temp\pear\cache
0 cache entries cleared
Then force channel updates:
> pear channel-update -f pear.php.net
Updating channel "pear.php.net"
Update of Channel "pear.php.net" succeeded
> pear channel-update -f pear.phpunit.de
Updating channel "pear.phpunit.de"
Update of Channel "pear.phpunit.de" succeeded
Then force the phpunit install:
> pear install -a -f phpunit/PHPUnit
>C:\>pear list -c pear.phpunit.de
>INSTALLED PACKAGES, CHANNEL PEAR.PHPUNIT.DE:
============================================
PACKAGE VERSION STATE File_Iterator 1.3.0 stable PHPUnit_MockObject 1.1.0 stable PHP_CodeCoverage 1.1.1 stable PHP_Timer 1.0.2 stable PHP_TokenStream 1.1.1 stable Text_Template 1.1.1 stable – Leo Lerdorf Jan 05 '12 at 09:39