Exemple #1
0
 private function getDumpOutput($data)
 {
     $cloner = new Cloner();
     $clone = $cloner->cloneData($data);
     $dumper = new Dumper();
     return $dumper->buildDump($clone);
 }
Exemple #2
0
 /**
  * Dumps the given data to the browser
  *
  * @param $data
  */
 public function dump($data)
 {
     $cloner = new Cloner();
     $clone = $cloner->cloneData($data);
     $dump = $this->buildDump($clone);
     echo $dump;
     $this->injectJSAndStyles();
 }
Exemple #3
0
 public function testBuildDataBoolean()
 {
     $cloner = new Cloner();
     $data = false;
     $clone = $cloner->cloneData($data);
     $this->assertInstanceOf('Wicked\\Dumper\\Data', $clone);
     $this->assertSame('boolean', $clone->getType());
     $this->assertSame(0, $clone->getLength());
     $this->assertFalse($clone->isConstant());
 }