public function testJson($string) { return $this->handlers['text']->testJson($string); }
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); }