PHP_CodeCoverage_Filter::getInstance() Error running phpunit
code-coverage, php, phpunit, zend-framework
Solution
Following steps solved my problem.
sudo apt-get remove phpunit
sudo pear channel-discover pear.phpunit.de
sudo pear channel-discover pear.symfony.com
sudo pear channel-discover components.ez.no
sudo pear update-channels
sudo pear upgrade-all
sudo pear install --alldeps phpunit/PHPUnit
sudo pear install --force --alldeps phpunit/PHPUnit
Problem
I have installed phpunit in my ubuntu 11.10 having php version 5.2.14. But when I run my test module it is throwing error, ``` PHP Fatal error: Call to undefined method PHP_CodeCoverage_Filter::getInstance() in /usr/share/php/PHPUnit/Autoload.php on line 64 ``` I followed the steps mention in this stack question but still no luck. Call to undefined method PHP_CodeCoverage_Filter::getInstance()