我尝试在 Windows 7 上安装 phpunit,但我遇到了这样的问题:
C:\wamp\bin\php\php5.3.13>pear channel-discover components.ez.no
Adding Channel "components.ez.no" succeeded
Discovery of channel "components.ez.no" succeeded
C:\wamp\bin\php\php5.3.13>pear channel-discover pear.phpunit.de
Channel "pear.phpunit.de" is already initialized
C:\wamp\bin\php\php5.3.13>pear channel-discover pear.symfony.com
Channel "pear.symfony.com" is already initialized
C:\wamp\bin\php\php5.3.13>pear install --alldeps phpunit/PHPUnit
downloading PHPUnit-3.7.9.tgz ...
Starting to download PHPUnit-3.7.9.tgz (116,997 bytes)
.........................done: 116,997 bytes
Could not delete pear\phpunit, cannot rename pear\.tmpphpunit
ERROR: commit failed
我不知道发生了什么,我已经搜索了几个小时但找不到解决方案。谢谢你的帮助!