예제 #1
0
 /**
  * @expectedException Studiow\PHPTemplate\Exception\FileNotFoundException
  */
 public function test_failure_file()
 {
     $engine = new Engine(__DIR__ . "/res");
     $template = $engine->get("none_existing.php");
     $template->render();
 }
예제 #2
0
 public function get($filename, $data = [])
 {
     return $this->engine->get($filename, array_merge($this->data, $data));
 }