mirror of
https://github.com/php/php-src.git
synced 2024-10-02 15:26:06 +00:00
d32ac3efc8
Added date.timezone=Atlantic/Azores to all tests that were failing because of ext/date warning about a timezone not having been set.
43 lines
1.6 KiB
PHP
43 lines
1.6 KiB
PHP
--TEST--
|
|
IntlGregorianCalendar::setGregorianChange(): bad arguments
|
|
--INI--
|
|
date.timezone=Atlantic/Azores
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded('intl'))
|
|
die('skip intl extension not enabled');
|
|
--FILE--
|
|
<?php
|
|
ini_set("intl.error_level", E_WARNING);
|
|
|
|
$c = new IntlGregorianCalendar();
|
|
var_dump($c->setGregorianChange());
|
|
var_dump($c->setGregorianChange(1, 2));
|
|
var_dump($c->setGregorianChange("sdfds"));
|
|
|
|
var_dump(intlgregcal_set_gregorian_change($c));
|
|
var_dump(intlgregcal_set_gregorian_change(1, 4.));
|
|
--EXPECTF--
|
|
|
|
Warning: IntlGregorianCalendar::setGregorianChange() expects exactly 1 parameter, 0 given in %s on line %d
|
|
|
|
Warning: IntlGregorianCalendar::setGregorianChange(): intlgregcal_set_gregorian_change: bad arguments in %s on line %d
|
|
bool(false)
|
|
|
|
Warning: IntlGregorianCalendar::setGregorianChange() expects exactly 1 parameter, 2 given in %s on line %d
|
|
|
|
Warning: IntlGregorianCalendar::setGregorianChange(): intlgregcal_set_gregorian_change: bad arguments in %s on line %d
|
|
bool(false)
|
|
|
|
Warning: IntlGregorianCalendar::setGregorianChange() expects parameter 1 to be double, string given in %s on line %d
|
|
|
|
Warning: IntlGregorianCalendar::setGregorianChange(): intlgregcal_set_gregorian_change: bad arguments in %s on line %d
|
|
bool(false)
|
|
|
|
Warning: intlgregcal_set_gregorian_change() expects exactly 2 parameters, 1 given in %s on line %d
|
|
|
|
Warning: intlgregcal_set_gregorian_change(): intlgregcal_set_gregorian_change: bad arguments in %s on line %d
|
|
bool(false)
|
|
|
|
Catchable fatal error: Argument 1 passed to intlgregcal_set_gregorian_change() must be an instance of IntlGregorianCalendar, integer given in %s on line %d
|