Exemplo n.º 1
0
 public function testGetLastDayOfAWeek()
 {
     $this->assertEquals('2014-04-27', DateTimeUtil::getLastDayOfAWeek('2014-04-21 00:00:01'));
     $this->assertEquals('2014-04-27', DateTimeUtil::getLastDayOfAWeek('2014-04-23 12:00:00'));
     $this->assertEquals('2014-04-27', DateTimeUtil::getLastDayOfAWeek('2014-04-27 23:59:59'));
     $this->assertEquals('2014-04-20', DateTimeUtil::getLastDayOfAWeek('2014-04-20 23:59:59'));
     $this->assertEquals('2014-04-27', DateTimeUtil::getLastDayOfAWeek('2014-04-24 12:00:00'));
     $this->assertEquals('2014-05-04', DateTimeUtil::getLastDayOfAWeek('2014-04-28 00:00:01'));
 }