phpunit command doesn't work for laravel 4 on windows 7

前端 未结 11 1831
南笙
南笙 2020-12-15 06:06

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

11条回答
  •  鱼传尺愫
    2020-12-15 06:23

    Borrowing from @Chris' excellent answer:
    Even better, you can make vendor/phpunit/phpunit/phpunit an environment variable, say "phpunit" and whenever you want to run the test in any laravel project you just call php %phpunit%.

    Demonstration

提交回复
热议问题