2017-02-24 3 views
2

いずれかが私の問題を解決するのに役立ちます。私は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を得た:1.4.0安定

パッケージのバージョン州 するArchive_Tar ベンチマーク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安定

については:~$ sudo pear install phpunit/PHPUnitで動作していないので、私は、端末

:~$ sudo pear install pear/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) 

は誰がどのように問題を解決するに教えてもらえますエラーを示していますか?

答えて

0

問題をインストールするにはPHPUnit 5.7の場合、https://phar.phpunit.de/phpunit.pharの代わりにhttps://phar.phpunit.de/phpunit-5.7.pharを使用してください。あなたが引き続き使用する場合

関連する問題