From 741c8d63fbad0253a53b9558d98ee95b42fdbefc Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 22 May 2017 08:16:45 +0200 Subject: [PATCH] fix test for Symfony 3.2 --- tests/Composer/Test/IO/ConsoleIOTest.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/Composer/Test/IO/ConsoleIOTest.php b/tests/Composer/Test/IO/ConsoleIOTest.php index ace27a416..ff96a011f 100644 --- a/tests/Composer/Test/IO/ConsoleIOTest.php +++ b/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()