1--TEST--
2IntlCalendar::setTime() 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$time = strtotime('2012-02-29 00:00:00 +0000');
13
14$intlcal = IntlCalendar::createInstance('UTC');
15$intlcal->setTime($time * 1000);
16
17var_dump(
18    (float)$time*1000,
19    $intlcal->getTime());
20
21$intlcal = IntlCalendar::createInstance('UTC');
22intlcal_set_time($intlcal,$time * 1000);
23var_dump(intlcal_get_time($intlcal));
24
25?>
26--EXPECT--
27float(1330473600000)
28float(1330473600000)
29float(1330473600000)
29