Skip to content

Commit efd00ba

Browse files
committed
[FrameworkBundle] Revert AbstractDescriptorTest output trimming
1 parent b9b6ebd commit efd00ba

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

src/Symfony/Bundle/FrameworkBundle/Tests/Console/Descriptor/AbstractDescriptorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ private function assertDescription($expectedDescription, $describedObject, array
193193
if ('json' === $this->getFormat()) {
194194
$this->assertEquals(json_decode($expectedDescription), json_decode($output->fetch()));
195195
} else {
196-
$this->assertEquals(trim(preg_replace('/[\s\t\r]+/', ' ', $expectedDescription)), trim(preg_replace('/[\s\t\r]+/', ' ', str_replace(PHP_EOL, "\n", $output->fetch()))));
196+
$this->assertEquals(trim($expectedDescription), trim(str_replace(PHP_EOL, "\n", $output->fetch())));
197197
}
198198
}
199199

src/Symfony/Bundle/FrameworkBundle/Tests/Console/Descriptor/TextDescriptorTest.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,16 @@
1515

1616
class TextDescriptorTest extends AbstractDescriptorTest
1717
{
18+
protected function setUp()
19+
{
20+
putenv('COLUMNS=121');
21+
}
22+
23+
protected function tearDown()
24+
{
25+
putenv('COLUMNS');
26+
}
27+
1828
protected function getDescriptor()
1929
{
2030
return new TextDescriptor();

0 commit comments

Comments
 (0)