timezone_getGMT_basic.phpt 508 B

12345678910111213141516171819202122232425262728293031
  1. --TEST--
  2. IntlTimeZone::getGMT(): basic test
  3. --SKIPIF--
  4. <?php
  5. if (!extension_loaded('intl'))
  6. die('skip intl extension not enabled');
  7. --FILE--
  8. <?php
  9. ini_set("intl.error_level", E_WARNING);
  10. $tz = IntlTimeZone::getGMT();
  11. print_r($tz);
  12. $tz = intltz_get_gmt();
  13. print_r($tz);
  14. ?>
  15. ==DONE==
  16. --EXPECT--
  17. IntlTimeZone Object
  18. (
  19. [valid] => 1
  20. [id] => GMT
  21. [rawOffset] => 0
  22. [currentOffset] => 0
  23. )
  24. IntlTimeZone Object
  25. (
  26. [valid] => 1
  27. [id] => GMT
  28. [rawOffset] => 0
  29. [currentOffset] => 0
  30. )
  31. ==DONE==