コード例 #1
0
ファイル: PeriodTest.php プロジェクト: brick/date-time
 /**
  * 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);
 }