Skip to content

Commit

Permalink
Added missing test for Jwt Factory validator method.
Browse files Browse the repository at this point in the history
  • Loading branch information
RobDWaller committed Apr 24, 2022
1 parent 769e03a commit 2feff44
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/Factory/JwtTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use PHPUnit\Framework\TestCase;
use ReallySimpleJWT\Build;
use ReallySimpleJWT\Parse;
use ReallySimpleJWT\Validate;
use PsrJwt\Factory\Jwt;

class JwtTest extends TestCase
Expand All @@ -30,4 +31,15 @@ public function testJwtParser(): void

$this->assertInstanceOf(Parse::class, $jwt);
}

/**
* @covers PsrJwt\Factory\Jwt::validator
*/
public function testJwtValidator(): void
{
$jwt = new Jwt();
$jwt = $jwt->validator('aaa.bbb.ccc', 'secret');

$this->assertInstanceOf(Validate::class, $jwt);
}
}

0 comments on commit 2feff44

Please sign in to comment.