summaryrefslogtreecommitdiffstats
path: root/tests/mocks/ci_testconfig.php
diff options
context:
space:
mode:
authordchill42 <dchill42@gmail.com>2012-10-12 22:25:51 +0200
committerdchill42 <dchill42@gmail.com>2012-10-12 22:25:51 +0200
commit7ecc5cda6647a4b316b44dc40d5925d9ef63c908 (patch)
treee0d0e0c57bb911fc9690db4a85014b7a72e32300 /tests/mocks/ci_testconfig.php
parent2716398bd2f2ae36d7420c591fc759e0951ba0e2 (diff)
Integrated vfsStream better and made paths constants VFS-based
Signed-off-by: dchill42 <dchill42@gmail.com>
Diffstat (limited to 'tests/mocks/ci_testconfig.php')
-rw-r--r--tests/mocks/ci_testconfig.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/mocks/ci_testconfig.php b/tests/mocks/ci_testconfig.php
new file mode 100644
index 000000000..eb318ddeb
--- /dev/null
+++ b/tests/mocks/ci_testconfig.php
@@ -0,0 +1,18 @@
+<?php
+
+class CI_TestConfig {
+
+ public $config = array();
+ public $_config_paths = array(APPPATH);
+
+ public function item($key)
+ {
+ return isset($this->config[$key]) ? $this->config[$key] : FALSE;
+ }
+
+ public function load($arg1, $arg2, $arg3)
+ {
+ return TRUE;
+ }
+
+}