Laravel 教程 - 实战构架 API 服务器 ,10.2. Laravel API 集成测试,少引入了 TestCase 类?
执行 phpunit
报错了
添加 use Tests\TestCase;
后执行正常。
推荐文章: