Ejemplo n.º 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();
 }
Ejemplo n.º 2
0
 public function get($filename, $data = [])
 {
     return $this->engine->get($filename, array_merge($this->data, $data));
 }