您好,我正试图让phpunit在我的Windows机器上工作。 我安装了Zend Server CE,并安装了pear。 但是,当我这样做:
phpunit --configuration phpunit.xml
我得到的错误:
phpunit is not recognized as an internal or external command, operable program or batch file.
有任何想法吗?
phpunit在你的PATH?
如果没有,你可以把它设置在:
Control Panel > System > Advanced System Settings > Advanced (tab) > Environment Variables
将phpunit.exe所在的目录附加到Pathvariables。 确保你不要忽略; 在你进入path之前。 即,你会添加像这样的东西:
;c:\Program Files\App\
希望这可以帮助。