summaryrefslogtreecommitdiffstats
path: root/tests/Bootstrap.php
diff options
context:
space:
mode:
authorPascal Kriete <pascal.kriete@ellislab.com>2011-04-21 03:44:54 +0200
committerPascal Kriete <pascal.kriete@ellislab.com>2011-04-21 03:44:54 +0200
commit69c97a71476e4eaa6c629022fcd4ec7f36d4ec0d (patch)
tree5cba214cb636df83b41a3aa7f29f9b191c3ab70b /tests/Bootstrap.php
parentba2430b5778b5b2414b94b818354fa1ff7cfd0db (diff)
Adding early bootstrap ideas for core test suite
Diffstat (limited to 'tests/Bootstrap.php')
-rw-r--r--tests/Bootstrap.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/Bootstrap.php b/tests/Bootstrap.php
new file mode 100644
index 000000000..ca63ff788
--- /dev/null
+++ b/tests/Bootstrap.php
@@ -0,0 +1,21 @@
+<?php
+
+ini_set('display_errors', 1);
+error_reporting(E_ALL | E_STRICT);
+
+if ( ! defined('PROJECT_BASE'))
+{
+ define('PROJECT_BASE', realpath(dirname(__FILE__).'/../').'/');
+
+ define('BASEPATH', PROJECT_BASE.'system/');
+ define('APPPATH', PROJECT_BASE.'application/');
+}
+// define('EXT', '.php');
+
+// @todo provide a way to set various config options
+
+
+
+// set up a highly controlled CI environment
+require_once './lib/common.php';
+require_once './lib/ci_testcase.php'; \ No newline at end of file