I have a new version 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 code coverage 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 to fix it?
ubuntu phpunit pear
Ian Hunter Feb 08 2018-12-12T00: 00Z
source share