public function redirect($path)
{
return $this->handlers['utils']->redirect($path, $this->safe);
}
public function testRedirect() { $app = $this->getApp(); $handlers = $this->getTwigHandlers($app); $handlers['utils'] = $this->getMockHandler('UtilsHandler', 'redirect'); $twig = new TwigExtension($app, $handlers, true); $twig->redirect(null, null); }