laravel phpunit 在window 系统上使用

要实现这个很简单
在项目目录下 直接把 ./vendor/bin/phpunit.bat 复制到项目根目录
然后用txt打开 phpunit.bat 将文件修改为

@ECHO OFF
setlocal DISABLEDELAYEDEXPANSION
SET BIN_TARGET=%~dp0/vendor/phpunit/phpunit/phpunit
php “%BIN_TARGET%” %*

然后在项目根目录就可以使用 phpunit 了

猜你喜欢

转载自blog.csdn.net/duanshuiliu2017/article/details/79947559