Exemplo n.º 1
0
 public function testDumpEchoEmptyArray()
 {
     ob_start();
     Printer::dump(array());
     $actual = ob_get_clean();
     $this->assertSame("", $actual);
 }
Exemplo n.º 2
0
 /**
  * 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);
 }