/** * Extensive testing is done in LocalDate::until(). */ public function testBetween() { $period = Period::between(LocalDate::of(2010, 1, 15), LocalDate::of(2011, 3, 18)); $this->assertPeriodIs(1, 2, 3, $period); }