1--TEST--
2IntlTimeZone::createTimeZone(): 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
11var_dump(IntlTimeZone::createTimeZone());
12var_dump(IntlTimeZone::createTimeZone(new stdClass));
13var_dump(IntlTimeZone::createTimeZone("foo bar", 4));
14var_dump(IntlTimeZone::createTimeZone("foo\x80"));
15--EXPECTF--
16Warning: IntlTimeZone::createTimeZone() expects exactly 1 parameter, 0 given in %s on line %d
17
18Warning: IntlTimeZone::createTimeZone(): intltz_create_time_zone: bad arguments in %s on line %d
19NULL
20
21Warning: IntlTimeZone::createTimeZone() expects parameter 1 to be string, object given in %s on line %d
22
23Warning: IntlTimeZone::createTimeZone(): intltz_create_time_zone: bad arguments in %s on line %d
24NULL
25
26Warning: IntlTimeZone::createTimeZone() expects exactly 1 parameter, 2 given in %s on line %d
27
28Warning: IntlTimeZone::createTimeZone(): intltz_create_time_zone: bad arguments in %s on line %d
29NULL
30
31Warning: IntlTimeZone::createTimeZone(): intltz_create_time_zone: could not convert time zone id to UTF-16 in %s on line %d
32NULL
33