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
<?php
require_once 'System.php';
var_dump(class_exists('System', false));
?>
Returning this :
bool(true)
(PEAR Manual : Checking if PEAR works Step 4)
When i tried to use phpunit i'm getting this error.
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
After this error i've decided to install it
sudo /usr/bin/pear install phpunit/PHP_CodeCoverage
But i'm getting
phpunit/PHP_CodeCoverage requires PEAR Installer (version >= 1.9.4), installed version is 1.9.2
I'm getting this error when upgrading PEAR with sudo pear upgrade
PHP Fatal error: Call to undefined method PEAR_Registry::packageinfo() in /usr/share/php/PEAR/Dependency2.php on line 687
I'm not sure what is the problem ?
ADDITIONAL
(command
: result
)
/usr/bin/pear config-get php_dir
: /usr/share/php
Configuration File (php.ini) Path (on phpinfo();)
: /etc/php5/apache2
php -c /etc/php5/apache2/php.ini -r 'echo get_include_path()."\n";'
: .:/usr/share/php
pear upgrade pear
: PHP Fatal error: Call to undefined method PEAR_Registry::packageinfo() in /usr/share/php/PEAR/Dependency2.php on line 687
PEAR Version : 1.9.2 and php-pear
package installed.