public function test() { $view = new View(); $view->setDirectory(__DIR__ . '/fixtures'); $result = $view->render('test-partial', ['foo' => 'foo']); $this->assertSame('template partial foo bar', $result); }
/** * @expectedException \BadMethodCallException */ public function testCallUndefinedHelperShouldThrowAnException() { $view = new View(); $view->foobarbaz(); }