dump() public method

public dump ( Symfony\Component\VarDumper\Cloner\Data $data )
$data Symfony\Component\VarDumper\Cloner\Data
 public function testFlush()
 {
     $data = new Data(array(array(456)));
     $collector = new DumpDataCollector();
     $collector->dump($data);
     $line = __LINE__;
     ob_start();
     $collector = null;
     $this->assertSame("DumpDataCollectorTest.php on line {$line}:\n456\n", ob_get_clean());
 }
 public function testFlush()
 {
     $data = new Data(array(array(456)));
     $collector = new DumpDataCollector();
     $collector->dump($data);
     $line = __LINE__ - 1;
     ob_start();
     $collector->__destruct();
     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());
     }
 }