在命令行错误上运行PHPUnit [英] Running PHPUnit on command line errors out
本文介绍了在命令行错误上运行PHPUnit的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在命令行上运行它:phpunit --version
I run this on the command line: 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
还有其他人遇到这些问题吗?当我尝试通过命令行运行测试时,也会引起我一些问题.
Anyone else run into these issues? It is also causing me issues when I try to run my tests via the command line.
推荐答案
最后是我的include_path问题
Ended being an issue with my include_path
这是我更新的包含路径
include_path = ".:/php/includes:/usr/lib/php/pear"
这篇关于在命令行错误上运行PHPUnit的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文