summaryrefslogtreecommitdiff
path: root/ext/intl/tests/timezone_getGMT_error.phpt
blob: ca478a10d132b3d96df03c83a1c08769d252cb78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--TEST--
IntlTimeZone::getGMT(): 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::getGMT(4));
--EXPECTF--
Warning: IntlTimeZone::getGMT() expects exactly 0 parameters, 1 given in %s on line %d

Warning: IntlTimeZone::getGMT(): intltz_get_gmt: bad arguments in %s on line %d
NULL