From e96656d85086928d247440b6ee08cbbb91ba30a6 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Wed, 24 Nov 2021 16:19:37 +0100 Subject: [PATCH] Fix tests on windows --- tests/Composer/Test/Util/HttpDownloaderTest.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/tests/Composer/Test/Util/HttpDownloaderTest.php b/tests/Composer/Test/Util/HttpDownloaderTest.php index cfed8d6a3..e35ab514e 100644 --- a/tests/Composer/Test/Util/HttpDownloaderTest.php +++ b/tests/Composer/Test/Util/HttpDownloaderTest.php @@ -74,10 +74,12 @@ class HttpDownloaderTest extends TestCase )); // the tag are consumed by the OutputFormatter, but not as that is not a default output format - $this->assertSame('Warning from $URL: old warning msg -Info from $URL: old info msg -Warning from $URL: visible warning -Info from $URL: visible info -', $io->getOutput()); + $this->assertSame( + 'Warning from $URL: old warning msg'.PHP_EOL. + 'Info from $URL: old info msg'.PHP_EOL. + 'Warning from $URL: visible warning'.PHP_EOL. + 'Info from $URL: visible info'.PHP_EOL, + $io->getOutput() + ); } }