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); }