$form->
submit('Europe/Saratov'
);
$this->
assertEquals(new \
DateTimeZone('Europe/Saratov'
),
$form->
getData());
$this->
assertContainsEquals('Europe/Saratov',
$form->
getConfig()->
getAttribute('choice_list'
)->
getValues());
} /**
* @requires extension intl
*/
public function testIntlTimeZoneInput() { $form =
$this->factory->
create(static::TESTED_TYPE, \IntlTimeZone::
createTimeZone('America/New_York'
),
['input' => 'intltimezone'
]);
$this->
assertSame('America/New_York',
$form->
createView()->vars
['value'
]);
$form->
submit('Europe/Amsterdam'
);
$this->
assertEquals(\IntlTimeZone::
createTimeZone('Europe/Amsterdam'
),
$form->
getData());
$form =
$this->factory->
create(static::TESTED_TYPE,
[\IntlTimeZone::
createTimeZone('America/New_York'
)],
['input' => 'intltimezone', 'multiple' => true
]);
$this->
assertSame(['America/New_York'
],
$form->
createView()->vars
['value'
]);