dateformat_setTimeZoneID_deprecation.phpt 613 B

12345678910111213141516171819202122
  1. --TEST--
  2. IntlDateFormatter: setTimeZoneID() deprecation
  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. ini_set("intl.default_locale", "pt_PT");
  11. ini_set("date.timezone", 'Atlantic/Azores');
  12. $df = new IntlDateFormatter('pt_PT', 0, 0, 'Europe/Minsk');
  13. $df->setTimeZoneId('Europe/Madrid');
  14. ?>
  15. ==DONE==
  16. --EXPECTF--
  17. Deprecated: IntlDateFormatter::setTimeZoneId(): Use datefmt_set_timezone() instead, which also accepts a plain time zone identifier and for which this function is now an alias in %s on line %d
  18. ==DONE==