mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Remove use of deprecated getMock method
This commit is contained in:
parent
036fc44c25
commit
066351c5b9
42 changed files with 279 additions and 272 deletions
|
@ -28,7 +28,7 @@ class RunScriptCommandTest extends TestCase
|
|||
{
|
||||
$scriptName = 'testScript';
|
||||
|
||||
$input = $this->getMock('Symfony\Component\Console\Input\InputInterface');
|
||||
$input = $this->getMockBuilder('Symfony\Component\Console\Input\InputInterface')->getMock();
|
||||
$input
|
||||
->method('getOption')
|
||||
->will($this->returnValueMap(array(
|
||||
|
@ -48,7 +48,7 @@ class RunScriptCommandTest extends TestCase
|
|||
->with('command')
|
||||
->willReturn(false);
|
||||
|
||||
$output = $this->getMock('Symfony\Component\Console\Output\OutputInterface');
|
||||
$output = $this->getMockBuilder('Symfony\Component\Console\Output\OutputInterface')->getMock();
|
||||
|
||||
$expectedDevMode = $dev || !$noDev;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue