diff options
author | Andrey Andreev <narf@bofh.bg> | 2012-03-20 14:48:00 +0100 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2012-03-20 14:48:00 +0100 |
commit | 31cf46eaec3b4613d5b46f9caed8bdd346b581cc (patch) | |
tree | 047b9d74def6254639b3d9b2833f36336dc99f8a /tests/codeigniter/core/Lang_test.php | |
parent | b68e70b2cd81f83fd038ca2c2d00fde210a8ee0e (diff) | |
parent | 733921ecc4da80f08a9d50ff0fb05bccf23de09d (diff) |
Merge upstream branch
Diffstat (limited to 'tests/codeigniter/core/Lang_test.php')
-rw-r--r-- | tests/codeigniter/core/Lang_test.php | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/tests/codeigniter/core/Lang_test.php b/tests/codeigniter/core/Lang_test.php new file mode 100644 index 000000000..a414f0ace --- /dev/null +++ b/tests/codeigniter/core/Lang_test.php @@ -0,0 +1,31 @@ +<?php + +class Lang_test extends CI_TestCase { + + protected $lang; + + public function set_up() + { + $loader_cls = $this->ci_core_class('load'); + $this->ci_instance_var('load', new $loader_cls); + + $cls = $this->ci_core_class('lang'); + $this->lang = new $cls; + } + + // -------------------------------------------------------------------- + + public function test_load() + { + $this->assertTrue($this->lang->load('profiler', 'english')); + } + + // -------------------------------------------------------------------- + + public function test_line() + { + $this->assertTrue($this->lang->load('profiler', 'english')); + $this->assertEquals('URI STRING', $this->lang->line('profiler_uri_string')); + } + +}
\ No newline at end of file |