1--TEST--
2IntlCalendar::getKeywordValuesForLocale(): bad arguments
3--SKIPIF--
4<?php
5if (!extension_loaded('intl'))
6	die('skip intl extension not enabled');
7if (version_compare(INTL_ICU_VERSION, '4.2') < 0)
8	die('skip for ICU 4.2+');
9--FILE--
10<?php
11ini_set("intl.error_level", E_WARNING);
12
13var_dump(intlcal_get_keyword_values_for_locale(1, 2));
14var_dump(IntlCalendar::getKeywordValuesForLocale(1, 2, array()));
15
16--EXPECTF--
17
18Warning: intlcal_get_keyword_values_for_locale() expects exactly 3 parameters, 2 given in %s on line %d
19
20Warning: intlcal_get_keyword_values_for_locale(): intlcal_get_keyword_values_for_locale: bad arguments in %s on line %d
21bool(false)
22
23Warning: IntlCalendar::getKeywordValuesForLocale() expects parameter 3 to be boolean, array given in %s on line %d
24
25Warning: IntlCalendar::getKeywordValuesForLocale(): intlcal_get_keyword_values_for_locale: bad arguments in %s on line %d
26bool(false)
27