[英]How do I update phpunit?
我已經嘗試了一切 ,包括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分獎勵。
好吧,我使用ubuntu lts 10.04,它有php 5.3.2版本。
雖然phpunit 3.7依賴於php> = 5.3.3(盡管它沒有明確顯示在任何地方)
我將我的Ubuntu更新為12.10,它給了PHP 5.4.x,然后是更新版本的PHPUnit。 我相信你需要PHP的5.4.x才能使用最新的PHPUnit。 嘗試將PHP更新為5.4.x,然后再次嘗試PHPUnit更新。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.