summaryrefslogtreecommitdiffstats
path: root/tests/codeigniter/helpers/language_helper_test.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-11-25 14:05:57 +0100
committerAndrey Andreev <narf@bofh.bg>2012-11-25 14:05:57 +0100
commitade05b40714070bcda7ab32187068e95b98c8cf8 (patch)
tree7908487f27840c04b28909363093d77de3415249 /tests/codeigniter/helpers/language_helper_test.php
parentad5f1d032fb3204bc1b81891a3231ae8ac47392b (diff)
parent1713d322a309d9cf405cfe83e2131368f29b222b (diff)
Merge pull request #2030 from dchill42/unit_tests
Replaced Mock_Core_Lang with PHPUnit mockups
Diffstat (limited to 'tests/codeigniter/helpers/language_helper_test.php')
-rw-r--r--tests/codeigniter/helpers/language_helper_test.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/codeigniter/helpers/language_helper_test.php b/tests/codeigniter/helpers/language_helper_test.php
index 06932b9fd..1fe0ef17b 100644
--- a/tests/codeigniter/helpers/language_helper_test.php
+++ b/tests/codeigniter/helpers/language_helper_test.php
@@ -5,7 +5,9 @@ class Language_helper_test extends CI_TestCase {
public function test_lang()
{
$this->helper('language');
- $this->ci_instance_var('lang', new Mock_Core_Lang());
+ $lang = $this->getMock('CI_Lang', array('line'));
+ $lang->expects($this->any())->method('line')->will($this->returnValue(FALSE));
+ $this->ci_instance_var('lang', $lang);
$this->assertFalse(lang(1));
$this->assertEquals('<label for="foo"></label>', lang(1, 'foo'));