コード例 #1
0
 /**
  * Gets client from current session
  *
  * @return \OAuth2\Storage\IClient
  */
 public function getClient()
 {
     return $this->authorizationCode->getClient();
 }
コード例 #2
0
 function it_should_return_client_from_authorization_code(IAuthorizationCode $authorizationCode)
 {
     $authorizationCode->getClient()->willReturn(true)->shouldBeCalled();
     $this->getClient()->shouldReturn(true);
 }