mirror of
https://github.com/php/php-src.git
synced 2026-04-27 01:48:26 +02:00
7485978339
This is an automated migration of most SKIPIF extension_loaded checks.
21 lines
385 B
PHP
21 lines
385 B
PHP
--TEST--
|
|
IntlBreakIterator::following(): basic test
|
|
--EXTENSIONS--
|
|
intl
|
|
--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->following(5));
|
|
var_dump($bi->following(50));
|
|
var_dump($bi->following(-1));
|
|
?>
|
|
--EXPECT--
|
|
int(7)
|
|
int(-1)
|
|
int(0)
|