2012-01-13 74 views
6

我想在我的windows服務器上安裝PHPUnit 3.7。我遵循各種指令here,並以PHPUnit 3.4.1結束。當我嘗試使用安裝一遍:升級phpunit windows

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,它應該找到一個升級某處?

回答

1

試試這個:

pear upgrade-all 
pear upgrade phpunit/PHPUnit 
+0

試過了。它回來了:「沒有升級」 – user385762 2012-01-14 09:40:31

2

你可能想的--force(或-f)梨選項進行安裝:

pear install -a -f phpunit/PHPUnit

我當時正在與PHPUnit的問題,直到我發現this post

0

我試過併成功。

pear upgrade --alldeps phpunit/phpunit 

如果上述方法不爲你工作,請嘗試以下:

pear upgrade --alldeps --force phpunit/phpunit 
0

你有沒有任何機會清除緩存?

pear clear-cache 

然後更新通道,並安裝phpUnit。 如果失敗,請清除緩存,完全卸載phpUnit,然後重新安裝。