[FwB] Fix tests on Windows

This commit is contained in:
Nicolas Grekas 2015-11-05 16:42:47 +01:00
parent 4a177d7cb9
commit 53f4fd50ed

View File

@ -144,7 +144,7 @@ abstract class AbstractDescriptorTest extends \PHPUnit_Framework_TestCase
if ('json' === $this->getFormat()) {
$this->assertEquals(json_decode($expectedDescription), json_decode($output->fetch()));
} else {
$this->assertEquals($expectedDescription, $output->fetch());
$this->assertEquals(trim($expectedDescription), trim(str_replace(PHP_EOL, "\n", $output->fetch())));
}
}