skiabox
asked on
PHPUnit problem
I have installed phpunit but when I run (at macos command prompt) the command phpunit --version I get the following errors:
PHP Warning: require_once(PHP/CodeCover age/Filter .php): failed to open stream: No such file or directory in /Users/skiabox/pear/bin/ph punit on line 38
PHP Fatal error: require_once(): Failed opening required 'PHP/CodeCoverage/Filter.p hp' (include_path='.:/Users/sk iabox/Zend Framework/ library:/U sers/skiab ox/pear/bi n') in /Users/skiabox/pear/bin/ph punit on line 38
Any ideas guys?
Thank you.
PHP Warning: require_once(PHP/CodeCover
PHP Fatal error: require_once(): Failed opening required 'PHP/CodeCoverage/Filter.p
Any ideas guys?
Thank you.
ASKER
The file exists :
/Users/skiabox/pear/share/ pear/PHP/C odeCoverag e
phpunit is located at /Users/skiabox/pear/bin
My operating system is MacOS.
What do you suggest me doing?
Thnx again.
/Users/skiabox/pear/share/
phpunit is located at /Users/skiabox/pear/bin
My operating system is MacOS.
What do you suggest me doing?
Thnx again.
ASKER
Pear version is 1.9.4
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Looking at the error again, the include path has /Users/skiabox/pear/bin rather than /Users/skiabox/pear/share/ pear
Another option is to move or copy the script Filter.php to /Users/skiabox/pear/bin or place a symbolic link there
Another option is to move or copy the script Filter.php to /Users/skiabox/pear/bin or place a symbolic link there
PHP\CodeCoverage\Filter.ph
My guess is that this file doesn't exist. It's being called in your script in line 38, but it can't find it at: Users\skiabox\pear\bin. Does the file exist? If so, is it readyonly? Try giving it full permissions to see what that will do.