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