安装phpunit selenium时执行命令:pear install phpunit/PHPUnit_Selenium,提示错误:
phpunit/PHPUnit_Selenium requires PHP extension "curl"
No valid packages found
install failed
PHP Warning: PHP Startup: Unable to load dynamic llibray 'C:\php\php_curl.dll' - 找不到指定的模块。
in Unknown on line 0
这是因为php_curl.dll是放在php\ext目录下,所以将路径设置为绝对路径extension="C:\php\ext\php_curl.dll"
执行pear install phpunit/PHPUnit_Selenium,可成功安装