mirror of
https://github.com/php/php-src.git
synced 2024-12-01 22:03:36 +08:00
24 lines
482 B
PHP
24 lines
482 B
PHP
--TEST--
|
|
IntlBreakIterator::isBoundary(): basic test
|
|
--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==
|