1--TEST--
2IntlBreakIterator::getPartsIterator(): bad args
3--EXTENSIONS--
4intl
5--FILE--
6<?php
7ini_set("intl.default_locale", "pt_PT");
8
9$it = IntlBreakIterator::createWordInstance(NULL);
10
11try {
12    var_dump($it->getPartsIterator(-1));
13} catch(\ValueError $e) {
14    echo $e->getMessage() . \PHP_EOL;
15}
16
17?>
18--EXPECT--
19IntlBreakIterator::getPartsIterator(): Argument #1 ($type) must be one of IntlPartsIterator::KEY_SEQUENTIAL, IntlPartsIterator::KEY_LEFT, or IntlPartsIterator::KEY_RIGHT
20