summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Kriete <pascal.kriete@ellislab.com>2011-04-21 07:20:40 +0200
committerPascal Kriete <pascal.kriete@ellislab.com>2011-04-21 07:20:40 +0200
commitf5aee9d1532b175d2dbfbb66f56e8861f34cd861 (patch)
tree366ee65e2e868cb8f53bf9a4d54f8f20df100270
parent10ba64f9b76a25a77182d72a0a09413ccba12770 (diff)
some basic bootstrap cleanup
-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