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); }
/** * @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(); }