From 066550054b142317a6a16a086c2fc104709b3818 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Tue, 12 Jul 2016 17:12:50 +0100 Subject: [PATCH] Fix tests --- tests/Composer/Test/ApplicationTest.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/tests/Composer/Test/ApplicationTest.php b/tests/Composer/Test/ApplicationTest.php index deb763c62..674462dd2 100644 --- a/tests/Composer/Test/ApplicationTest.php +++ b/tests/Composer/Test/ApplicationTest.php @@ -26,6 +26,11 @@ class ApplicationTest extends TestCase $outputMock = $this->getMock('Symfony\Component\Console\Output\OutputInterface'); $index = 0; + $inputMock->expects($this->at($index++)) + ->method('hasParameterOption') + ->with($this->equalTo('--no-plugins')) + ->will($this->returnValue(true)); + $inputMock->expects($this->at($index++)) ->method('getParameterOption') ->with($this->equalTo(array('--working-dir', '-d'))) @@ -35,11 +40,6 @@ class ApplicationTest extends TestCase ->method('getFirstArgument') ->will($this->returnValue('list')); - $inputMock->expects($this->at($index++)) - ->method('hasParameterOption') - ->with($this->equalTo('--no-plugins')) - ->will($this->returnValue(true)); - $index = 0; $outputMock->expects($this->at($index++)) ->method("writeError"); @@ -79,6 +79,11 @@ class ApplicationTest extends TestCase $outputMock = $this->getMock('Symfony\Component\Console\Output\OutputInterface'); $index = 0; + $inputMock->expects($this->at($index++)) + ->method('hasParameterOption') + ->with($this->equalTo('--no-plugins')) + ->will($this->returnValue(true)); + $inputMock->expects($this->at($index++)) ->method('getParameterOption') ->with($this->equalTo(array('--working-dir', '-d'))) @@ -88,11 +93,6 @@ class ApplicationTest extends TestCase ->method('getFirstArgument') ->will($this->returnValue('list')); - $inputMock->expects($this->at($index++)) - ->method('hasParameterOption') - ->with($this->equalTo('--no-plugins')) - ->will($this->returnValue(true)); - $outputMock->expects($this->never()) ->method("writeln");