laravel fatal error for TestCase not found

前端 未结 8 1927
离开以前
离开以前 2021-02-12 13:26
http://localhost/laravel/app/tests/ExampleTest.php

if i run laravel it shows the following error

Fatal error: Class \'TestCase\' not found in D

8条回答
  •  终归单人心
    2021-02-12 13:56

    I had same issue, you should run test from root folder, in your case 'http://localhost/laravel' and in terminal you just need to write phpunit, and test will be executed.

提交回复
热议问题