--TEST-- IntlTimeZone::hasSameRules(): errors --SKIPIF-- hasSameRules('foo')); } catch (Error $ex) { var_dump($ex->getCode(), $ex->getMessage()); echo "\n"; } try { var_dump(intltz_has_same_rules(null, $tz)); } catch (Error $ex) { var_dump($ex->getCode(), $ex->getMessage()); echo "\n"; } ?> --EXPECT-- int(0) string(93) "IntlTimeZone::hasSameRules(): Argument #1 ($other) must be of type IntlTimeZone, string given" int(0) string(89) "intltz_has_same_rules(): Argument #1 ($timezone) must be of type IntlTimeZone, null given"