mirror of
https://github.com/php/php-src.git
synced 2026-03-27 01:32:22 +01:00
Remove most of the `===DONE===` tags and its variations. Keep `===DONE===` if the test output otherwise becomes empty. Closes GH-4872.
20 lines
578 B
PHP
20 lines
578 B
PHP
--TEST--
|
|
IntlBreakIterator::getLocale(): basic test
|
|
--SKIPIF--
|
|
<?php if (!extension_loaded('intl')) die('skip intl extension not enabled'); ?>
|
|
<?php if (version_compare(INTL_ICU_VERSION, '53.1') < 0) die('skip for ICU >= 53.1'); ?>
|
|
<?php if (version_compare(INTL_ICU_VERSION, '64.0') >= 0) die('skip for ICU < 64.0'); ?>
|
|
--FILE--
|
|
<?php
|
|
ini_set("intl.error_level", E_WARNING);
|
|
ini_set("intl.default_locale", "pt_PT");
|
|
|
|
$bi = IntlBreakIterator::createSentenceInstance('pt');
|
|
|
|
var_dump($bi->getLocale(0));
|
|
var_dump($bi->getLocale(1));
|
|
?>
|
|
--EXPECT--
|
|
string(4) "root"
|
|
string(2) "pt"
|