public function safeString($str, $strict = false, $extrachars = '')
{
return $this->handlers['text']->safeString($str, $strict, $extrachars);
}
public function testSafeString() { $app = $this->getApp(); $handlers = $this->getTwigHandlers($app); $handlers['text'] = $this->getMockHandler('TextHandler', 'safeString'); $twig = new TwigExtension($app, $handlers, true); $twig->safeString(null, null, null); }