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/helpers/number_helper_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/helpers/number_helper_test.php')
-rw-r--r-- | tests/codeigniter/helpers/number_helper_test.php | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/tests/codeigniter/helpers/number_helper_test.php b/tests/codeigniter/helpers/number_helper_test.php index ef6aae138..817db2c7e 100644 --- a/tests/codeigniter/helpers/number_helper_test.php +++ b/tests/codeigniter/helpers/number_helper_test.php @@ -11,31 +11,18 @@ class Number_helper_test extends CI_TestCase { // Mock away load, too much going on in there, // we'll just check for the expected parameter - $lang = $this->getMock($lang_cls, array('load')); $lang->expects($this->once()) ->method('load') ->with($this->equalTo('number')); // Assign the proper language array - - $lang->language = $this->_get_lang('number'); + $lang->language = $this->lang('number'); // We don't have a controller, so just create // a cheap class to act as our super object. // Make sure it has a lang attribute. - - $obj = new stdClass; - $obj->lang = $lang; - $this->ci_instance($obj); - } - - // Quick helper to actually grab the language - // file. Consider moving this to ci_testcase? - public function _get_lang($name) - { - require BASEPATH.'language/english/'.$name.'_lang.php'; - return $lang; + $this->ci_instance_var('lang', $lang); } public function test_byte_format() |