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