mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00

This is effectively removing ZPP tests, enabling warnings, and moving INI settings into the INI PHPT block
22 lines
417 B
PHP
22 lines
417 B
PHP
--TEST--
|
|
IntlBreakIterator::preceding(): basic test, ICU <= 57.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));
|
|
?>
|
|
--EXPECT--
|
|
int(4)
|
|
int(21)
|
|
int(0)
|