瀏覽代碼

Fix tests

Jordi Boggiano 9 年之前
父節點
當前提交
066550054b
共有 1 個文件被更改,包括 10 次插入10 次删除
  1. 10 10
      tests/Composer/Test/ApplicationTest.php

+ 10 - 10
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");