summaryrefslogtreecommitdiff
path: root/ext/intl/tests/timezone_useDaylightTime_error.phpt
blob: 6f702848a94eee51c088edb7b2f5b3d169c1a904 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--TEST--
IntlTimeZone::useDaylightTime(): errors
--SKIPIF--
<?php
if (!extension_loaded('intl'))
	die('skip intl extension not enabled');
--FILE--
<?php
ini_set("intl.error_level", E_WARNING);

intltz_use_daylight_time(null);
?>
--EXPECTF--
Fatal error: Uncaught TypeError: intltz_use_daylight_time(): Argument #1 ($tz) must be of type IntlTimeZone, null given in %s:%d
Stack trace:
#0 %s(%d): intltz_use_daylight_time(NULL)
#1 {main}
  thrown in %s on line %d