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