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