/** * Gets scopes from authorization code * * @return \OAuth2\Storage\IScope[] */ public function getScopes() { return $this->authorizationCode->getScopes(); }
function it_should_return_scopes_from_authorization_code(IAuthorizationCode $authorizationCode) { $authorizationCode->getScopes()->willReturn([])->shouldBeCalled(); $this->getScopes()->shouldReturn([]); }