示例#1
0
 public function testRenderWithTooManyVariables()
 {
     $data = array('name' => 'Bas', 'title' => 'Master of the Universe');
     $view = new SimpleView($this->template, $data);
     $actual = $view->render();
     $this->assertEquals('Hello, Bas', $actual);
 }
示例#2
0
 /**
  * @return string
  */
 public function render()
 {
     $data = array('sql' => $this->statement->getSql(), 'binds' => $this->statement->toStringBindVariables(), 'schema' => $this->statement->getSchema());
     $view = new SimpleView(__DIR__ . '/debug.phtml', $data);
     return $view->render();
 }