summaryrefslogtreecommitdiffstats
path: root/tests/mocks/ci_testconfig.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mocks/ci_testconfig.php')
-rw-r--r--tests/mocks/ci_testconfig.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/mocks/ci_testconfig.php b/tests/mocks/ci_testconfig.php
new file mode 100644
index 000000000..f80adc5d4
--- /dev/null
+++ b/tests/mocks/ci_testconfig.php
@@ -0,0 +1,20 @@
+<?php
+
+class CI_TestConfig {
+
+ public $config = array();
+ public $_config_paths = array(APPPATH);
+ public $loaded = array();
+
+ public function item($key)
+ {
+ return isset($this->config[$key]) ? $this->config[$key] : FALSE;
+ }
+
+ public function load($file, $arg2 = FALSE, $arg3 = FALSE)
+ {
+ $this->loaded[] = $file;
+ return TRUE;
+ }
+
+} \ No newline at end of file