From a1c5754b1f6c22a1e359507c619fad0d401d91e7 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Mon, 18 Dec 2017 17:18:59 +0100 Subject: [PATCH] Make sure tests run non-interactively --- tests/Composer/Test/InstallerTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/Composer/Test/InstallerTest.php b/tests/Composer/Test/InstallerTest.php index 76fb8817d..468d8fbbd 100644 --- a/tests/Composer/Test/InstallerTest.php +++ b/tests/Composer/Test/InstallerTest.php @@ -239,7 +239,9 @@ class InstallerTest extends TestCase $application->setAutoExit(false); $appOutput = fopen('php://memory', 'w+'); - $result = $application->run(new StringInput($run), new StreamOutput($appOutput)); + $input = new StringInput($run); + $input->setInteractive(false); + $result = $application->run($input, new StreamOutput($appOutput)); fseek($appOutput, 0); // Shouldn't check output and results if an exception was expected by this point