mirror of
https://github.com/php/php-src.git
synced 2026-04-28 10:43:30 +02:00
c42e6d62d8
This is effectively removing ZPP tests, enabling warnings, and moving INI settings into the INI PHPT block
23 lines
419 B
PHP
23 lines
419 B
PHP
--TEST--
|
|
IntlBreakIterator::preceding(): basic test, ICU >= 58.1
|
|
--EXTENSIONS--
|
|
intl
|
|
--SKIPIF--
|
|
<?php
|
|
if (version_compare(INTL_ICU_VERSION, '57.1') <= 0) die('skip for ICU > 57.1');
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
|
|
$bi = IntlBreakIterator::createWordInstance('pt');
|
|
$bi->setText('foo bar trans zoo bee');
|
|
|
|
var_dump($bi->preceding(5));
|
|
var_dump($bi->preceding(50));
|
|
var_dump($bi->preceding(-1));
|
|
?>
|
|
--EXPECTF--
|
|
int(4)
|
|
int(21)
|
|
int(%i)
|