| Total Complexity | 2 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class AuthenticationExceptionTest extends TestCase |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @test |
||
| 15 | * @dataProvider providePrev |
||
| 16 | */ |
||
| 17 | public function expiredJWTCreatesExpectedException(?Throwable $prev): void |
||
| 18 | { |
||
| 19 | $e = AuthenticationException::expiredJWT($prev); |
||
| 20 | |||
| 21 | $this->assertEquals($prev, $e->getPrevious()); |
||
| 22 | $this->assertEquals(-1, $e->getCode()); |
||
| 23 | $this->assertEquals('The token has expired.', $e->getMessage()); |
||
| 24 | } |
||
| 25 | |||
| 26 | public function providePrev() |
||
| 30 | } |
||
| 31 | } |
||
| 32 |