I've got a fresh copy of PHPUnit installed on my system (Ubuntu 11), but whenever I type phpunit
in the console I get the following error:
PHP Fatal error: Call to undefined method PHP_CodeCoverage_Filter::getInstance() in /usr/bin/phpunit on line 39
I have PHPUnit's code coverage installed, as far as I know:
>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
Why am I getting this error and how can I fix it?
pear info phpunit/PHPUnit
It seems that thephpunit
executable script was not updated to 3.6.x. – David Harkness Feb 8 '12 at 1:05Release Date 2012-01-27 10:49:19 Release Version 3.6.10 (stable)
– Ian Hunter Feb 8 '12 at 1:26