Skip to content

Commit

Permalink
Test DateTime to DateTimeImmutable conversion of JWT::persist().
Browse files Browse the repository at this point in the history
  • Loading branch information
jasny committed Jan 31, 2021
1 parent 321670a commit 9593edc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Session/JwtTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9593edc

Please sign in to comment.