File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
HttpKernel/Tests/DataCollector Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -82,10 +82,9 @@ public function testCollectHtml()
82
82
$ line = __LINE__ - 1 ;
83
83
$ file = __FILE__ ;
84
84
$ 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>:
86
86
<span class=sf-dump-num>123</span>
87
87
</pre>
88
-
89
88
EOTXT ;
90
89
91
90
ob_start ();
@@ -96,7 +95,7 @@ public function testCollectHtml()
96
95
$ output = preg_replace ('#<(script|style).*?</\1>#s ' , '' , $ output );
97
96
$ output = preg_replace ('/sf-dump-\d+/ ' , 'sf-dump ' , $ output );
98
97
99
- $ this ->assertSame ($ xOutput , $ output );
98
+ $ this ->assertSame ($ xOutput , trim ( $ output) );
100
99
$ this ->assertSame (1 , $ collector ->getDumpsCount ());
101
100
$ collector ->serialize ();
102
101
}
Original file line number Diff line number Diff line change @@ -288,8 +288,7 @@ function isCtrlKey(e) {
288
288
};
289
289
290
290
})(document);
291
- </script>
292
- <style>
291
+ </script><style>
293
292
pre.sf-dump {
294
293
display: block;
295
294
white-space: pre;
You can’t perform that action at this time.
0 commit comments