public function testCustomException() { $view = new View(); $view->setExtension('.tpl'); $result = $view->render(__DIR__ . '/fixtures/custom-extension', ['foo' => 'foo']); $this->assertSame('custom extension foo', $result); }