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