php think unit tests 出现 Constant already defined

浏览:619 发布日期:2019/02/20 分类:求助交流
tp版本5.1 我在应用index的config目录下,添加了一个define.php配置项,专门来定义常量,正常访问没问题,但是调用单元测试时会出现,常量已定义的错误,这是什么原因啊?
1.已经全局搜索过,没有重复定义
2.runtime已清理

单元测试的写法:$request = Request::create('http://xx.com/Code');
        $response = App::run($request);
最佳答案
评论( 相关
后面还有条评论,点击查看>>