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

var_dump(IntlTimeZone::createEnumeration(array()));
var_dump(IntlTimeZone::createEnumeration(1, 2));


--EXPECTF--

Warning: IntlTimeZone::createEnumeration(): intltz_create_enumeration: invalid argument type in %s on line %d
bool(false)

Warning: IntlTimeZone::createEnumeration() expects at most 1 parameter, 2 given in %s on line %d

Warning: IntlTimeZone::createEnumeration(): intltz_create_enumeration: bad arguments in %s on line %d
bool(false)