1
0
mirror of https://github.com/php/php-src.git synced 2026-04-27 10:16:41 +02:00
Files
archived-php-src/ext/intl/tests/calendar_createInstance_error.phpt
Gina Peter Banyard c42e6d62d8 ext/intl: modernize tests (#19392)
This is effectively removing ZPP tests, enabling warnings, and moving INI settings into the INI PHPT block
2025-08-06 23:33:48 +01:00

20 lines
338 B
PHP

--TEST--
IntlCalendar::createInstance: bad arguments
--EXTENSIONS--
intl
--FILE--
<?php
class X extends IntlTimeZone {
function __construct() {}
}
try {
intlcal_create_instance(new X, NULL);
} catch (IntlException $e) {
echo $e->getMessage();
}
?>
--EXPECT--
intlcal_create_instance(): passed IntlTimeZone is not properly constructed