public function testWidget() { $app = $this->getApp(); $handlers = $this->getTwigHandlers($app); $handlers['html'] = $this->getMockHandler('HtmlHandler', 'widget'); $twig = new TwigExtension($app, $handlers, true); $twig->widget(null, null); }