1--TEST--
2IntlCalendar::get/getActualMaximum/getActualMinimum(): bad arguments
3--INI--
4date.timezone=Atlantic/Azores
5--SKIPIF--
6<?php
7if (!extension_loaded('intl'))
8	die('skip intl extension not enabled');
9--FILE--
10<?php
11ini_set("intl.error_level", E_WARNING);
12
13$c = new IntlGregorianCalendar(NULL, 'pt_PT');
14
15var_dump($c->get());
16var_dump($c->getActualMaximum());
17var_dump($c->getActualMinimum());
18
19var_dump($c->get(-1));
20var_dump($c->getActualMaximum(-1));
21var_dump($c->getActualMinimum(-1));
22
23var_dump($c->get("s"));
24var_dump($c->getActualMaximum("s"));
25var_dump($c->getActualMinimum("s"));
26
27var_dump($c->get(1, 2));
28var_dump($c->getActualMaximum(1, 2));
29var_dump($c->getActualMinimum(1, 2));
30--EXPECTF--
31
32Warning: IntlCalendar::get() expects exactly 1 parameter, 0 given in %s on line %d
33
34Warning: IntlCalendar::get(): intlcal_get: bad arguments in %s on line %d
35bool(false)
36
37Warning: IntlCalendar::getActualMaximum() expects exactly 1 parameter, 0 given in %s on line %d
38
39Warning: IntlCalendar::getActualMaximum(): intlcal_get_actual_maximum: bad arguments in %s on line %d
40bool(false)
41
42Warning: IntlCalendar::getActualMinimum() expects exactly 1 parameter, 0 given in %s on line %d
43
44Warning: IntlCalendar::getActualMinimum(): intlcal_get_actual_minimum: bad arguments in %s on line %d
45bool(false)
46
47Warning: IntlCalendar::get(): intlcal_get: invalid field in %s on line %d
48bool(false)
49
50Warning: IntlCalendar::getActualMaximum(): intlcal_get_actual_maximum: invalid field in %s on line %d
51bool(false)
52
53Warning: IntlCalendar::getActualMinimum(): intlcal_get_actual_minimum: invalid field in %s on line %d
54bool(false)
55
56Warning: IntlCalendar::get() expects parameter 1 to be integer, string given in %s on line %d
57
58Warning: IntlCalendar::get(): intlcal_get: bad arguments in %s on line %d
59bool(false)
60
61Warning: IntlCalendar::getActualMaximum() expects parameter 1 to be integer, string given in %s on line %d
62
63Warning: IntlCalendar::getActualMaximum(): intlcal_get_actual_maximum: bad arguments in %s on line %d
64bool(false)
65
66Warning: IntlCalendar::getActualMinimum() expects parameter 1 to be integer, string given in %s on line %d
67
68Warning: IntlCalendar::getActualMinimum(): intlcal_get_actual_minimum: bad arguments in %s on line %d
69bool(false)
70
71Warning: IntlCalendar::get() expects exactly 1 parameter, 2 given in %s on line %d
72
73Warning: IntlCalendar::get(): intlcal_get: bad arguments in %s on line %d
74bool(false)
75
76Warning: IntlCalendar::getActualMaximum() expects exactly 1 parameter, 2 given in %s on line %d
77
78Warning: IntlCalendar::getActualMaximum(): intlcal_get_actual_maximum: bad arguments in %s on line %d
79bool(false)
80
81Warning: IntlCalendar::getActualMinimum() expects exactly 1 parameter, 2 given in %s on line %d
82
83Warning: IntlCalendar::getActualMinimum(): intlcal_get_actual_minimum: bad arguments in %s on line %d
84bool(false)
85