lumen框架做PHPUNIT测试时遇到ReflectionException: Class config does not exist 发表于 2015-12-06 | 分类于 lumen https://github.com/laravel/framework/issues/8547解决方法:每个test实例都重新创建应用 public function setUp(){ parent::setUp(); $this->createApplication();}