diff --git a/tests/unit/Laravel/CacheItemTest.php b/tests/unit/Laravel/CacheItemTest.php index 6df3dca..bc4700c 100644 --- a/tests/unit/Laravel/CacheItemTest.php +++ b/tests/unit/Laravel/CacheItemTest.php @@ -91,7 +91,10 @@ public function it_can_set_expiry_with_datetime() $item->expiresAt($now->addMinute()); // Assert - $this->assertEquals($now, $item->getExpiresAt()); + $this->assertSame( + $now->format('d-m-Y H:i:s'), + $item->getExpiresAt()->format('d-m-Y H:i:s') + ); } /** @test */