summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTaufan Aditya <toopay@taufanaditya.com>2012-05-26 17:09:58 +0200
committerTaufan Aditya <toopay@taufanaditya.com>2012-05-26 17:09:58 +0200
commit4912f8b25cd8fa1b88b4babd1bad2b6bf29dd235 (patch)
treede9f611a88c433c276b51a2d876c9eda274e038b /tests
parent8f24b1c9ad93365d5e2d20de9f89468e26ebbe34 (diff)
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)