Explorar el Código

fix test for Symfony 3.2

Remi Collet hace 7 años
padre
commit
741c8d63fb
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  1. 4 1
      tests/Composer/Test/IO/ConsoleIOTest.php

+ 4 - 1
tests/Composer/Test/IO/ConsoleIOTest.php

@@ -218,8 +218,11 @@ class ConsoleIOTest extends TestCase
             ->will($this->returnValue($helperMock))
         ;
 
+        $validator = function ($value) {
+             return true;
+        };
         $consoleIO = new ConsoleIO($inputMock, $outputMock, $setMock);
-        $consoleIO->askAndValidate('Why?', 'validator', 10, 'default');
+        $consoleIO->askAndValidate('Why?', $validator, 10, 'default');
     }
 
     public function testSelect()