Пример #1
0
 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());
 }
Пример #2
0
 /**
  * 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;
 }