Merge pull request #4125 from jim-parry/fix/lang_test

Improve CI_Lang tests
diff --git a/tests/codeigniter/core/Lang_test.php b/tests/codeigniter/core/Lang_test.php
index d2dd759..4958f42 100644
--- a/tests/codeigniter/core/Lang_test.php
+++ b/tests/codeigniter/core/Lang_test.php
@@ -34,11 +34,6 @@
 		$this->assertTrue($this->lang->load('email', 'german'));
 		$this->assertEquals('german', $this->lang->is_loaded['email_lang.php']);
 
-		// Non-alpha idiom (should act the same as unspecified language)
-		$this->ci_vfs_clone('system/language/english/number_lang.php');
-		$this->assertTrue($this->lang->load('number'));
-		$this->assertEquals('Bytes', $this->lang->language['bytes']);
-
 		// Non-existent file
 		$this->setExpectedException(
 			'RuntimeException',
@@ -49,6 +44,23 @@
 
 	// --------------------------------------------------------------------
 
+	public function test_non_alpha_idiom()
+	{
+		// Non-alpha idiom (should act the same as unspecified language)
+		// test with existing file
+		$this->ci_vfs_clone('system/language/english/number_lang.php');
+		$this->ci_vfs_clone('system/language/english/number_lang.php', 'system/language/123funny/');
+		$this->assertTrue($this->lang->load('number', '123funny'));
+		$this->assertEquals('Bytes', $this->lang->language['bytes']);
+
+		// test without existing file
+		$this->ci_vfs_clone('system/language/english/email_lang.php');
+		$this->assertTrue($this->lang->load('email', '456funny'));
+		$this->assertEquals('You did not specify a SMTP hostname.', $this->lang->language['email_no_hostname']);
+	}
+
+	// --------------------------------------------------------------------
+
 	public function test_multiple_file_load()
 	{
 		// Multiple files