I successfully installed PHPUnit on my desktop PC and decided to have it on my laptop PC, but... then I try to create PHPUnit test Netbeans throws an error "Selected PHPUnit (version ?.?.?) is to old, upgrade it if possible (the minimum version is 3.3.0).".
Of course my PHPUnit version is newer - 3.5.5-2. Where is the problem?
I am using
- Ubuntu 11.04
- Netbeans 6.9
- PEAR Version: 1.9.1
- PHP Version: 5.3.5-1ubuntu7.2
- Zend Engine Version: 2.3.0
As I understand the problem is with PHPUnit. When I try to call "phpunit" command in terminal I receive PHP Fatal error:
root@ubuntu:~# phpunit –version
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
root@ubuntu:~# find / -name CodeCov*
root@ubuntu:~#
As you can see there is no such file or folder in my PC. What to do?
I tried to reinstall it many times (with apt-get, pear, Synaptic PM...), but always get the same result.
PHP_CodeCoverage?