summaryrefslogtreecommitdiffstats
path: root/tests/codeigniter/libraries/Calendar_test.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2016-08-10 14:15:49 +0200
committerAndrey Andreev <narf@devilix.net>2016-08-10 14:15:49 +0200
commit878e23f8883b2510d573850deb7dca5761cc1848 (patch)
tree3a43dca555384c4793e437b94c795fa952040e00 /tests/codeigniter/libraries/Calendar_test.php
parent353f7483c61e7e4d375d4637f1e97406669648ac (diff)
Use getMockBuilder() in PHPUnit instead of the deprecated getMock()
Diffstat (limited to 'tests/codeigniter/libraries/Calendar_test.php')
-rw-r--r--tests/codeigniter/libraries/Calendar_test.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/codeigniter/libraries/Calendar_test.php b/tests/codeigniter/libraries/Calendar_test.php
index 54879fec9..ad1f45e8c 100644
--- a/tests/codeigniter/libraries/Calendar_test.php
+++ b/tests/codeigniter/libraries/Calendar_test.php
@@ -5,9 +5,9 @@ class Calendar_test extends CI_TestCase {
public function set_up()
{
// Required for get_total_days()
- $this->ci_instance_var('load', $this->getMock('CI_Loader', array('helper')));
+ $this->ci_instance_var('load', $this->getMockBuilder('CI_Loader')->setMethods(array('helper'))->getMock());
- $lang = $this->getMock('CI_Lang', array('load', 'line'));
+ $lang = $this->getMockBuilder('CI_Lang')->setMethods(array('load', 'line'))->getMock();
$lang->expects($this->any())->method('line')->will($this->returnValue(FALSE));
$this->ci_instance_var('lang', $lang);
@@ -219,4 +219,4 @@ class Calendar_test extends CI_TestCase {
$this->assertEquals($array, $this->calendar->default_template());
}
-} \ No newline at end of file
+}