php-src/ext/intl/tests/timezone_createDefault_basic.phpt
Anatoliy Belsky 36fadde72c Fixed ext/intl/tests/timezone_createDefault_basic.phpt
Timezone offsets can be negative
2012-11-15 14:31:55 +01:00

32 lines
533 B
PHP

--TEST--
IntlTimeZone::createDefault(): basic test
--SKIPIF--
<?php
if (!extension_loaded('intl'))
die('skip intl extension not enabled');
--FILE--
<?php
ini_set("intl.error_level", E_WARNING);
$tz = IntlTimeZone::createDefault();
print_r($tz);
$tz = intltz_create_default();
print_r($tz);
?>
==DONE==
--EXPECTF--
IntlTimeZone Object
(
[valid] => 1
[id] => %s
[rawOffset] => %i
[currentOffset] => %i
)
IntlTimeZone Object
(
[valid] => 1
[id] => %s
[rawOffset] => %i
[currentOffset] => %i
)
==DONE==