Explorar o código

Fix tests for reals

Jordi Boggiano %!s(int64=5) %!d(string=hai) anos
pai
achega
a403ee9b0e
Modificáronse 1 ficheiros con 8 adicións e 8 borrados
  1. 8 8
      tests/Composer/Test/ApplicationTest.php

+ 8 - 8
tests/Composer/Test/ApplicationTest.php

@@ -28,15 +28,15 @@ class ApplicationTest extends TestCase
         putenv('COMPOSER_NO_INTERACTION=1');
         putenv('COMPOSER_NO_INTERACTION=1');
 
 
         $index = 0;
         $index = 0;
-        $inputMock->expects($this->at($index++))
-            ->method('setInteractive')
-            ->with($this->equalTo(false));
-
         $inputMock->expects($this->at($index++))
         $inputMock->expects($this->at($index++))
             ->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->at($index++))
+            ->method('setInteractive')
+            ->with($this->equalTo(false));
+
         $inputMock->expects($this->at($index++))
         $inputMock->expects($this->at($index++))
             ->method('hasParameterOption')
             ->method('hasParameterOption')
             ->with($this->equalTo('--no-cache'))
             ->with($this->equalTo('--no-cache'))
@@ -92,15 +92,15 @@ class ApplicationTest extends TestCase
         putenv('COMPOSER_NO_INTERACTION=1');
         putenv('COMPOSER_NO_INTERACTION=1');
 
 
         $index = 0;
         $index = 0;
-        $inputMock->expects($this->at($index++))
-            ->method('setInteractive')
-            ->with($this->equalTo(false));
-
         $inputMock->expects($this->at($index++))
         $inputMock->expects($this->at($index++))
             ->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->at($index++))
+            ->method('setInteractive')
+            ->with($this->equalTo(false));
+
         $inputMock->expects($this->at($index++))
         $inputMock->expects($this->at($index++))
             ->method('hasParameterOption')
             ->method('hasParameterOption')
             ->with($this->equalTo('--no-cache'))
             ->with($this->equalTo('--no-cache'))