1
0
Fork 0

Make sure tests run non-interactively

pull/6915/head
Jordi Boggiano 2017-12-18 17:18:59 +01:00
parent c8aea719b1
commit a1c5754b1f
1 changed files with 3 additions and 1 deletions

View File

@ -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