1--TEST--
2IntlTimeZone::useDaylightTime(): errors
3--SKIPIF--
4<?php
5if (!extension_loaded('intl'))
6	die('skip intl extension not enabled');
7--FILE--
8<?php
9ini_set("intl.error_level", E_WARNING);
10
11$tz = IntlTimeZone::createTimeZone('Europe/Lisbon');
12var_dump($tz->useDaylightTime('foo'));
13intltz_use_daylight_time(null);
14
15--EXPECTF--
16
17Warning: IntlTimeZone::useDaylightTime() expects exactly 0 parameters, 1 given in %s on line %d
18
19Warning: IntlTimeZone::useDaylightTime(): intltz_use_daylight_time: bad arguments in %s on line %d
20bool(false)
21
22Fatal error: Uncaught TypeError: Argument 1 passed to intltz_use_daylight_time() must be an instance of IntlTimeZone, null given in %s:%d
23Stack trace:
24#0 %s(%d): intltz_use_daylight_time(NULL)
25#1 {main}
26  thrown in %s on line %d
27