コード例 #1
0
ファイル: TimeDateTest.php プロジェクト: nickpro/sugarcrm_dev
 /**
  * test for getDayStartEndGMT
  * @dataProvider dayDataSet
  */
 public function testGetDayStartEnd($date, $start, $end, $tz)
 {
     $this->_setPrefs('m/d/Y', '', $tz);
     $date_arr = explode("-", $date);
     $date = $date_arr[1] . '/' . $date_arr[2] . '/' . $date_arr[0];
     $dates = $this->time_date->getDayStartEndGMT($date);
     $this->assertEquals($start, $dates["start"], "Bad min result for {$date} tz {$tz}");
     $this->assertEquals($end, $dates["end"], "Bad max result for {$date} tz {$tz}");
 }