/**
  * Gets user from current session
  *
  * @return \OAuth2\Storage\IUser
  */
 public function getUser()
 {
     return $this->authorizationCode->getUser();
 }
 function it_should_return_user_from_authorization_code(IAuthorizationCode $authorizationCode)
 {
     $authorizationCode->getUser()->willReturn(true)->shouldBeCalled();
     $this->getUser()->shouldReturn(true);
 }