From f420d3123364b00117bdc9915893a38db4d03a93 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Tue, 8 Aug 2017 10:43:26 +0200 Subject: [PATCH] Fix application test --- tests/Composer/Test/ApplicationTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/Composer/Test/ApplicationTest.php b/tests/Composer/Test/ApplicationTest.php index 674462dd2..4fa326241 100644 --- a/tests/Composer/Test/ApplicationTest.php +++ b/tests/Composer/Test/ApplicationTest.php @@ -36,9 +36,9 @@ class ApplicationTest extends TestCase ->with($this->equalTo(array('--working-dir', '-d'))) ->will($this->returnValue(false)); - $inputMock->expects($this->at($index++)) + $inputMock->expects($this->any()) ->method('getFirstArgument') - ->will($this->returnValue('list')); + ->will($this->returnValue('show')); $index = 0; $outputMock->expects($this->at($index++)) @@ -89,9 +89,9 @@ class ApplicationTest extends TestCase ->with($this->equalTo(array('--working-dir', '-d'))) ->will($this->returnValue(false)); - $inputMock->expects($this->at($index++)) + $inputMock->expects($this->any()) ->method('getFirstArgument') - ->will($this->returnValue('list')); + ->will($this->returnValue('show')); $outputMock->expects($this->never()) ->method("writeln");