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