public function testFlush() { $data = new Data(array(array(456))); $collector = new DumpDataCollector(); $collector->dump($data); $line = __LINE__ - 1; ob_start(); $collector->__destruct(); $this->assertSame("DumpDataCollectorTest.php on line {$line}:\n456\n", ob_get_clean()); }