public function testRenderArray4() { $data = array('a' => 'b'); $render = new Console(); $render->setTable($data); $expected = "- 1 ['0' => 'b'] [] [idsubtable = ]<br />\n"; $this->assertEquals($expected, $render->render()); }
/** * Returns a string output of this DataTable\Map (applying the default renderer to every {@link DataTable} * of this DataTable\Map). * * @return string */ public function __toString() { $renderer = new Console(); $renderer->setTable($this); return (string) $renderer; }