summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/common.php12
1 files changed, 9 insertions, 3 deletions
diff --git a/tests/lib/common.php b/tests/lib/common.php
index 994e9bc22..6d29eb0d6 100644
--- a/tests/lib/common.php
+++ b/tests/lib/common.php
@@ -13,15 +13,21 @@ function &get_instance()
function &get_config() {
$test = CI_TestCase::instance();
- $config = $test->ci_config_array();
+ $config = $test->ci_get_config();
return $config;
}
function config_item($item)
{
- $test = CI_TestCase::instance();
- return $test->ci_config_item($item);
+ $config =& get_config();
+
+ if ( ! isset($config[$item]))
+ {
+ return FALSE;
+ }
+
+ return $config[$item];
}
// --------------------------------------------------------------------