1--TEST--
2IntlCalendar::getMaximum(), ::getActualMaximum(), ::getLeastMaximum() basic test
3--INI--
4date.timezone=Atlantic/Azores
5--EXTENSIONS--
6intl
7--FILE--
8<?php
9ini_set("intl.error_level", E_WARNING);
10ini_set("intl.default_locale", "nl");
11
12$intlcal = IntlCalendar::createInstance('UTC');
13$intlcal->setTime(strtotime('2012-02-29 05:06:07 +0000') * 1000);
14var_dump(
15        $intlcal->getLeastMaximum(IntlCalendar::FIELD_DAY_OF_MONTH),
16        intlcal_get_least_maximum($intlcal, IntlCalendar::FIELD_DAY_OF_MONTH),
17        $intlcal->getActualMaximum(IntlCalendar::FIELD_DAY_OF_MONTH),
18        intlcal_get_actual_maximum($intlcal, IntlCalendar::FIELD_DAY_OF_MONTH),
19        $intlcal->getMaximum(IntlCalendar::FIELD_DAY_OF_MONTH),
20        intlcal_get_maximum($intlcal, IntlCalendar::FIELD_DAY_OF_MONTH)
21);
22
23?>
24--EXPECT--
25int(28)
26int(28)
27int(29)
28int(29)
29int(31)
30int(31)
30