Esempio n. 1
0
 public function testDateSetters()
 {
     $holiday = new Holiday('Test Holiday', new DateTime('2016-01-02'), new DateTime('2016-01-03'));
     $this->assertEquals(new DateTime('2016-01-02 00:00:00'), $holiday->getDateStart());
     $this->assertEquals(new DateTime('2016-01-03 23:59:59'), $holiday->getDateEnd());
 }