Ejemplo n.º 1
0
 public function testIsSameDate()
 {
     $date1 = new Date('2015-01-03 15:00:00');
     $date2 = new Date('2015-01-03 16:00:00');
     $this->assertTrue($date1->isSameDay($date2));
     $date2 = new Date('2015-01-04 16:00:00');
     $this->assertFalse($date1->isSameDay($date2));
 }