dchill42 | 7ecc5cd | 2012-10-12 16:25:51 -0400 | [diff] [blame] | 1 | <?php |
2 | |||||
Andrey Andreev | 356bc66 | 2017-03-06 14:39:28 +0200 | [diff] [blame] | 3 | class CI_TestConfig extends CI_Config { |
dchill42 | 7ecc5cd | 2012-10-12 16:25:51 -0400 | [diff] [blame] | 4 | |
5 | public $config = array(); | ||||
6 | public $_config_paths = array(APPPATH); | ||||
dchill42 | 4f42be5 | 2012-10-21 21:31:19 -0400 | [diff] [blame] | 7 | public $loaded = array(); |
dchill42 | 7ecc5cd | 2012-10-12 16:25:51 -0400 | [diff] [blame] | 8 | |
Andrey Andreev | 356bc66 | 2017-03-06 14:39:28 +0200 | [diff] [blame] | 9 | public function item($key, $index = '') |
dchill42 | 7ecc5cd | 2012-10-12 16:25:51 -0400 | [diff] [blame] | 10 | { |
11 | return isset($this->config[$key]) ? $this->config[$key] : FALSE; | ||||
12 | } | ||||
13 | |||||
Andrey Andreev | 356bc66 | 2017-03-06 14:39:28 +0200 | [diff] [blame] | 14 | public function load($file = '', $use_sections = FALSE, $fail_gracefully = FALSE) |
dchill42 | 7ecc5cd | 2012-10-12 16:25:51 -0400 | [diff] [blame] | 15 | { |
dchill42 | 4f42be5 | 2012-10-21 21:31:19 -0400 | [diff] [blame] | 16 | $this->loaded[] = $file; |
dchill42 | 7ecc5cd | 2012-10-12 16:25:51 -0400 | [diff] [blame] | 17 | return TRUE; |
18 | } | ||||
19 | |||||
Andrey Andreev | 356bc66 | 2017-03-06 14:39:28 +0200 | [diff] [blame] | 20 | } |