Beispiel #1
0
 /**
  * Makes sure the UnixtimeForTimeInTimezone function is working correctly.
  *
  * @param string  $timezone Timezone to set
  * @param integer $year     Year to set
  * @param integer $month    Month to set
  * @param integer $day      Day to set
  * @param integer $hour     Hour to set
  * @param integer $minute   Minute to set
  * @param integer $second   Second to set
  * @param integer $expected Expected unix timestamp from other variables
  *
  * @return void
  *
  * @nottest
  * @dataProvider timeProvider
  */
 public function canGetUnixTimeForTimeInTimeZone($timezone, $year, $month, $day, $hour, $minute, $second, $expected)
 {
     $this->markTestSkipped('Test is brittle and fails or passes based on timezone changes.');
     $this->assertEquals($expected, \Timezone::UnixtimeForTimeInTimezone($timezone, $year, $month, $day, $hour, $minute, $second));
 }