blob: 1ddabea3d6bb0bc205566f9b3830fe9877a528e5 [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');
Andrey Andreev878e23f2016-08-10 15:15:49 +03008 $lang = $this->getMockBuilder('CI_Lang')->setMethods(array('line'))->getMock();
dchill421713d322012-11-24 20:23:21 -05009 $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
Andrey Andreev878e23f2016-08-10 15:15:49 +030016}