问题
I've recently installed laravel and have written some tests in /tests directory but when I use phpunit at cmd in the same folder that phpunit.xml exists, it says 'vendor' is not recognized as an internal or external command I'm using windows 10. what should I do?
回答1:
This is linux based code..
$ vendor/bin/phpunit
Try this for windows..
vendor\bin\phpunit
回答2:
Please try this command for windows:
php vendor/phpunit/phpunit/phpunit
回答3:
Install dependencies via composer
$ composer update
Run tests
$ vendor/bin/phpunit
来源:https://stackoverflow.com/questions/47740011/vendor-is-not-recognized-as-an-internal-or-external-command-im-using-windows