summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-05-26 17:53:27 +0200
committerAndrey Andreev <narf@bofh.bg>2012-05-26 17:53:27 +0200
commitae3d10cf4e81513fcec6fec35bd4f3e4cc51522d (patch)
tree4a3c6e36fd9968fe820f16253c2c117ae2e99c5a /tests
parent16bb9bd93698335fc1692adcfbd20d8e4fda6268 (diff)
parent4912f8b25cd8fa1b88b4babd1bad2b6bf29dd235 (diff)
Merge pull request #1401 from toopay/test-suite
Allowing main constants defined via phpunit config or other bootstraper
Diffstat (limited to 'tests')
-rw-r--r--tests/Bootstrap.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/Bootstrap.php b/tests/Bootstrap.php
index 38615dd89..5216038c6 100644
--- a/tests/Bootstrap.php
+++ b/tests/Bootstrap.php
@@ -7,10 +7,10 @@ error_reporting(E_ALL | E_STRICT);
$dir = realpath(dirname(__FILE__));
// Path constants
-define('PROJECT_BASE', realpath($dir.'/../').'/');
-define('BASEPATH', PROJECT_BASE.'system/');
-define('APPPATH', PROJECT_BASE.'application/');
-define('VIEWPATH', PROJECT_BASE.'');
+defined('PROJECT_BASE') OR define('PROJECT_BASE', realpath($dir.'/../').'/');
+defined('BASEPATH') OR define('BASEPATH', PROJECT_BASE.'system/');
+defined('APPPATH') OR define('APPPATH', PROJECT_BASE.'application/');
+defined('VIEWPATH') OR define('VIEWPATH', PROJECT_BASE.'');
// Get vfsStream either via PEAR or composer
foreach (explode(PATH_SEPARATOR, get_include_path()) as $path)