php-src/ext/intl/tests/timezone_useDaylightTime_basic.phpt
2012-04-01 23:28:00 +01:00

25 lines
514 B
PHP

--TEST--
IntlTimeZone::useDaylightTime: basic test
--SKIPIF--
<?php
if (!extension_loaded('intl'))
die('skip intl extension not enabled');
--FILE--
<?php
ini_set("intl.error_level", E_WARNING);
$lsb = IntlTimeZone::createTimeZone('Europe/Lisbon');
$gmt = IntlTimeZone::getGMT();
var_dump($lsb->useDaylightTime());
var_dump($gmt->useDaylightTime());
var_dump(intltz_use_daylight_time($lsb));
var_dump(intltz_use_daylight_time($gmt));
?>
==DONE==
--EXPECT--
bool(true)
bool(false)
bool(true)
bool(false)
==DONE==