Phpunit stop working after upgrade to 11.04

¢ I've simply updated to 11.04 and also currently phpunit isn't functioning any longer: (( it was functioning penalty on 10.10). Below is what shows up in console:

[email protected]:/var/www/magento$ phpunit UnitTests.php 
PHP Warning:  require_once(PHP/CodeCoverage/Filter.php): failed to open stream: No such file or directory in /usr/bin/phpunit on line 38
PHP Stack trace:
PHP   1. {main}() /usr/bin/phpunit:0
PHP Fatal error:  require_once(): Failed opening required 'PHP/CodeCoverage/Filter.php' (include_path='.:/usr/share/php:/usr/share/pear') in /usr/bin/phpunit on line 38
PHP Stack trace:
PHP   1. {main}() /usr/bin/phpunit:0

Any pointer?

3
2022-06-07 14:37:08
Source Share
Answers: 3

For ubuntu 11.10 make use of the adhering to :

sudo apt-get install php-pear

sudo pear upgrade pear

sudo pear channel-discover pear.phpunit.de
sudo pear channel-discover components.ez.no
sudo pear channel-discover pear.symfony-project.com

sudo pear install --alldeps phpunit/PHPUnit
2
2022-06-28 19:59:35
Source

Unfortunately the Debian Package for PHPUnit is damaged, it does not include numerous Classes which are essential for PHPUnit given that the Version delivered with Natty:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=610676

So I recommend watching on it and also attempting with David is remedy.

1
2022-06-07 19:01:36
Source

as seen in SO, this benefited me:

sudo pear channel-discover pear.symfony-project.com
sudo pear channel-discover components.ez.no
sudo pear install --alldeps phpunit/PHPUnit
3
2022-06-07 14:58:44
Source