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