summaryrefslogtreecommitdiffstats
path: root/system/init/init_unit_test.php
diff options
context:
space:
mode:
Diffstat (limited to 'system/init/init_unit_test.php')
-rw-r--r--system/init/init_unit_test.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/system/init/init_unit_test.php b/system/init/init_unit_test.php
new file mode 100644
index 000000000..61d5350b6
--- /dev/null
+++ b/system/init/init_unit_test.php
@@ -0,0 +1,18 @@
+<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
+
+/**
+ * Loads and instantiates unit testing class
+ *
+ * @access private called by the app controller
+ */
+
+if ( ! class_exists('CI_Unit_test'))
+{
+ require_once(BASEPATH.'libraries/Unit_test'.EXT);
+}
+
+$obj =& get_instance();
+$obj->unit = new CI_Unit_test();
+$obj->ci_is_loaded[] = 'unit';
+
+?> \ No newline at end of file