WAMP上的PHPUnit安装给出了错误

时间:2015-07-25 13:56:27

标签: php phpunit wampserver

我正在关注以下帖子

How to install PHPUnit with WAMP?

http://nishutayaltech.blogspot.in/2011/04/installing-phpunit-on-windows.html

但我仍然会收到如下所述的错误

D:\wamp\bin\php\php5.5.12>pear channel-discover pear.phpunit.de Discovering channel pear.phpunit.de over http:// failed with message: channel-ad d: Cannot open "http://pear.phpunit.de/channel.xml" (File http://pear.phpunit.de :80/channel.xml not valid (received: HTTP/1.1 410 Gone )) Trying to discover channel pear.phpunit.de over https:// instead Discovery of channel "pear.phpunit.de" failed (channel-add: Cannot open "https:/ /pear.phpunit.de/channel.xml" (File https://pear.phpunit.de:443/channel.xml not valid (received: HTTP/1.1 410 Gone )))

D:\wamp\bin\php\php5.5.12>pear install --alldeps phpunit/PHPUnit Attempting to discover channel "phpunit"... Attempting fallback to https instead of http on channel "phpunit"... unknown channel "phpunit" in "phpunit/PHPUnit" invalid package name/package file "phpunit/PHPUnit" install failed

也无法找到PEAR_ENV.reg文件。

1 个答案:

答案 0 :(得分:1)

转到Install PHP UNIT并在 windows 部分中。 :)这对你有用......