Пример #1
0
 /**
  * @covers DateUtils::getHourOfDay
  */
 public function testGetHourOfDayLATimezone()
 {
     $time = 1430388542;
     $actual = \DateUtils::getHourOfDay($time, "America/Los_Angeles");
     $execpted = 3;
     $this->assertEquals($execpted, $actual);
     $nextWeek = $time + 7 * 24 * 60 * 60;
     $actual = \DateUtils::getHourOfDay($nextWeek, "America/Los_Angeles");
     $excepted = 3;
     $this->assertSame($excepted, $actual);
 }