'Australia/Perth', 'Australia/Perth (%s:00)',
$xRegion],
['Europe/Zurich', 'Europe/Zurich (%s:00)',
$xRegion],
['Pacific/Tahiti', 'Pacific/Tahiti (%s:00)',
$xRegion],
];
} /**
* @dataProvider providePeriods
*/
public function testDumpPeriod($start,
$interval,
$end,
$options,
$expected) { $p =
new \
DatePeriod(new \
DateTimeImmutable($start),
new \
DateInterval($interval), \
is_int($end) ?
$end :
new \
DateTime($end),
$options);
$xDump = <<<EODUMP
DatePeriod {
period:
$expected
%A}
EODUMP;
$this->
assertDumpMatchesFormat($xDump,
$p);
} /**
* @dataProvider providePeriods
*/