Link to home
Start Free TrialLog in
Avatar of skiabox
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/CodeCoverage/Filter.php): failed to open stream: No such file or directory in /Users/skiabox/pear/bin/phpunit on line 38
PHP Fatal error:  require_once(): Failed opening required 'PHP/CodeCoverage/Filter.php' (include_path='.:/Users/skiabox/ZendFramework/library:/Users/skiabox/pear/bin') in /Users/skiabox/pear/bin/phpunit on line 38


Any ideas guys?
Thank you.
Avatar of Carlos Llanos
Carlos Llanos
Flag of United States of America image

Can you post the file that is causing the error?  It appears that it is located in these directories:

PHP\CodeCoverage\Filter.php

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.  
Avatar of skiabox
skiabox

ASKER

The file exists :
/Users/skiabox/pear/share/pear/PHP/CodeCoverage

phpunit is located at /Users/skiabox/pear/bin

My operating system is MacOS.

What do you suggest me doing?

Thnx again.
Avatar of skiabox

ASKER

Pear version is 1.9.4
ASKER CERTIFIED SOLUTION
Avatar of Beverley Portlock
Beverley Portlock
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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