コード例 #1
0
 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'));
 }
コード例 #2
0
 public function testAssertDoesNotImplementAuthorization()
 {
     $this->setExpectedException(OAuth2Exception::class, null, 'invalid_request');
     $this->grant->createAuthorizationResponse($this->getMock(ServerRequestInterface::class), new Client());
 }