Annotation of embedaddon/php/ext/intl/tests/resourcebundle_null_mandatory_args_variant2.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: ResourceBundle constructor bundle accepts NULL for first two arguments
3: --INI--
4: date.timezone=Atlantic/Azores
5: --SKIPIF--
6: <?php
7: if (!extension_loaded('intl')) die('skip intl extension not enabled'); ?>
8: <?php if (version_compare(INTL_ICU_VERSION, '51.2') < 0) die('skip for ICU >= 51.2'); ?>
9: --FILE--
10: <?php
11: ini_set("intl.error_level", E_WARNING);
12:
13: $r = new ResourceBundle('en_US', NULL);
14: $c = $r->get('calendar')->get('gregorian')->get('DateTimePatterns')->get(0);
15: var_dump($c);
16:
17: ini_set('intl.default_locale', 'pt_PT');
18: $r = new ResourceBundle(NULL, NULL);
19: $c = $r->get('calendar')->get('gregorian')->get('DateTimePatterns')->get(0);
20: var_dump($c);
21: ?>
22: ==DONE==
23: --EXPECT--
24: string(14) "h:mm:ss a zzzz"
25: string(13) "HH:mm:ss zzzz"
26: ==DONE==
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>