timezone_getGMT_error.phpt 408 B

12345678910111213141516171819
  1. --TEST--
  2. IntlTimeZone::getGMT(): errors
  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. var_dump(IntlTimeZone::getGMT(4));
  11. --EXPECTF--
  12. Warning: IntlTimeZone::getGMT() expects exactly 0 parameters, 1 given in %s on line %d
  13. Warning: IntlTimeZone::getGMT(): intltz_get_gmt: bad arguments in %s on line %d
  14. NULL