timezone_createTimeZone_basic.phpt 504 B

123456789101112131415161718192021222324252627
  1. --TEST--
  2. IntlTimeZone::createTimeZone(): basic test
  3. --EXTENSIONS--
  4. intl
  5. --FILE--
  6. <?php
  7. ini_set("intl.error_level", E_WARNING);
  8. $tz = IntlTimeZone::createTimeZone('GMT+01:00');
  9. print_r($tz);
  10. $tz = intltz_create_time_zone('GMT+01:00');
  11. print_r($tz);
  12. ?>
  13. --EXPECT--
  14. IntlTimeZone Object
  15. (
  16. [valid] => 1
  17. [id] => GMT+01:00
  18. [rawOffset] => 3600000
  19. [currentOffset] => 3600000
  20. )
  21. IntlTimeZone Object
  22. (
  23. [valid] => 1
  24. [id] => GMT+01:00
  25. [rawOffset] => 3600000
  26. [currentOffset] => 3600000
  27. )