用梨子将PHPUnit_Selenium安装到windows中

时间:2016-02-24 10:12:28

标签: selenium window phpunit pear

拜托,我正在尝试将带有pear的PHPUnit_Selenium安装到windows中,我正在使用此命令:

pear install phpunit/PHPUnit_Selenium

但是我收到了这个错误:

Attempting to discover channel "phpunit"...
Attempting fallback to https instead of http on channel "phpunit"...
unknown channel "phpunit" in "phpunit/PHPUnit_Selenium"
invalid package name/package file "phpunit/PHPUnit_Selenium"
install failed

1 个答案:

答案 0 :(得分:1)

截至2014年12月,不再提供通过pear的phpunit安装。

参见 https://github.com/sebastianbergmann/phpunit/wiki/End-of-Life-for-PEAR-Installation-Method

或者,您可以使用composer进行安装。 安装后,打开它并键入

composer global require "phpunit/phpunit=5.2.*"