任何一个可以帮助我解决我的问题。我想运行php5.6 PHPUnit的,但得到的问题PHP单位不工作在Ubuntu 12.04 LTS与PHP5.6
:~$ 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稳定 基准1.2.9稳定 Console_Getopt 1.4.1稳定 PEAR 1.10.1稳定 PEAR_Manpages 1.10.0稳定 PHPUnit的1.3.2稳定 Structures_Graph 1.1.1稳定 XML_Util 1.3.0稳定
对于安装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)
谁能告诉我怎么解决这个问题?
我曾尝试它。它不工作。它显示相同的错误 –