1--TEST--
2MessageFormat accepts IntlCalendar args
3--SKIPIF--
4<?php
5if (!extension_loaded('intl')) die('skip intl extension not enabled'); ?>
6<?php if (version_compare(INTL_ICU_VERSION, '52.1') < 0) die('skip for ICU >= 52.1'); ?>
7<?php if (version_compare(INTL_ICU_VERSION, '54.1') >=  0) die('skip for ICU < 54.1'); ?>
8--FILE--
9<?php
10ini_set("intl.error_level", E_WARNING);
11//ini_set("intl.default_locale", "nl");
12ini_set('date.timezone', 'Europe/Lisbon');
13
14$cal = new IntlGregorianCalendar(2012,04,17,17,35,36);
15
16$msgf = new MessageFormatter('pt_PT', '{0,date,full} {0,time,h:m:s a V}');
17echo $msgf->format(array($cal)), "\n";
18
19//NOT FIXED:
20/*$msgf = new MessageFormatter('en_US',
21'{1, select, date {{0,date,full}} other {{0,time,h:m:s a V}}}');
22
23echo "msgf2: ", $msgf->format(array($time, 'date')), " ",
24		$msgf->format(array($time, 'time')), "\n";
25*/
26
27?>
28==DONE==
29--EXPECT--
30quinta-feira, 17 de Maio de 2012 5:35:36 da tarde ptlis
31==DONE==
32