Skip to content

Commit 417678a

Browse files
authored
Merge pull request #720 from cakephp/fix-ds-constant
Fixed re-defining DS constant warning
2 parents d2bcb70 + 80abcf8 commit 417678a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/bootstrap.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@
2222
require_once 'vendor/autoload.php';
2323

2424
// Path constants to a few helpful things.
25-
define('DS', DIRECTORY_SEPARATOR);
25+
if (!defined('DS')) {
26+
define('DS', DIRECTORY_SEPARATOR);
27+
}
2628
define('ROOT', dirname(__DIR__));
2729
define('CAKE_CORE_INCLUDE_PATH', ROOT . DS . 'vendor' . DS . 'cakephp' . DS . 'cakephp');
2830
define('CORE_PATH', ROOT . DS . 'vendor' . DS . 'cakephp' . DS . 'cakephp' . DS);

0 commit comments

Comments
 (0)