diff options
author | Andrey Andreev <narf@devilix.net> | 2016-08-10 14:15:49 +0200 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2016-08-10 14:15:49 +0200 |
commit | 878e23f8883b2510d573850deb7dca5761cc1848 (patch) | |
tree | 3a43dca555384c4793e437b94c795fa952040e00 /tests/codeigniter/helpers/language_helper_test.php | |
parent | 353f7483c61e7e4d375d4637f1e97406669648ac (diff) |
Use getMockBuilder() in PHPUnit instead of the deprecated getMock()
Diffstat (limited to 'tests/codeigniter/helpers/language_helper_test.php')
-rw-r--r-- | tests/codeigniter/helpers/language_helper_test.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/codeigniter/helpers/language_helper_test.php b/tests/codeigniter/helpers/language_helper_test.php index 176da689a..1ddabea3d 100644 --- a/tests/codeigniter/helpers/language_helper_test.php +++ b/tests/codeigniter/helpers/language_helper_test.php @@ -5,7 +5,7 @@ class Language_helper_test extends CI_TestCase { public function test_lang() { $this->helper('language'); - $lang = $this->getMock('CI_Lang', array('line')); + $lang = $this->getMockBuilder('CI_Lang')->setMethods(array('line'))->getMock(); $lang->expects($this->any())->method('line')->will($this->returnValue(FALSE)); $this->ci_instance_var('lang', $lang); @@ -13,4 +13,4 @@ class Language_helper_test extends CI_TestCase { $this->assertEquals('<label for="foo" class="bar"></label>', lang(1, 'foo', array('class' => 'bar'))); } -}
\ No newline at end of file +} |