timezone_getUnknown_basic.phpt 650 B

1234567891011121314151617181920212223242526272829303132333435
  1. --TEST--
  2. IntlCalendar::getUnknown(): basic test
  3. --SKIPIF--
  4. <?php
  5. if (!extension_loaded('intl'))
  6. die('skip intl extension not enabled');
  7. if (version_compare(INTL_ICU_VERSION, '49') < 0)
  8. die('skip for ICU 49+');
  9. --FILE--
  10. <?php
  11. ini_set("intl.error_level", E_WARNING);
  12. ini_set("intl.default_locale", "nl");
  13. $tz = IntlTimeZone::getUnknown();
  14. print_r($tz);
  15. $tz = intltz_get_unknown();
  16. print_r($tz);
  17. ?>
  18. ==DONE==
  19. --EXPECT--
  20. IntlTimeZone Object
  21. (
  22. [valid] => 1
  23. [id] => Etc/Unknown
  24. [rawOffset] => 0
  25. [currentOffset] => 0
  26. )
  27. IntlTimeZone Object
  28. (
  29. [valid] => 1
  30. [id] => Etc/Unknown
  31. [rawOffset] => 0
  32. [currentOffset] => 0
  33. )
  34. ==DONE==