summaryrefslogtreecommitdiffstats
path: root/tests/codeigniter/libraries/Driver_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/Driver_test.php
parent353f7483c61e7e4d375d4637f1e97406669648ac (diff)
Use getMockBuilder() in PHPUnit instead of the deprecated getMock()
Diffstat (limited to 'tests/codeigniter/libraries/Driver_test.php')
-rw-r--r--tests/codeigniter/libraries/Driver_test.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/codeigniter/libraries/Driver_test.php b/tests/codeigniter/libraries/Driver_test.php
index c62cbee45..e4401e688 100644
--- a/tests/codeigniter/libraries/Driver_test.php
+++ b/tests/codeigniter/libraries/Driver_test.php
@@ -16,7 +16,7 @@ class Driver_test extends CI_TestCase {
// Mock Loader->get_package_paths
$paths = 'get_package_paths';
- $ldr = $this->getMock('CI_Loader', array($paths));
+ $ldr = $this->getMockBuilder('CI_Loader')->setMethods(array($paths))->getMock();
$ldr->expects($this->any())->method($paths)->will($this->returnValue(array(APPPATH, BASEPATH)));
$this->ci_instance_var('load', $ldr);
@@ -175,4 +175,4 @@ class Driver_test extends CI_TestCase {
$this->assertEquals($return, $child->$method());
}
-} \ No newline at end of file
+}