mirror of
https://github.com/php/php-src.git
synced 2024-11-29 04:46:07 +08:00
28 lines
571 B
PHP
28 lines
571 B
PHP
--TEST--
|
|
IntlBreakIterator::isBoundary(): basic test
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded('intl'))
|
|
die('skip intl extension not enabled');
|
|
--FILE--
|
|
<?php
|
|
ini_set("intl.error_level", E_WARNING);
|
|
ini_set("intl.default_locale", "pt_PT");
|
|
|
|
$bi = IntlBreakIterator::createWordInstance('pt');
|
|
$bi->setText('foo bar trans zoo bee');
|
|
|
|
var_dump($bi->isBoundary(0));
|
|
var_dump($bi->isBoundary(7));
|
|
var_dump($bi->isBoundary(-1));
|
|
var_dump($bi->isBoundary(1));
|
|
var_dump($bi->isBoundary(50));
|
|
?>
|
|
==DONE==
|
|
--EXPECT--
|
|
bool(true)
|
|
bool(true)
|
|
bool(false)
|
|
bool(false)
|
|
bool(false)
|
|
==DONE==
|