Skip to content

Commit

Permalink
remove jwt.io reference from unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
JuliusPC committed Oct 24, 2021
1 parent a8b501d commit 4fcb64e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/TokenVerificationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ public function testTokenVerification($alg, $jwt)
/** @var OpenIDConnectClient | PHPUnit_Framework_MockObject_MockObject $client */
$client = $this->getMockBuilder(OpenIDConnectClient::class)->setMethods(['fetchUrl'])->getMock();
$client->method('fetchUrl')->willReturn(file_get_contents(__DIR__ . "/data/jwks-$alg.json"));
$client->setProviderURL('https://jwt.io/');
$client->providerConfigParam(['jwks_uri' => 'https://jwt.io/.well-known/jwks.json']);
$client->setProviderURL('https://example.org/');
$client->providerConfigParam(['jwks_uri' => 'https://example.org/.well-known/jwks.json']);
$verified = $client->verifyJWTsignature($jwt);
self::assertTrue($verified);
$client->setAccessToken($jwt);
Expand Down

0 comments on commit 4fcb64e

Please sign in to comment.