public function current($content) { return $this->handlers['record']->current($content); }
public function testCurrent() { $app = $this->getApp(); $handlers = $this->getTwigHandlers($app); $handlers['record'] = $this->getMockHandler('RecordHandler', 'current'); $twig = new TwigExtension($app, $handlers, true); $twig->current(null); }