011.phpt 381 B

12345678910111213141516171819
  1. --TEST--
  2. timezone_name_from_abbr() tests
  3. --FILE--
  4. <?php
  5. date_default_timezone_set('UTC');
  6. var_dump(timezone_name_from_abbr("CET"));
  7. var_dump(timezone_name_from_abbr("AXST"));
  8. var_dump(timezone_name_from_abbr("", 3600));
  9. var_dump(timezone_name_from_abbr("", 3600, 0));
  10. echo "Done\n";
  11. ?>
  12. --EXPECT--
  13. string(13) "Europe/Berlin"
  14. bool(false)
  15. bool(false)
  16. string(12) "Europe/Paris"
  17. Done