blob: 92c71322eff784c9aa58a5d4cdfca4228f8ec6d7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
<?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'));
$this->_test_line();
}
// --------------------------------------------------------------------
public function test_load_with_unspecified_language()
{
$this->assertTrue($this->lang->load('profiler'));
$this->_test_line();
}
// --------------------------------------------------------------------
private function _test_line()
{
$this->assertEquals('URI STRING', $this->lang->line('profiler_uri_string'));
}
}
|