<?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'));
	}
	
	// --------------------------------------------------------------------

	public function test_line()
	{
		$this->assertTrue($this->lang->load('profiler', 'english'));
		$this->assertEquals('URI STRING', $this->lang->line('profiler_uri_string'));
	}
	
}
<?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'));
	}
	
}
Add test when loading language file and not using the second parameter (language)
Add test when loading language file and not using the second parameter (language)
