blob: afdb71001c35d5a81a16725f9b5ab65a57c7a46d [file] [log] [blame]
dchill427ecc5cd2012-10-12 16:25:51 -04001<?php
2
Andrey Andreev356bc662017-03-06 14:39:28 +02003class CI_TestConfig extends CI_Config {
dchill427ecc5cd2012-10-12 16:25:51 -04004
5 public $config = array();
6 public $_config_paths = array(APPPATH);
dchill424f42be52012-10-21 21:31:19 -04007 public $loaded = array();
dchill427ecc5cd2012-10-12 16:25:51 -04008
Andrey Andreev356bc662017-03-06 14:39:28 +02009 public function item($key, $index = '')
dchill427ecc5cd2012-10-12 16:25:51 -040010 {
11 return isset($this->config[$key]) ? $this->config[$key] : FALSE;
12 }
13
Andrey Andreev356bc662017-03-06 14:39:28 +020014 public function load($file = '', $use_sections = FALSE, $fail_gracefully = FALSE)
dchill427ecc5cd2012-10-12 16:25:51 -040015 {
dchill424f42be52012-10-21 21:31:19 -040016 $this->loaded[] = $file;
dchill427ecc5cd2012-10-12 16:25:51 -040017 return TRUE;
18 }
19
Andrey Andreev356bc662017-03-06 14:39:28 +020020}