timezone_getRawOffset_basic.phpt 430 B

123456789101112131415161718192021
  1. --TEST--
  2. IntlTimeZone::getRawOffset(): 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. $ams = IntlTimeZone::createTimeZone('Europe/Amsterdam');
  11. var_dump($ams->getRawOffset());
  12. $lsb = IntlTimeZone::createTimeZone('Europe/Lisbon');
  13. var_dump(intltz_get_raw_offset($lsb));
  14. ?>
  15. ==DONE==
  16. --EXPECT--
  17. int(3600000)
  18. int(0)
  19. ==DONE==