Test Failure Report for ext/intl/tests/msgfmt_format_intlcalendar.phpt ('MessageFormat accepts IntlCalendar args')
Script
1:
<?php 2: ini_set("intl.error_level", E_WARNING); 3: //ini_set("intl.default_locale", "nl"); 4: ini_set('date.timezone', 'Europe/Lisbon'); 5: 6: $cal = new IntlGregorianCalendar(2012,04,17,17,35,36); 7: 8: $msgf = new MessageFormatter('pt_PT', '{0,date,full} {0,time,h:m:s a V}'); 9: echo $msgf->format(array($cal)), "\n"; 10: 11: //NOT FIXED: 12: /*$msgf = new MessageFormatter('en_US', 13: '{1, select, date {{0,date,full}} other {{0,time,h:m:s a V}}}'); 14: 15: echo "msgf2: ", $msgf->format(array($time, 'date')), " ", 16: $msgf->format(array($time, 'time')), "\n"; 17: */ 18: 19: ?> 20: ==DONE== 21:
Expected
Quinta-feira, 17 de Maio de 2012 5:35:36 p.m. WEST
==DONE==
Output
quinta-feira, 17 de Maio de 2012 5:35:36 Depois do meio-dia WEST
==DONE==
Diff
001+ quinta-feira, 17 de Maio de 2012 5:35:36 Depois do meio-dia WEST
001- Quinta-feira, 17 de Maio de 2012 5:35:36 p.m. WEST
Generated at Wed, 15 May 2013 22:03:26 +0000 (3 days ago)
|