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--FILE--
7<?php
8ini_set("intl.error_level", E_WARNING);
9ini_set("intl.default_locale", "pt_PT");
10
11$bi = IntlBreakIterator::createSentenceInstance('pt');
12
13var_dump($bi->getLocale(0));
14var_dump($bi->getLocale(1));
15?>
16--EXPECT--
17string(4) "root"
18string(4) "root"
19