decorateTT() public method

See also: Bolt\Twig\Handler\HtmlHandler::decorateTT()
public decorateTT ( $str )
Example #1
0
 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);
 }
Example #2
0
 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`'));
 }