mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
27 lines
No EOL
421 B
PHP
27 lines
No EOL
421 B
PHP
--TEST--
|
|
IntlTimeZone::getGMT(): basic test
|
|
--EXTENSIONS--
|
|
intl
|
|
--FILE--
|
|
<?php
|
|
ini_set("intl.error_level", E_WARNING);
|
|
$tz = IntlTimeZone::getGMT();
|
|
print_r($tz);
|
|
$tz = intltz_get_gmt();
|
|
print_r($tz);
|
|
?>
|
|
--EXPECT--
|
|
IntlTimeZone Object
|
|
(
|
|
[valid] => 1
|
|
[id] => GMT
|
|
[rawOffset] => 0
|
|
[currentOffset] => 0
|
|
)
|
|
IntlTimeZone Object
|
|
(
|
|
[valid] => 1
|
|
[id] => GMT
|
|
[rawOffset] => 0
|
|
[currentOffset] => 0
|
|
)
|