【问题标题】:PHPUnit & CakePHP 3 - Constant DS already defined in paths.phpPHPUnit & CakePHP 3 - 常量 DS 已在 paths.php 中定义
【发布时间】:2015-01-14 12:18:15
【问题描述】:

当我为我的 cake 3 项目运行 phpunit 时,我收到以下通知:

PHP Notice: Constant DS already defined in /path/to/project/config/paths.php on line 18

但我没有找到它试图重新定义常量的地方?我的意思是paths.php中的定义是正确的!

【问题讨论】:

标签: unit-testing phpunit cakephp-3.0


【解决方案1】:

更新您的 path.php 文件,使其看起来像这样:

https://github.com/cakephp/app/blob/master/config/paths.php#L18

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-09-01
    • 2022-01-03
    • 2016-09-14
    • 2022-01-22
    • 2016-02-08
    • 2011-08-18
    相关资源
    最近更新 更多