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