升级phpunit窗口
我想在我的windows服务器上安装PHPUnit 3.7。我按照各种说明操作,最终得到了phpunit3.4.1。当我尝试再次安装时,请使用:升级phpunit窗口,phpunit,Phpunit,我想在我的windows服务器上安装PHPUnit 3.7。我按照各种说明操作,最终得到了phpunit3.4.1。当我尝试再次安装时,请使用: pear update channels pear install --alldeps phpunit/PHPUnit 我得到: phpunit/PHPUnit is already installed and is the same as the released version 3.4.15 install failed 我知道3.4.15不是
pear update channels
pear install --alldeps phpunit/PHPUnit
我得到:
phpunit/PHPUnit is already installed and is the same as the released version 3.4.15
install failed
我知道3.4.15不是最新版本。。。我怎样才能说服PEAR它应该在某个地方找到升级呢?试试这个:
pear upgrade-all
pear upgrade phpunit/PHPUnit
您可能希望在pear安装上使用--force(或-f)选项:
pear安装-a-f phpunit/phpunit
我在使用PHPUnit时遇到了问题,直到我发现我尝试了这个并成功了
pear upgrade --alldeps phpunit/phpunit
如果上述方法不适用于您,请尝试以下方法:
pear upgrade --alldeps --force phpunit/phpunit
你有没有清理过缓存
pear clear-cache
然后更新通道,并安装phpUnit。
如果失败,请清除缓存,完全卸载phpUnit,然后重新安装