Running PHPUnit on command line errors out

♀尐吖头ヾ 提交于 2019-12-13 02:56:38

问题


I run this on the command line: phpunit --version

I get the following errors:

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

Anyone else run into these issues? It is also causing me issues when I try to run my tests via the command line.


回答1:


Ended being an issue with my include_path

This is my updated include path

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


来源:https://stackoverflow.com/questions/14309411/running-phpunit-on-command-line-errors-out

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!