1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 17:22:15 +01:00
Files
archived-php-src/ext/intl/tests/timezone_getGMT_basic.phpt
Gustavo André dos Santos Lopes 5e65205a8f Initial checkin of calendar/timezone code.
2012-04-01 23:28:00 +01:00

31 lines
508 B
PHP

--TEST--
IntlTimeZone::getGMT(): 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::getGMT();
print_r($tz);
$tz = intltz_get_gmt();
print_r($tz);
?>
==DONE==
--EXPECT--
IntlTimeZone Object
(
[valid] => 1
[id] => GMT
[rawOffset] => 0
[currentOffset] => 0
)
IntlTimeZone Object
(
[valid] => 1
[id] => GMT
[rawOffset] => 0
[currentOffset] => 0
)
==DONE==