summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/Bootstrap.php15
1 files changed, 11 insertions, 4 deletions
diff --git a/tests/Bootstrap.php b/tests/Bootstrap.php
index 5a5eb6458..94dafdce4 100644
--- a/tests/Bootstrap.php
+++ b/tests/Bootstrap.php
@@ -1,13 +1,20 @@
<?php
+// Errors on full!
ini_set('display_errors', 1);
error_reporting(E_ALL | E_STRICT);
-define('PROJECT_BASE', realpath(dirname(__FILE__).'/../').'/');
+$dir = realpath(dirname(__FILE__));
+
+// Path constants
+define('PROJECT_BASE', realpath($dir.'/../').'/');
define('BASEPATH', PROJECT_BASE.'system/');
define('APPPATH', PROJECT_BASE.'application/');
-// set up a highly controlled CI environment
-require_once './lib/common.php';
-require_once './lib/ci_testcase.php'; \ No newline at end of file
+
+// Prep our test environment
+require_once $dir.'/lib/common.php';
+require_once $dir.'/lib/ci_testcase.php';
+
+unset($dir); \ No newline at end of file