function it_checks_the_auth_code_request_parameters(AuthorizationServer $issuer, AuthCodeGrant $authCodeGrant) { $authCodeGrant->checkAuthorizeParams()->willReturn(['foo' => 'bar'])->shouldBeCalled(); $issuer->getGrantType('authorization_code')->willReturn($authCodeGrant)->shouldBeCalled(); $this->checkAuthCodeRequest()->shouldReturn(null); $this->getAuthCodeRequestParams()->shouldBe(['foo' => 'bar']); $this->getAuthCodeRequestParam('foo')->shouldBe('bar'); }