diff --git a/tests/Session/JwtTest.php b/tests/Session/JwtTest.php index 32d0724..56b7a2a 100644 --- a/tests/Session/JwtTest.php +++ b/tests/Session/JwtTest.php @@ -116,7 +116,7 @@ public function testGetInfoDefaults() public function testPersist() { - $timestamp = new \DateTimeImmutable('2020-01-01T00:00:00+00:00'); + $timestamp = new \DateTime('2020-01-01T00:00:00+00:00'); // Should convert to DateTimeImmutable $cookie = new CookieValue(); $this->jwt = $this->jwt->withCookie($cookie); @@ -157,7 +157,7 @@ public function testClear() public function testTtl() { - $timestamp = new \DateTimeImmutable('2020-01-01T00:00:00+00:00'); + $timestamp = new \DateTime('2020-01-01T00:00:00+00:00'); // Should convert to DateTimeImmutable $cookie = new CookieValue(); $this->jwt = $this->jwt