执行phpunit总是报错,类找不到啊,namespace不对啊。

 

后来发现框架自带的

 

在laravel目录下执行:

./vendor/bin/phpunit

就可以了。

之前先要完成composer install

 

参考:

https://laracasts.com/discuss/channels/testing/cant-run-phpunit-tests-from-command-line

相关文章: