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