laravel fatal error for TestCase not found

前端 未结 8 1945
离开以前
离开以前 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条回答
  •  梦毁少年i
    2021-02-12 13:57

    Had the same issue with PHPUnit, he would output always the same message : PHP Fatal error: Class 'Tests\TestCase' not found ... and indeed I think he had troubles to find that class so what you need to do is transform one line :

    From this :

    To this :

    Notice the first line in use and you should do this if there's any other files in the same case

提交回复
热议问题