コード例 #1
0
ファイル: SimpleViewTest.php プロジェクト: winkbrace/oracle
 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
ファイル: Debug.php プロジェクト: winkbrace/oracle
 /**
  * @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();
 }