コード例 #1
0
 public function testReservationDoesNotOccurOnDateIfNoneOfTheReservationOccursAtAnyTimeOnThatDate()
 {
     $d1 = new Date('2009-10-09 22:00:00', 'UTC');
     // 2009-10-09 17:00:00 CST
     $d2 = new Date('2009-10-09 23:00:00', 'UTC');
     // 2009-10-09 18:00:00 CST
     $res1 = new ReservationItemView(1, $d1, $d2);
     $this->assertFalse($res1->OccursOn(Date::Parse('2009-10-10', 'CST')));
 }