public function testDumpEchoEmptyArray() { ob_start(); Printer::dump(array()); $actual = ob_get_clean(); $this->assertSame("", $actual); }
/** * Fetches the models matching the current filter and dumps them * to the console in a human readable format. * * @param boolean $return If set to TRUE, will return the dump as a string, * otherwise, it will write it to the console (default). */ public function dump($return = false) { return Printer::dump(clone $this, $return); }