/** * @dataProvider data_plusDays */ public function test_until_days(ZonedDateTime $base, $expected, ZonedDateTime $end) { if ($base->toLocalTime()->equals($end->toLocalTime()) == false) { return; // avoid DST gap input values } $this->assertEquals($base->until($end, CU::DAYS()), $expected); }