Comment 9 for bug 701544

Revision history for this message
Steffen H. (shulegaa) wrote :

   On a totally up-to-date Ubuntu 11.04 system, sudo apt-get install phpunit still installs a completely useless phpunit package - as reported about a year ago above. How does this sort of package pass even the most cursory of QA checks? This precedent is a bit disturbing. I imagine I just don't know the story/context. At any rate:

phpunit --verbose
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 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

    Even following the work-around, there's a non-fatal configuration problem. I'm not sure when/if this will cause any hard-to-diagnose side-effects:

phpunit --verbose .
PHP Notice: Please no longer include "PHPUnit/Framework.php". in /usr/share/php/PHPUnit/Framework.php on line 50
PHPUnit 3.5.5 by Sebastian Bergmann.

    It looks as if PHP is going to require using PEAR more than apt-get. Hmm. This sounds like a slippery slope.

    By the way, I followed the amalgamated work-around contributed above. A *huge* thanks to to posters above:

sudo apt-get remove phpunit
sudo pear upgrade pear
sudo pear channel-discover pear.phpunit.de
sudo pear channel-discover pear.symfony-project.com
sudo pear channel-discover components.ez.no
sudo pear update-channels
sudo pear upgrade-all
sudo pear install --alldeps phpunit/PHPUnit
sudo apt-get install phpunit

Cheers