1--TEST--
2IntlBreakIterator::getLocale(): basic test
3--SKIPIF--
4<?php if (!extension_loaded('intl')) die('skip intl extension not enabled'); ?>
5<?php if (version_compare(INTL_ICU_VERSION, '53.1') < 0) die('skip for ICU >= 53.1'); ?>
6<?php if (version_compare(INTL_ICU_VERSION, '64.0') >= 0) die('skip for ICU < 64.0'); ?>
7--FILE--
8<?php
9ini_set("intl.error_level", E_WARNING);
10ini_set("intl.default_locale", "pt_PT");
11
12$bi = IntlBreakIterator::createSentenceInstance('pt');
13
14var_dump($bi->getLocale(0));
15var_dump($bi->getLocale(1));
16?>
17==DONE==
18--EXPECT--
19string(4) "root"
20string(2) "pt"
21==DONE==
22