laravel fatal error for TestCase not found

前端 未结 8 1916
离开以前
离开以前 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:59

    The is caused by an outdated phpunit. If you using a globally installed phpunit, here is a link on how to update it https://stackoverflow.com/a/40701333/3792206 . Or you can explicitly use the phpunit that was installed with the project.

提交回复
热议问题