You are here

public function JWKFetcherTest::testGetJwksX5cNoX5c in Auth0 Single Sign On 8.2

Test that a JWK with no x509 cert returns a blank array.

Return value

void

File

vendor/auth0/auth0-php/tests/Helpers/JWKFetcherTest.php, line 144

Class

JWKFetcherTest
Class JWKFetcherTest.

Namespace

Auth0\Tests\Helpers

Code

public function testGetJwksX5cNoX5c() {
  $jwksFetcher = $this
    ->getStub();
  $pem = $jwksFetcher
    ->requestJwkX5c('https://localhost/.custom/jwks.json', '__no_x5c_test_kid_2__');
  $this
    ->assertEmpty($pem);
}