diff options
author | Andrey Andreev <narf@bofh.bg> | 2012-10-23 08:35:59 +0200 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2012-10-23 08:35:59 +0200 |
commit | bf93f9397fbae4535fba661f561bf545c903ca8a (patch) | |
tree | bf74e17b593db9c242238598e79af979dd9556e5 /tests/mocks/ci_testconfig.php | |
parent | f5f898f8f30968fb36413a14de2dc6a4599b79a6 (diff) | |
parent | 8889db7e1b1768ecfb76e9e73598541042a9edc1 (diff) |
Merge pull request #1744 from dchill42/load_config_units
Loader and Config Unit Test Improvements
Diffstat (limited to 'tests/mocks/ci_testconfig.php')
-rw-r--r-- | tests/mocks/ci_testconfig.php | 20 |
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..0c52bb984 --- /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; + } + +} |