From a9bace37f6375322f1018dd42dc9cfd661a74262 Mon Sep 17 00:00:00 2001 From: Ion Bazan Date: Fri, 7 Feb 2020 14:52:31 +0800 Subject: [PATCH] fix windows build --- tests/Composer/Test/Util/ProcessExecutorTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Composer/Test/Util/ProcessExecutorTest.php b/tests/Composer/Test/Util/ProcessExecutorTest.php index 63ed0b7de..4ac0d570f 100644 --- a/tests/Composer/Test/Util/ProcessExecutorTest.php +++ b/tests/Composer/Test/Util/ProcessExecutorTest.php @@ -110,7 +110,7 @@ class ProcessExecutorTest extends TestCase $output = new BufferedOutput(OutputInterface::VERBOSITY_NORMAL, true); $process = new ProcessExecutor(new ConsoleIO(new ArrayInput(array()), $output, new HelperSet(array()))); - $process->execute('echo \'foo\''); + $process->execute('php -r "echo \'foo\'.PHP_EOL;"'); $this->assertSame('foo'.PHP_EOL, $output->fetch()); } }