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