diff --git a/test/Faker/Provider/DateTimeTest.php b/test/Faker/Provider/DateTimeTest.php index cc2fc2f1a7..dfb3f5695a 100644 --- a/test/Faker/Provider/DateTimeTest.php +++ b/test/Faker/Provider/DateTimeTest.php @@ -189,8 +189,8 @@ public function testDateTimeBetween($start, $end) { $date = DateTimeProvider::dateTimeBetween($start, $end); $this->assertInstanceOf('\DateTime', $date); - $this->assertGreaterThanOrEqual(new \DateTime($start), $date); - $this->assertLessThanOrEqual(new \DateTime($end), $date); + $this->assertGreaterThanOrEqual((new \DateTime($start))->getTimestamp(), $date->getTimestamp()); + $this->assertLessThanOrEqual((new \DateTime($end))->getTimestamp(), $date->getTimestamp()); $this->assertEquals(new \DateTimeZone($this->defaultTz), $date->getTimezone()); }