You are here

public function TokenTest::testThatSuportedAlgsThrowsException in Auth0 Single Sign On 8.2

Test legacy misspelling.

Return value

void

File

vendor/auth0/auth0-php/tests/API/Helpers/TokenGeneratorTest.php, line 38

Class

TokenTest
Class TokenTest

Namespace

Auth0\Tests\Api\Helpers

Code

public function testThatSuportedAlgsThrowsException() {
  $caught_exception = false;
  try {
    new JWTVerifier([
      'suported_algs' => uniqid(),
    ]);
  } catch (CoreException $e) {
    $caught_exception = $this
      ->errorHasString($e, '`suported_algs` was properly renamed to `supported_algs`');
  }
  $this
    ->assertTrue($caught_exception);
}