123 +EOTXT; + } else { + $len = strlen("DumpDataCollectorTest.php on line {$line}:"); + $xOutput = <<+"DumpDataCollectorTest.php on line {$line}:" +
123
EOTXT;
+ }
ob_start();
$response = new Response();
@@ -99,6 +116,8 @@ public function testCollectHtml()
$output = preg_replace('/sf-dump-\d+/', 'sf-dump', $output);
$this->assertSame($xOutput, $output);
+ $this->assertSame(1, $collector->getDumpsCount());
+ $collector->serialize();
}
public function testFlush()
@@ -110,6 +129,10 @@ public function testFlush()
ob_start();
$collector = null;
- $this->assertSame("DumpDataCollectorTest.php on line {$line}:\n456\n", ob_get_clean());
+ if (PHP_VERSION_ID >= 50400) {
+ $this->assertSame("DumpDataCollectorTest.php on line {$line}:\n456\n", ob_get_clean());
+ } else {
+ $this->assertSame("\"DumpDataCollectorTest.php on line {$line}:\"\n456\n", ob_get_clean());
+ }
}
}
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: