Skip to content

Commit aa3eeb8

Browse files
committed
test
1 parent 6a22d2f commit aa3eeb8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

ext/intl/tests/timezone_createEnumeration_error.phpt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ try {
1010
} catch (Throwable $e) {
1111
echo $e::class, ': ', $e->getMessage(), PHP_EOL;
1212
}
13+
14+
try {
15+
var_dump(IntlTimeZone::createEnumeration(new stdClass()));
16+
} catch (Throwable $e) {
17+
echo $e::class, ': ', $e->getMessage(), PHP_EOL;
18+
}
1319
?>
1420
--EXPECT--
1521
TypeError: IntlTimeZone::createEnumeration(): Argument #1 ($countryOrRawOffset) must be of type string|int|null, array given
22+
TypeError: IntlTimeZone::createEnumeration(): Argument #1 ($countryOrRawOffset) must be of type string|int|null, stdClass given

0 commit comments

Comments
 (0)