blob: 1fe0ef17bc33416e680375b47792cdcaa215c0d3 [file] [log] [blame]
Alex Bilbie526d88f2012-10-16 18:19:30 +01001<?php
2
3class Language_helper_test extends CI_TestCase {
4
5 public function test_lang()
6 {
7 $this->helper('language');
dchill421713d322012-11-24 20:23:21 -05008 $lang = $this->getMock('CI_Lang', array('line'));
9 $lang->expects($this->any())->method('line')->will($this->returnValue(FALSE));
10 $this->ci_instance_var('lang', $lang);
Alex Bilbie526d88f2012-10-16 18:19:30 +010011
12 $this->assertFalse(lang(1));
13 $this->assertEquals('<label for="foo"></label>', lang(1, 'foo'));
14 }
15
16}