1--TEST--
2IntlCalendar::getTime() basic test
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);
12ini_set("intl.default_locale", "nl");
13
14$intlcal = IntlCalendar::createInstance('UTC');
15$intlcal->clear();
16$intlcal->set(IntlCalendar::FIELD_YEAR, 2012);
17$intlcal->set(IntlCalendar::FIELD_MONTH, 1 /* Feb */);
18$intlcal->set(IntlCalendar::FIELD_DAY_OF_MONTH, 29);
19
20$time = strtotime('2012-02-29 00:00:00 +0000');
21
22var_dump((float)$time*1000, $intlcal->getTime());
23
24?>
25==DONE==
26--EXPECT--
27float(1330473600000)
28float(1330473600000)
29==DONE==
29