public function testDecorateTT() { $app = $this->getApp(); $handlers = $this->getTwigHandlers($app); $handlers['html'] = $this->getMockHandler('HtmlHandler', 'decorateTT'); $twig = new TwigExtension($app, $handlers, true); $twig->decorateTT(null); }
public function testDecorateTT() { $app = $this->getApp(); $handlers = $this->getTwigHandlers($app); $twig = new TwigExtension($app, $handlers, false); $this->assertEquals('run: <tt>cat</tt>', $twig->decorateTT('run: `cat`')); }