Skip to content

Commit

Permalink
Replace phpunit createPartialMock method
Browse files Browse the repository at this point in the history
  • Loading branch information
francoispluchino committed Oct 12, 2016
1 parent c166ac2 commit 60bc94d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Tests/Repository/Vcs/PerforceDriverTest.php
Expand Up @@ -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();
}
}

0 comments on commit 60bc94d

Please sign in to comment.