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