1
0
mirror of https://github.com/php/php-src.git synced 2026-04-27 18:23:26 +02:00
Files
archived-php-src/ext/intl/tests/breakiter_factories_basic.phpt
T
Nikita Popov 7485978339 Migrate SKIPIF -> EXTENSIONS (#7138)
This is an automated migration of most SKIPIF extension_loaded checks.
2021-06-11 11:57:42 +02:00

39 lines
812 B
PHP

--TEST--
IntlBreakIterator factories: basic tests
--EXTENSIONS--
intl
--FILE--
<?php
ini_set("intl.error_level", E_WARNING);
ini_set("intl.default_locale", "ja");
$m = array('createWordInstance', 'createLineInstance', 'createCharacterInstance',
'createSentenceInstance', 'createTitleInstance');
$t = 'Frase 1... Frase 2';
foreach ($m as $method) {
echo "===== $method =====\n";
$o1 = IntlBreakIterator::$method('ja');
$o2 = IntlBreakIterator::$method(NULL);
$o3 = IntlBreakIterator::$method();
var_dump($o1 == $o2 && $o2 == $o3);
echo "\n";
}
?>
--EXPECT--
===== createWordInstance =====
bool(true)
===== createLineInstance =====
bool(true)
===== createCharacterInstance =====
bool(true)
===== createSentenceInstance =====
bool(true)
===== createTitleInstance =====
bool(true)