Skip to content

Commit ae3d10c

Browse files
committed
Merge pull request bcit-ci#1401 from toopay/test-suite
Allowing main constants defined via phpunit config or other bootstraper
2 parents 16bb9bd + 4912f8b commit ae3d10c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/Bootstrap.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
$dir = realpath(dirname(__FILE__));
88

99
// Path constants
10-
define('PROJECT_BASE', realpath($dir.'/../').'/');
11-
define('BASEPATH', PROJECT_BASE.'system/');
12-
define('APPPATH', PROJECT_BASE.'application/');
13-
define('VIEWPATH', PROJECT_BASE.'');
10+
defined('PROJECT_BASE') OR define('PROJECT_BASE', realpath($dir.'/../').'/');
11+
defined('BASEPATH') OR define('BASEPATH', PROJECT_BASE.'system/');
12+
defined('APPPATH') OR define('APPPATH', PROJECT_BASE.'application/');
13+
defined('VIEWPATH') OR define('VIEWPATH', PROJECT_BASE.'');
1414

1515
// Get vfsStream either via PEAR or composer
1616
foreach (explode(PATH_SEPARATOR, get_include_path()) as $path)

0 commit comments

Comments
 (0)