mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
7485978339
This is an automated migration of most SKIPIF extension_loaded checks.
20 lines
484 B
PHP
20 lines
484 B
PHP
--TEST--
|
|
IntlBreakIterator::getPartsIterator(): bad args
|
|
--EXTENSIONS--
|
|
intl
|
|
--FILE--
|
|
<?php
|
|
ini_set("intl.default_locale", "pt_PT");
|
|
|
|
$it = IntlBreakIterator::createWordInstance(NULL);
|
|
|
|
try {
|
|
var_dump($it->getPartsIterator(-1));
|
|
} catch(\ValueError $e) {
|
|
echo $e->getMessage() . \PHP_EOL;
|
|
}
|
|
|
|
?>
|
|
--EXPECT--
|
|
IntlBreakIterator::getPartsIterator(): Argument #1 ($type) must be one of IntlPartsIterator::KEY_SEQUENTIAL, IntlPartsIterator::KEY_LEFT, or IntlPartsIterator::KEY_RIGHT
|