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
|
@ -22,8 +22,8 @@ class ApplicationTest extends TestCase
|
|||
{
|
||||
$application = new Application;
|
||||
|
||||
$inputMock = $this->getMock('Symfony\Component\Console\Input\InputInterface');
|
||||
$outputMock = $this->getMock('Symfony\Component\Console\Output\OutputInterface');
|
||||
$inputMock = $this->getMockBuilder('Symfony\Component\Console\Input\InputInterface')->getMock();
|
||||
$outputMock = $this->getMockBuilder('Symfony\Component\Console\Output\OutputInterface')->getMock();
|
||||
|
||||
$index = 0;
|
||||
$inputMock->expects($this->at($index++))
|
||||
|
@ -75,8 +75,8 @@ class ApplicationTest extends TestCase
|
|||
|
||||
$application->add(new \Composer\Command\SelfUpdateCommand);
|
||||
|
||||
$inputMock = $this->getMock('Symfony\Component\Console\Input\InputInterface');
|
||||
$outputMock = $this->getMock('Symfony\Component\Console\Output\OutputInterface');
|
||||
$inputMock = $this->getMockBuilder('Symfony\Component\Console\Input\InputInterface')->getMock();
|
||||
$outputMock = $this->getMockBuilder('Symfony\Component\Console\Output\OutputInterface')->getMock();
|
||||
|
||||
$index = 0;
|
||||
$inputMock->expects($this->at($index++))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue