在命令行错误上运行PHPUnit

时间:2013-01-13 23:20:17

标签: php phpunit

我在命令行上运行它:phpunit --version

我收到以下错误:

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

其他人遇到这些问题?当我尝试通过命令行运行测试时,它也会引起我的问​​题。

1 个答案:

答案 0 :(得分:3)

结束了我的include_path

的问题

这是我更新的包含路径

include_path = ".:/php/includes:/usr/lib/php/pear"