1
0
mirror of https://github.com/php/php-src.git synced 2026-04-22 07:28:09 +02:00
Files
archived-php-src/ext/intl/tests/dateformat_invalid_timezone.phpt
T

20 lines
419 B
PHP

--TEST--
IntlDateFormat constructor failure
--INI--
date.timezone=Mars/Utopia_Planitia
--EXTENSIONS--
intl
--FILE--
<?php
try {
new \IntlDateFormatter('en_US', \IntlDateFormatter::FULL, \IntlDateFormatter::FULL);
echo "Wat?";
} catch (\IntlException $e) {
echo $e->getMessage();
}
?>
--EXPECTF--
Warning: PHP Startup: Invalid date.timezone value 'Mars/Utopia_Planitia', using 'UTC' instead in %s on line %d
Wat?