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