執行phpunit總是報錯,類找不到啊,namespace不對啊。
后來發現框架自帶的
在laravel目錄下執行:
./vendor/bin/phpunit
就可以了。
之前先要完成composer install
參考:
https://laracasts.com/discuss/channels/testing/cant-run-phpunit-tests-from-command-line
執行phpunit總是報錯,類找不到啊,namespace不對啊。
后來發現框架自帶的
在laravel目錄下執行:
./vendor/bin/phpunit
就可以了。
之前先要完成composer install
參考:
https://laracasts.com/discuss/channels/testing/cant-run-phpunit-tests-from-command-line
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。