1--TEST-- 2timezone_identifiers_list: ValueError when timezoneGroup is DateTimeZone::PER_COUNTRY 3--CREDITS-- 4Havard Eide <nucleuz@gmail.com> 5#PHPTestFest2009 Norway 2009-06-09 \o/ 6--INI-- 7date.timezone=UTC 8--FILE-- 9<?php 10try { 11 var_dump(timezone_identifiers_list(DateTimeZone::PER_COUNTRY)); 12} catch (\ValueError $e) { 13 echo $e->getMessage() . \PHP_EOL; 14} 15try { 16 var_dump(timezone_identifiers_list(DateTimeZone::PER_COUNTRY, 'A')); 17} catch (\ValueError $e) { 18 echo $e->getMessage() . \PHP_EOL; 19} 20 21?> 22--EXPECT-- 23timezone_identifiers_list(): Argument #2 ($countryCode) must be a two-letter ISO 3166-1 compatible country code when argument #1 ($timezoneGroup) is DateTimeZone::PER_COUNTRY 24timezone_identifiers_list(): Argument #2 ($countryCode) must be a two-letter ISO 3166-1 compatible country code when argument #1 ($timezoneGroup) is DateTimeZone::PER_COUNTRY 25