From 5888945c302b675c02435aee804d59bc9710236e Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Wed, 1 Jun 2022 22:10:48 +0200 Subject: [PATCH] Fix tests on windows --- tests/Composer/Test/Command/UpdateCommandTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Composer/Test/Command/UpdateCommandTest.php b/tests/Composer/Test/Command/UpdateCommandTest.php index fdc876b9c83f..90b614389410 100644 --- a/tests/Composer/Test/Command/UpdateCommandTest.php +++ b/tests/Composer/Test/Command/UpdateCommandTest.php @@ -28,7 +28,7 @@ public function testUpdate(array $composerJson, array $command, string $expected $appTester = $this->getApplicationTester(); $appTester->run(array_merge(['command' => 'update', '--dry-run' => true], $command)); - $this->assertSame(trim($expected), trim($appTester->getDisplay())); + $this->assertSame(strtr(trim($expected), "\r", ''), strtr(trim($appTester->getDisplay()), "\r", '')); } public function provideUpdates(): \Generator