mirror of
https://github.com/php/php-src.git
synced 2026-04-28 18:53:33 +02:00
c5401854fc
This should fix most of the remaining issues with tabs and spaces being mixed in tests.
27 lines
557 B
PHP
27 lines
557 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));
|
|
?>
|
|
--EXPECT--
|
|
bool(true)
|
|
bool(true)
|
|
bool(false)
|
|
bool(false)
|
|
bool(false)
|