php – phpunit require_once()错误
问题:
我最近通过pear安装程序在我的服务器上安装了phpunit。
当我去运行测试时,我收到以下错误:
PHP警告:require_once(PHPUnit / Util / Filter.php):无法打开流:第44行/ usr / bin / phpunit中没有此类文件或目录
PHP致命错误:require_once():在44行/ usr / bin / phpunit中打开所需的’PHPUnit / Util / Filter.php'(include_path =’。:/ usr / bin / php’)失败
在做了一些搜索之后,我尝试对服务器上的php.ini文件中的include_path进行一些修改。 但这没有做到。
知道可能导致这种情况的原因吗?
I recently installed phpunit on my server via the pear installer.When I go to run a test I get the following error:PHP Warning: require_once(PHPUnit/Util/Filter.php): failed to open stream: No such file or directory in /usr/bin/phpunit on line 44PHP Fatal error: require_once(): Failed opening required ‘PHPUnit/Util/Filter.php’ (include_path=’.:/usr/bin/php’) in /usr/bin/phpunit on line 44After doing some searching, I tried making some modifications to the include_path in my php.ini file on the server.But that hasn’t done a thing.Any idea what might be causing this?