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/codeigniter/libraries/Session_test.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/codeigniter/libraries/Session_test.php')
-rw-r--r-- | tests/codeigniter/libraries/Session_test.php | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/tests/codeigniter/libraries/Session_test.php b/tests/codeigniter/libraries/Session_test.php index 60d3a5b30..14469f7fa 100644 --- a/tests/codeigniter/libraries/Session_test.php +++ b/tests/codeigniter/libraries/Session_test.php @@ -29,13 +29,15 @@ class Session_test extends CI_TestCase { $_COOKIE = array(); // Establish necessary support classes - $obj = new stdClass; $cfg = $this->ci_core_class('cfg'); - $obj->config = new $cfg(); $ldr = $this->ci_core_class('load'); - $obj->load = new $ldr(); - $obj->input = new Mock_Core_Input(NULL, NULL); - $this->ci_instance($obj); + $ci = $this->ci_instance(); + $ci->config = new $cfg(); + $ci->load = new $ldr(); + $ci->input = new Mock_Core_Input(NULL, NULL); + + // Make sure string helper is available + $this->ci_vfs_clone('system/helpers/string_helper.php'); // Attach session instance locally $config = array( |