public function testIsAllowed() { $app = $this->getApp(); $handlers = $this->getTwigHandlers($app); $handlers['user'] = $this->getMockHandler('UserHandler', 'isAllowed'); $twig = new TwigExtension($app, $handlers, true); $twig->isAllowed(null, null); }