1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 00:22:53 +00:00

Fix tests on windows

This commit is contained in:
Jordi Boggiano 2021-11-24 16:19:37 +01:00
parent 7e3626362e
commit e96656d850
No known key found for this signature in database
GPG key ID: 7BBD42C429EC80BC

View file

@ -74,10 +74,12 @@ class HttpDownloaderTest extends TestCase
));
// the <info> tag are consumed by the OutputFormatter, but not <warning> as that is not a default output format
$this->assertSame('<warning>Warning from $URL: old warning msg</warning>
Info from $URL: old info msg
<warning>Warning from $URL: visible warning</warning>
Info from $URL: visible info
', $io->getOutput());
$this->assertSame(
'<warning>Warning from $URL: old warning msg</warning>'.PHP_EOL.
'Info from $URL: old info msg'.PHP_EOL.
'<warning>Warning from $URL: visible warning</warning>'.PHP_EOL.
'Info from $URL: visible info'.PHP_EOL,
$io->getOutput()
);
}
}