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/Useragent_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/Useragent_test.php')
-rw-r--r-- | tests/codeigniter/libraries/Useragent_test.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/codeigniter/libraries/Useragent_test.php b/tests/codeigniter/libraries/Useragent_test.php index 89383f807..e3726554e 100644 --- a/tests/codeigniter/libraries/Useragent_test.php +++ b/tests/codeigniter/libraries/Useragent_test.php @@ -10,12 +10,11 @@ class UserAgent_test extends CI_TestCase { // set a baseline user agent $_SERVER['HTTP_USER_AGENT'] = $this->_user_agent; - $obj = new stdClass; - $obj->agent = new Mock_Libraries_UserAgent(); + $this->ci_vfs_clone('application/config/user_agents.php'); - $this->ci_instance($obj); + $this->agent = new Mock_Libraries_UserAgent(); - $this->agent = $obj->agent; + $this->ci_instance_var('agent', $this->agent); } // -------------------------------------------------------------------- |