$form->
submit(['Europe/Amsterdam', 'Europe/Paris'
]);
$this->
assertEquals([\IntlTimeZone::
createTimeZone('Europe/Amsterdam'
), \IntlTimeZone::
createTimeZone('Europe/Paris'
)],
$form->
getData());
} /**
* @requires extension intl
*/
public function testIntlTimeZoneInputWithBc() { $reflector =
new \
ReflectionExtension('intl'
);
ob_start();
$reflector->
info();
$output =
strip_tags(ob_get_clean());
preg_match('/^ICU TZData version (?:=>)?(.*)$/m',
$output,
$matches);
$tzDbVersion =
isset($matches[1
]) ?
(int) trim($matches[1
]) : 0;
if (!
$tzDbVersion || 2017 <=
$tzDbVersion) { $this->
markTestSkipped('"Europe/Saratov" is expired until 2017, current version is '.
$tzDbVersion);
} $form =
$this->factory->
create(static::TESTED_TYPE, null,
['input' => 'intltimezone'
]);