* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Tymon\JWTAuth\Test\Claims; use Tymon\JWTAuth\Claims\IssuedAt; use Tymon\JWTAuth\Exceptions\InvalidClaimException; use Tymon\JWTAuth\Test\AbstractTestCase; class IssuedAtTest extends AbstractTestCase { /** @test */ public function it_should_throw_an_exception_when_passing_a_future_timestamp() { $this->expectException(InvalidClaimException::class); $this->expectExceptionMessage('Invalid value provided for claim [iat]'); new IssuedAt($this->testNowTimestamp + 3600); } }