PHPUnit在未作为rute执行时抛出错误

时间:2013-06-07 20:09:23

标签: php phpunit pear

我已经通过Pear安装了PHPunit,以及PHP 5.4.11。我已经google'd我的解决方案,导致stackoverflow上的其他页面,其中没有一个能够解决我的问题。对不起,我不能简单地“查找”,因为我已经尝试过了,并且仍然在为了解决为什么我在启动phpunit而不是root时收到此错误的问题。

[james@roberts ~]$ phpunit --version
PHP Warning:  require_once(File/Iterator/Autoload.php): failed to open stream: No such file or directory in /usr/local/lib/php/PHPUnit/Autoload.php on line 64

Warning: require_once(File/Iterator/Autoload.php): failed to open stream: No such file or directory in /usr/local/lib/php/PHPUnit/Autoload.php on line 64
PHP Fatal error:  require_once(): Failed opening required 'File/Iterator/Autoload.php' (include_path='.:/usr/local/share/pear:/usr/local/pear/share/pear:/root/pear/share/pear') in /usr/local/lib/php/PHPUnit/Autoload.php on line 64

Fatal error: require_once(): Failed opening required 'File/Iterator/Autoload.php' (include_path='.:/usr/local/share/pear:/usr/local/pear/share/pear:/root/pear/share/pear') in /usr/local/lib/php/PHPUnit/Autoload.php on line 64
[james@roberts ~]$ sudo phpunit --version
PHPUnit 3.7.21 by Sebastian Bergmann.

0 个答案:

没有答案