public function hattr($attributes) { return $this->handlers['admin']->hattr($attributes); }
public function testHattr() { $app = $this->getApp(); $handlers = $this->getTwigHandlers($app); $handlers['admin'] = $this->getMockHandler('AdminHandler', 'hattr'); $twig = new TwigExtension($app, $handlers, true); $twig->hattr(null); }