我已經安裝了我的系統(Ubuntu的11)上的PHPUnit的全新副本,但每當我在控制檯中我得到以下錯誤類型phpunit
:調用未定義的方法PHP_CodeCoverage_Filter ::的getInstance()
PHP Fatal error: Call to undefined method PHP_CodeCoverage_Filter::getInstance() in /usr/bin/phpunit on line 39
我已經安裝PHPUnit的代碼覆蓋率,據我所知:
>sudo pear install phpunit/PHP_CodeCoverage
phpunit/PHP_CodeCoverage is already installed and is the same as the released version 1.1.1
install failed
爲什麼我得到這個錯誤,我該如何解決它?
安裝了哪些版本的PHPUnit? 'pear info phpunit/PHPUnit'看來'phpunit'可執行腳本沒有更新到3.6.x. – 2012-02-08 01:05:09
'發行日期2012-01-27 10:49:19 發行版本3.6.10(穩定)' – 2012-02-08 01:26:09
截至2014年底,您無法通過pear安裝phpunit。 https://github.com/sebastianbergmann/phpunit/wiki/End-of-Life-for-PEAR-Installation-Method – siliconrockstar 2015-02-20 03:36:32