public function jsonDecode($string) { return $this->handlers['text']->jsonDecode($string); }
public function testJsonDecode() { $app = $this->getApp(); $handlers = $this->getTwigHandlers($app); $handlers['text'] = $this->getMockHandler('TextHandler', 'jsonDecode'); $twig = new TwigExtension($app, $handlers, true); $twig->jsonDecode(null); }