我已经尝试了一切,包括https://stackoverflow.com/a/8740349/251311以及所有可能的频道升级和清除缓存命令。但仍然:
$ sudo pear install -a -f phpunit/PHPUnit
downloading PHPUnit-3.6.12.tgz ...
Starting to download PHPUnit-3.6.12.tgz (120,240 bytes)
..........................done: 120,240 bytes
install ok: channel://pear.phpunit.de/PHPUnit-3.6.12
尽管:
$ pear list-upgrades
Channel pear.php.net: No upgrades available
pear.phpunit.de Available Upgrades (stable):
============================================
Channel Package Local Remote Size
pear.phpunit.de PHPUnit 3.6.12 (stable) 3.7.10 (stable) 115kB
pear.phpunit.de PHPUnit_MockObject 1.1.1 (stable) 1.2.2 (stable) 19.9kB
pear.phpunit.de PHPUnit_Selenium 1.2.8 (stable) 1.2.11 (stable) 38kB
pear.phpunit.de PHP_CodeCoverage 1.1.4 (stable) 1.2.7 (stable) 155kB
pear.phpunit.de PHP_TokenStream 1.1.4 (stable) 1.1.5 (stable) 9.7kB
pear.phpunit.de Text_Template 1.1.3 (stable) 1.1.4 (stable) 3.6kB
奖
如果有人暗示可能导致 PEAR 无法将 phpunit 升级到可能的最新版本(使用 PEAR),将获得 100 分奖励。