private function getDumpOutput($data) { $cloner = new Cloner(); $clone = $cloner->cloneData($data); $dumper = new Dumper(); return $dumper->buildDump($clone); }
/** * 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(); }
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()); }