|
@@ -25,12 +25,12 @@ class ApplicationTest extends TestCase
|
|
$inputMock = $this->getMock('Symfony\Component\Console\Input\InputInterface');
|
|
$inputMock = $this->getMock('Symfony\Component\Console\Input\InputInterface');
|
|
$outputMock = $this->getMock('Symfony\Component\Console\Output\OutputInterface');
|
|
$outputMock = $this->getMock('Symfony\Component\Console\Output\OutputInterface');
|
|
|
|
|
|
- $inputMock->expects($this->once())
|
|
|
|
|
|
+ $inputMock->expects($this->any())
|
|
->method('hasParameterOption')
|
|
->method('hasParameterOption')
|
|
->with($this->equalTo('--no-plugins'))
|
|
->with($this->equalTo('--no-plugins'))
|
|
->will($this->returnValue(true));
|
|
->will($this->returnValue(true));
|
|
|
|
|
|
- $inputMock->expects($this->once())
|
|
|
|
|
|
+ $inputMock->expects($this->any())
|
|
->method('getFirstArgument')
|
|
->method('getFirstArgument')
|
|
->will($this->returnValue('list'));
|
|
->will($this->returnValue('list'));
|
|
|
|
|
|
@@ -73,7 +73,7 @@ class ApplicationTest extends TestCase
|
|
$inputMock = $this->getMock('Symfony\Component\Console\Input\InputInterface');
|
|
$inputMock = $this->getMock('Symfony\Component\Console\Input\InputInterface');
|
|
$outputMock = $this->getMock('Symfony\Component\Console\Output\OutputInterface');
|
|
$outputMock = $this->getMock('Symfony\Component\Console\Output\OutputInterface');
|
|
|
|
|
|
- $inputMock->expects($this->once())
|
|
|
|
|
|
+ $inputMock->expects($this->any())
|
|
->method('getFirstArgument')
|
|
->method('getFirstArgument')
|
|
->will($this->returnValue($command));
|
|
->will($this->returnValue($command));
|
|
|
|
|