Annotation of embedaddon/php/ext/intl/tests/resourcebundle_internal.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Test ResourceBundle::__construct() with internal ICU bundles
        !             3: --SKIPIF--
        !             4: <?php if( !extension_loaded( 'intl' ) || !defined('INTL_ICU_DATA_VERSION') || version_compare(INTL_ICU_DATA_VERSION, '4.4', '<') ) print 'skip'; ?>
        !             5: --FILE--
        !             6: <?php
        !             7: $b = new ResourceBundle('de_DE', 'ICUDATA-region');
        !             8: var_dump($b->get('Countries')->get('DE'));
        !             9: 
        !            10: $b = new ResourceBundle('icuver', 'ICUDATA');
        !            11: var_dump($b->get('ICUVersion') !== NULL);
        !            12: 
        !            13: $b = new ResourceBundle('supplementalData', 'ICUDATA', false);
        !            14: var_dump($b->get('cldrVersion') !== NULL);
        !            15: ?>
        !            16: --EXPECTF--
        !            17: string(11) "Deutschland"
        !            18: bool(true)
        !            19: bool(true)

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>