summaryrefslogtreecommitdiffstats
path: root/tests/codeigniter/helpers/language_helper_test.php
blob: 06932b9fd3d166eb2b887de58b7cb807d02b881b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?php

class Language_helper_test extends CI_TestCase {

	public function test_lang()
	{
		$this->helper('language');
		$this->ci_instance_var('lang', new Mock_Core_Lang());

		$this->assertFalse(lang(1));
		$this->assertEquals('<label for="foo"></label>', lang(1, 'foo'));
	}

}