From 60bc94db574103dfc73acb907fa79c6dfc86c96e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Pluchino?= Date: Wed, 12 Oct 2016 10:03:45 +0200 Subject: [PATCH] Replace phpunit createPartialMock method --- Tests/Repository/Vcs/PerforceDriverTest.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Tests/Repository/Vcs/PerforceDriverTest.php b/Tests/Repository/Vcs/PerforceDriverTest.php index d8018300..eaff9298 100644 --- a/Tests/Repository/Vcs/PerforceDriverTest.php +++ b/Tests/Repository/Vcs/PerforceDriverTest.php @@ -149,6 +149,9 @@ protected function getMockPerforce() { $methods = array('p4login', 'checkStream', 'writeP4ClientSpec', 'connectClient', 'getComposerInformation', 'cleanupClientSpec'); - return $this->createPartialMock('Fxp\Composer\AssetPlugin\Util\Perforce', $methods); + return $this->getMockBuilder('Fxp\Composer\AssetPlugin\Util\Perforce') + ->disableOriginalConstructor() + ->setMethods($methods) + ->getMock(); } }