任何人都可以帮助我解决我的问题。我想在 php5.6 上运行 phpunit 但遇到了问题
:~$ phpunit
PHP Warning: require_once(PHP/CodeCoverage/Filter.php): failed to open stream: No such file or directory in /usr/bin/phpunit on line 38
PHP Fatal error: require_once(): Failed opening required 'PHP/CodeCoverage/Filter.php' (include_path='.:/usr/share/php') in /usr/bin/phpunit on line 38
梨包装安装
已安装的软件包,频道 pear.php.net:
包版本状态 Archive_Tar 1.4.0 stable Benchmark 1.2.9 stable Console_Getopt 1.4.1 stable PEAR 1.10.1 stable PEAR_Manpages 1.10.0 stable PHPUnit 1.3.2 stable Structures_Graph 1.1.1 stable XML_Util 1.3.0 stable
对于安装 PHPUnit,我确实在终端上运行了以下命令
:~$ sudo pear install pear/PHPUnit
因为:~$ sudo pear install phpunit/PHPUnit
不工作。
我确实尝试添加:~$ pear channel-discover pear.phpunit.de
,但它显示错误
Error: No version number found in <channel> tag
Discovering channel pear.phpunit.de over http:// failed with message: channel-add: invalid channel.xml file
Trying to discover channel pear.phpunit.de over https:// instead
Error: No version number found in <channel> tag
Discovery of channel "pear.phpunit.de" failed (channel-add: invalid channel.xml file)
谁能告诉我如何解决这个问题?