mirror of
https://github.com/php/php-src.git
synced 2024-10-02 07:16:11 +00:00
0a7ae87e91
Objects of this class can be instantiated with IntlBreakIterator::createCodePointInstance() The method does not take a locale, as it would not make sense in this context. This class has one additional method: long IntlCodePointIterator::getLastCodePoint() which returns either -1 or the last code point we moved over, if any (and discounting any movement before the last call to IntlBreakIterator::first() or IntlBreakIterator::last()).
19 lines
530 B
PHP
19 lines
530 B
PHP
--TEST--
|
|
IntlBreakIterator::createCodePointInstance(): bad arguments
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded('intl'))
|
|
die('skip intl extension not enabled');
|
|
--FILE--
|
|
<?php
|
|
ini_set("intl.error_level", E_WARNING);
|
|
|
|
var_dump(IntlBreakIterator::createCodePointInstance(array()));
|
|
--EXPECTF--
|
|
|
|
Warning: IntlBreakIterator::createCodePointInstance() expects exactly 0 parameters, 1 given in %s on line %d
|
|
|
|
Warning: IntlBreakIterator::createCodePointInstance(): breakiter_create_code_point_instance: bad arguments in %s on line %d
|
|
NULL
|
|
|