public function testAssertDoesNotImplementAuthorization() { $grant = new RefreshTokenGrant($this->accessTokenService, $this->refreshTokenService, ServerOptions::fromArray()); $this->expectException(OAuth2Exception::class, null, 'invalid_request'); $grant->createAuthorizationResponse($this->createMock(ServerRequestInterface::class), Client::createNewClient('id', 'http://www.example.com')); }
public function testAssertDoesNotImplementAuthorization() { $this->setExpectedException(OAuth2Exception::class, null, 'invalid_request'); $this->grant->createAuthorizationResponse($this->getMock(ServerRequestInterface::class), new Client()); }