Skip to content

Commit

Permalink
[OpenIDConnect] Tests - JWT - testDecodeWrongNumberOfSegments
Browse files Browse the repository at this point in the history
  • Loading branch information
ovr committed Feb 28, 2017
1 parent c15b727 commit 48f3cea
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/Test/OpenIDConnect/JWTTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -208,4 +208,17 @@ public function testValidateHeaderNoKid()
'validateHeader'
);
}

public function testDecodeWrongNumberOfSegments()
{
parent::setExpectedException(
InvalidJWT::class,
'Wrong number of segments'
);

JWT::decode(
'lol',
[]
);
}
}

0 comments on commit 48f3cea

Please sign in to comment.