Note : I\'ve read all questions about this problem
PEAR is installed and configured on my system (Ubuntu 11.10 + Apache/2.2.20). Because
<
I've just upgraded my Ubuntu system and I've got PEAR 1.9.4 stable. Run
sudo apt-get update
sudo apt-get upgrade
to get your Ubuntu synchronised and up to date.
If you were still struggling with the versions as above my suggestion is to install a previous version of PHP_CodeCoverage that is compatible with your phpunit. Before I upgraded my system, I had phpunit-3.5.15 (stable), PHP_CodeCoverage 1.0.5 (stable) installed with PEAR 1.9.2. If this is your phpunit version
sudo pear install PHP_CodeCoverage-1.0.5
should install PHP_CodeCoverage with PEAR 1.9.2.
I hope this helps and you get your unit tests running.