public function DumpDataCollectorTest::testFlush in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-kernel/Tests/DataCollector/DumpDataCollectorTest.php \Symfony\Component\HttpKernel\Tests\DataCollector\DumpDataCollectorTest::testFlush()
File
- vendor/
symfony/ http-kernel/ Tests/ DataCollector/ DumpDataCollectorTest.php, line 123
Class
- DumpDataCollectorTest
- @author Nicolas Grekas <p@tchwork.com>
Namespace
Symfony\Component\HttpKernel\Tests\DataCollectorCode
public function testFlush() {
$data = new Data(array(
array(
456,
),
));
$collector = new DumpDataCollector();
$collector
->dump($data);
$line = __LINE__ - 1;
ob_start();
$collector = null;
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());
}
}