1
0
Fork 0

Fix tests

pull/5527/head
Jordi Boggiano 2016-07-12 17:12:50 +01:00
parent a242f7e9ba
commit 066550054b
1 changed files with 10 additions and 10 deletions

View File

@ -26,6 +26,11 @@ class ApplicationTest extends TestCase
$outputMock = $this->getMock('Symfony\Component\Console\Output\OutputInterface'); $outputMock = $this->getMock('Symfony\Component\Console\Output\OutputInterface');
$index = 0; $index = 0;
$inputMock->expects($this->at($index++))
->method('hasParameterOption')
->with($this->equalTo('--no-plugins'))
->will($this->returnValue(true));
$inputMock->expects($this->at($index++)) $inputMock->expects($this->at($index++))
->method('getParameterOption') ->method('getParameterOption')
->with($this->equalTo(array('--working-dir', '-d'))) ->with($this->equalTo(array('--working-dir', '-d')))
@ -35,11 +40,6 @@ class ApplicationTest extends TestCase
->method('getFirstArgument') ->method('getFirstArgument')
->will($this->returnValue('list')); ->will($this->returnValue('list'));
$inputMock->expects($this->at($index++))
->method('hasParameterOption')
->with($this->equalTo('--no-plugins'))
->will($this->returnValue(true));
$index = 0; $index = 0;
$outputMock->expects($this->at($index++)) $outputMock->expects($this->at($index++))
->method("writeError"); ->method("writeError");
@ -79,6 +79,11 @@ class ApplicationTest extends TestCase
$outputMock = $this->getMock('Symfony\Component\Console\Output\OutputInterface'); $outputMock = $this->getMock('Symfony\Component\Console\Output\OutputInterface');
$index = 0; $index = 0;
$inputMock->expects($this->at($index++))
->method('hasParameterOption')
->with($this->equalTo('--no-plugins'))
->will($this->returnValue(true));
$inputMock->expects($this->at($index++)) $inputMock->expects($this->at($index++))
->method('getParameterOption') ->method('getParameterOption')
->with($this->equalTo(array('--working-dir', '-d'))) ->with($this->equalTo(array('--working-dir', '-d')))
@ -88,11 +93,6 @@ class ApplicationTest extends TestCase
->method('getFirstArgument') ->method('getFirstArgument')
->will($this->returnValue('list')); ->will($this->returnValue('list'));
$inputMock->expects($this->at($index++))
->method('hasParameterOption')
->with($this->equalTo('--no-plugins'))
->will($this->returnValue(true));
$outputMock->expects($this->never()) $outputMock->expects($this->never())
->method("writeln"); ->method("writeln");