pager() public method

See also: Bolt\Twig\Handler\RecordHandler::pager()
public pager ( Twig_Environment $env, $pagerName = '', $surr = 4, $template = '_sub_pager.twig', $class = '' )
$env Twig_Environment
Example #1
0
 public function testPager()
 {
     $app = $this->getApp();
     $handlers = $this->getTwigHandlers($app);
     $handlers['record'] = $this->getMockHandler('RecordHandler', 'pager');
     $twig = new TwigExtension($app, $handlers, true);
     $twig->pager($app['twig'], null, null, null, null);
 }