mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00

This is effectively removing ZPP tests, enabling warnings, and moving INI settings into the INI PHPT block
25 lines
594 B
PHP
25 lines
594 B
PHP
--TEST--
|
|
IntlCalendar::setMinimalDaysInFirstWeek(): bad arguments
|
|
--EXTENSIONS--
|
|
intl
|
|
--FILE--
|
|
<?php
|
|
|
|
$c = new IntlGregorianCalendar(NULL, 'pt_PT');
|
|
|
|
try {
|
|
var_dump($c->setMinimalDaysInFirstWeek(0));
|
|
} catch (\ValueError $e) {
|
|
echo $e->getMessage() . \PHP_EOL;
|
|
}
|
|
|
|
try {
|
|
var_dump(intlcal_set_minimal_days_in_first_week($c, 0));
|
|
} catch (\ValueError $e) {
|
|
echo $e->getMessage() . \PHP_EOL;
|
|
}
|
|
|
|
?>
|
|
--EXPECT--
|
|
IntlCalendar::setMinimalDaysInFirstWeek(): Argument #1 ($days) must be between 1 and 7
|
|
intlcal_set_minimal_days_in_first_week(): Argument #2 ($days) must be between 1 and 7
|