1
0
mirror of https://github.com/php/php-src.git synced 2026-04-18 13:31:27 +02:00
Files
archived-php-src/ext/intl/tests/calendar_getTime_basic.phpt
Fabien Villepinte a555cc0b3d Clean DONE tags from tests
Remove most of the `===DONE===` tags and its variations.
Keep `===DONE===` if the test output otherwise becomes empty.

Closes GH-4872.
2019-11-07 21:31:47 +01:00

27 lines
644 B
PHP

--TEST--
IntlCalendar::getTime() basic test
--INI--
date.timezone=Atlantic/Azores
--SKIPIF--
<?php
if (!extension_loaded('intl'))
die('skip intl extension not enabled');
--FILE--
<?php
ini_set("intl.error_level", E_WARNING);
ini_set("intl.default_locale", "nl");
$intlcal = IntlCalendar::createInstance('UTC');
$intlcal->clear();
$intlcal->set(IntlCalendar::FIELD_YEAR, 2012);
$intlcal->set(IntlCalendar::FIELD_MONTH, 1 /* Feb */);
$intlcal->set(IntlCalendar::FIELD_DAY_OF_MONTH, 29);
$time = strtotime('2012-02-29 00:00:00 +0000');
var_dump((float)$time*1000, $intlcal->getTime());
?>
--EXPECT--
float(1330473600000)
float(1330473600000)