Skip to content

Commit b967672

Browse files
Merge branch '2.8' into 3.1
* 2.8: [VarDumper] Fix extra whitespace
2 parents 292f5ae + ff6040a commit b967672

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Tests/DataCollector/DumpDataCollectorTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,9 @@ public function testCollectHtml()
8282
$line = __LINE__ - 1;
8383
$file = __FILE__;
8484
$xOutput = <<<EOTXT
85-
<pre class=sf-dump id=sf-dump data-indent-pad=" "><a href="test://{$file}:{$line}" title="{$file}"><span class=sf-dump-meta>DumpDataCollectorTest.php</span></a> on line <span class=sf-dump-meta>{$line}</span>:
85+
<pre class=sf-dump id=sf-dump data-indent-pad=" "><a href="test://{$file}:{$line}" title="{$file}"><span class=sf-dump-meta>DumpDataCollectorTest.php</span></a> on line <span class=sf-dump-meta>{$line}</span>:
8686
<span class=sf-dump-num>123</span>
8787
</pre>
88-
8988
EOTXT;
9089

9190
ob_start();
@@ -96,7 +95,7 @@ public function testCollectHtml()
9695
$output = preg_replace('#<(script|style).*?</\1>#s', '', $output);
9796
$output = preg_replace('/sf-dump-\d+/', 'sf-dump', $output);
9897

99-
$this->assertSame($xOutput, $output);
98+
$this->assertSame($xOutput, trim($output));
10099
$this->assertSame(1, $collector->getDumpsCount());
101100
$collector->serialize();
102101
}

0 commit comments

Comments
 (0)