blob: 176da689a04b98fa9264b31757ea6a2b6b6f0efa [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));
Andrey Andreevfeb1e052012-11-26 23:57:04 +020013 $this->assertEquals('<label for="foo" class="bar"></label>', lang(1, 'foo', array('class' => 'bar')));
Alex Bilbie526d88f2012-10-16 18:19:30 +010014 }
15
16}