我最近安装了laravel,并在/ tests目录中编写了一些测试,但是当我phpunit在phpunit.xml存在的同一文件夹中的cmd上使用它时,它表示'phpunit' is not recognized as an internal or external command,operable program or batch file.。我正在使用Windows7。我该怎么办?
phpunit
phpunit.xml
'phpunit' is not recognized as an internal or external command,operable program or batch file.
我的解决方案:
php vendor/phpunit/phpunit/phpunit
当然,这假设您已经在Windows中设置了php环境变量
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
点击生成二维码
我来说两句