diff options
author | Taufan Aditya <toopay@taufanaditya.com> | 2012-03-28 11:49:49 +0200 |
---|---|---|
committer | Taufan Aditya <toopay@taufanaditya.com> | 2012-03-28 11:49:49 +0200 |
commit | e1dc9ea4fcfd4983fa076b70fe631166a95d0b68 (patch) | |
tree | fb58707f0e13595a35635dceed6cd671a564f512 /tests/mocks/ci_testcase.php | |
parent | 30b34d099e4e9bcdc79ec496fdb89904444eaa4f (diff) |
Remove include or require declaration from all helpers test
Diffstat (limited to 'tests/mocks/ci_testcase.php')
-rw-r--r-- | tests/mocks/ci_testcase.php | 27 |
1 files changed, 17 insertions, 10 deletions
diff --git a/tests/mocks/ci_testcase.php b/tests/mocks/ci_testcase.php index 5c83974b3..f327e6b07 100644 --- a/tests/mocks/ci_testcase.php +++ b/tests/mocks/ci_testcase.php @@ -48,6 +48,13 @@ class CI_TestCase extends PHPUnit_Framework_TestCase { $this->tear_down(); } } + + // -------------------------------------------------------------------- + + public static function instance() + { + return self::$ci_test_instance; + } // -------------------------------------------------------------------- @@ -62,6 +69,13 @@ class CI_TestCase extends PHPUnit_Framework_TestCase { $this->ci_config[$key] = $val; } } + + // -------------------------------------------------------------------- + + function ci_get_config() + { + return $this->ci_config; + } // -------------------------------------------------------------------- @@ -153,19 +167,12 @@ class CI_TestCase extends PHPUnit_Framework_TestCase { self::$ci_test_instance = $this; parent::runBare(); } - - // -------------------------------------------------------------------- - - public static function instance() - { - return self::$ci_test_instance; - } - + // -------------------------------------------------------------------- - function ci_get_config() + function helper($name) { - return $this->ci_config; + require_once(BASEPATH.'helpers/'.$name.'_helper.php'); } // -------------------------------------------------------------------- |