PHP_CodeCoverage_Filter::getInstance() Error running phpunit
问题 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() 回答1: Following steps solved my problem. sudo apt-get remove phpunit sudo pear channel-discover pear.phpunit