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