“@ php_bin @”未被识别为内部或外部命令,可操作程序或批处理文件

时间:2021-02-10 23:13:21

I using PHPUnit and Selenium Server to testing Yii Application, i m using xp operating system. and i install PHPUnit_Selenium (1.0.1) and other software.actually i follow this bellow instruction to install http://www.yiiframework.com/forum/index.php?/topic/14995-wamp-netbeans-phpunit-selenium-yii/

我使用PHPUnit和Selenium Server来测试Yii Application,我使用的是xp操作系统。我安装PHPUnit_Selenium(1.0.1)和其他软件。实际上我按照这个bellow指令安装http://www.yiiframework.com/forum/index.php?/topic/14995-wamp-netbeans-phpunit-selenium-警予/

and i also download the selenium-server-standalone-2.20.0.jar file and through command prompted i started server using java -jar selenium-server-standalone-2.0b3.jar command..

我还下载了selenium-server-standalone-2.20.0.jar文件并通过命令提示我使用java -jar selenium-server-standalone-2.0b3.jar命令启动服务器..

and after that i opened new command prompt and i tried to test my simple hello world yii application. and i invoked this command phpunit functional/SiteTest.php and ya i also set the Test_Base_URL in webtestcase ..

之后我打开了新的命令提示符,我试着测试我的简单hello world yii应用程序。我调用了这个命令phpunit functional / SiteTest.php和ya我也在webtestcase中设置了Test_Base_URL ..

but after invoking above command for test.. some process going on and 2 or 3 times firefox opened and closed automatically and at the end i got this error "@php_bin@" is not recognized as an internal or external command,operable program or batch file

但是在调用上面的命令进行测试之后......一些进程正在进行,2到3次firefox自动打开和关闭,最后我得到了这个错误“@ php_bin @”被识别为内部或外部命令,可操作程序或批处理文件

even i attached screen shots of both cmd prompt ... http://s14.postimage.org/o057x7wox/1cmd.jpg

即使我附上cmd提示的屏幕截图... http://s14.postimage.org/o057x7wox/1cmd.jpg

1 个解决方案

#1


4  

You should replace @php_bin@ by the path to the php binary. I guess PEAR or PHPUnit installer was supposed to do that.

你应该用php二进制文件的路径替换@ php_bin @。我想PEAR或PHPUnit安装程序应该这样做。

#1


4  

You should replace @php_bin@ by the path to the php binary. I guess PEAR or PHPUnit installer was supposed to do that.

你应该用php二进制文件的路径替换@ php_bin @。我想PEAR或PHPUnit安装程序应该这样做。