timezone_getDSTSavings_basic.phpt 383 B

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