任何一個可以幫助我解決我的問題。我想運行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)
誰能告訴我怎麼解決這個問題?
我曾嘗試它。它不工作。它顯示相同的錯誤 –