api/symfony/Component/Intl/Tests/TimezonesTest.yaml
2024-09-26 02:03:21 -07:00

227 lines
13 KiB
YAML

name: TimezonesTest
class_comment: '# * @group intl-data'
dependencies:
- name: Countries
type: class
source: Symfony\Component\Intl\Countries
- name: MissingResourceException
type: class
source: Symfony\Component\Intl\Exception\MissingResourceException
- name: Timezones
type: class
source: Symfony\Component\Intl\Timezones
properties: []
methods:
- name: testGetNames
visibility: public
parameters:
- name: displayLocale
comment: "# * @group intl-data\n# */\n# class TimezonesTest extends ResourceBundleTestCase\n\
# {\n# // The below arrays document the state of the ICU data bundled with this\
\ package.\n# \n# private const ZONES = [\n# 'Africa/Abidjan',\n# 'Africa/Accra',\n\
# 'Africa/Addis_Ababa',\n# 'Africa/Algiers',\n# 'Africa/Asmera',\n# 'Africa/Bamako',\n\
# 'Africa/Bangui',\n# 'Africa/Banjul',\n# 'Africa/Bissau',\n# 'Africa/Blantyre',\n\
# 'Africa/Brazzaville',\n# 'Africa/Bujumbura',\n# 'Africa/Cairo',\n# 'Africa/Casablanca',\n\
# 'Africa/Ceuta',\n# 'Africa/Conakry',\n# 'Africa/Dakar',\n# 'Africa/Dar_es_Salaam',\n\
# 'Africa/Djibouti',\n# 'Africa/Douala',\n# 'Africa/El_Aaiun',\n# 'Africa/Freetown',\n\
# 'Africa/Gaborone',\n# 'Africa/Harare',\n# 'Africa/Johannesburg',\n# 'Africa/Juba',\n\
# 'Africa/Kampala',\n# 'Africa/Khartoum',\n# 'Africa/Kigali',\n# 'Africa/Kinshasa',\n\
# 'Africa/Lagos',\n# 'Africa/Libreville',\n# 'Africa/Lome',\n# 'Africa/Luanda',\n\
# 'Africa/Lubumbashi',\n# 'Africa/Lusaka',\n# 'Africa/Malabo',\n# 'Africa/Maputo',\n\
# 'Africa/Maseru',\n# 'Africa/Mbabane',\n# 'Africa/Mogadishu',\n# 'Africa/Monrovia',\n\
# 'Africa/Nairobi',\n# 'Africa/Ndjamena',\n# 'Africa/Niamey',\n# 'Africa/Nouakchott',\n\
# 'Africa/Ouagadougou',\n# 'Africa/Porto-Novo',\n# 'Africa/Sao_Tome',\n# 'Africa/Tripoli',\n\
# 'Africa/Tunis',\n# 'Africa/Windhoek',\n# 'America/Adak',\n# 'America/Anchorage',\n\
# 'America/Anguilla',\n# 'America/Antigua',\n# 'America/Araguaina',\n# 'America/Argentina/La_Rioja',\n\
# 'America/Argentina/Rio_Gallegos',\n# 'America/Argentina/Salta',\n# 'America/Argentina/San_Juan',\n\
# 'America/Argentina/San_Luis',\n# 'America/Argentina/Tucuman',\n# 'America/Argentina/Ushuaia',\n\
# 'America/Aruba',\n# 'America/Asuncion',\n# 'America/Bahia',\n# 'America/Bahia_Banderas',\n\
# 'America/Barbados',\n# 'America/Belem',\n# 'America/Belize',\n# 'America/Blanc-Sablon',\n\
# 'America/Boa_Vista',\n# 'America/Bogota',\n# 'America/Boise',\n# 'America/Buenos_Aires',\n\
# 'America/Cambridge_Bay',\n# 'America/Campo_Grande',\n# 'America/Cancun',\n#\
\ 'America/Caracas',\n# 'America/Catamarca',\n# 'America/Cayenne',\n# 'America/Cayman',\n\
# 'America/Chicago',\n# 'America/Chihuahua',\n# 'America/Ciudad_Juarez',\n# 'America/Coral_Harbour',\n\
# 'America/Cordoba',\n# 'America/Costa_Rica',\n# 'America/Creston',\n# 'America/Cuiaba',\n\
# 'America/Curacao',\n# 'America/Danmarkshavn',\n# 'America/Dawson',\n# 'America/Dawson_Creek',\n\
# 'America/Denver',\n# 'America/Detroit',\n# 'America/Dominica',\n# 'America/Edmonton',\n\
# 'America/Eirunepe',\n# 'America/El_Salvador',\n# 'America/Fort_Nelson',\n# 'America/Fortaleza',\n\
# 'America/Glace_Bay',\n# 'America/Godthab',\n# 'America/Goose_Bay',\n# 'America/Grand_Turk',\n\
# 'America/Grenada',\n# 'America/Guadeloupe',\n# 'America/Guatemala',\n# 'America/Guayaquil',\n\
# 'America/Guyana',\n# 'America/Halifax',\n# 'America/Havana',\n# 'America/Hermosillo',\n\
# 'America/Indiana/Knox',\n# 'America/Indiana/Marengo',\n# 'America/Indiana/Petersburg',\n\
# 'America/Indiana/Tell_City',\n# 'America/Indiana/Vevay',\n# 'America/Indiana/Vincennes',\n\
# 'America/Indiana/Winamac',\n# 'America/Indianapolis',\n# 'America/Inuvik',\n\
# 'America/Iqaluit',\n# 'America/Jamaica',\n# 'America/Jujuy',\n# 'America/Juneau',\n\
# 'America/Kentucky/Monticello',\n# 'America/Kralendijk',\n# 'America/La_Paz',\n\
# 'America/Lima',\n# 'America/Los_Angeles',\n# 'America/Louisville',\n# 'America/Lower_Princes',\n\
# 'America/Maceio',\n# 'America/Managua',\n# 'America/Manaus',\n# 'America/Marigot',\n\
# 'America/Martinique',\n# 'America/Matamoros',\n# 'America/Mazatlan',\n# 'America/Mendoza',\n\
# 'America/Menominee',\n# 'America/Merida',\n# 'America/Metlakatla',\n# 'America/Mexico_City',\n\
# 'America/Miquelon',\n# 'America/Moncton',\n# 'America/Monterrey',\n# 'America/Montevideo',\n\
# 'America/Montserrat',\n# 'America/Nassau',\n# 'America/New_York',\n# 'America/Nome',\n\
# 'America/Noronha',\n# 'America/North_Dakota/Beulah',\n# 'America/North_Dakota/Center',\n\
# 'America/North_Dakota/New_Salem',\n# 'America/Ojinaga',\n# 'America/Panama',\n\
# 'America/Paramaribo',\n# 'America/Phoenix',\n# 'America/Port-au-Prince',\n#\
\ 'America/Port_of_Spain',\n# 'America/Porto_Velho',\n# 'America/Puerto_Rico',\n\
# 'America/Punta_Arenas',\n# 'America/Rankin_Inlet',\n# 'America/Recife',\n# 'America/Regina',\n\
# 'America/Resolute',\n# 'America/Rio_Branco',\n# 'America/Santarem',\n# 'America/Santiago',\n\
# 'America/Santo_Domingo',\n# 'America/Sao_Paulo',\n# 'America/Scoresbysund',\n\
# 'America/Sitka',\n# 'America/St_Barthelemy',\n# 'America/St_Johns',\n# 'America/St_Kitts',\n\
# 'America/St_Lucia',\n# 'America/St_Thomas',\n# 'America/St_Vincent',\n# 'America/Swift_Current',\n\
# 'America/Tegucigalpa',\n# 'America/Thule',\n# 'America/Tijuana',\n# 'America/Toronto',\n\
# 'America/Tortola',\n# 'America/Vancouver',\n# 'America/Whitehorse',\n# 'America/Winnipeg',\n\
# 'America/Yakutat',\n# 'Antarctica/Casey',\n# 'Antarctica/Davis',\n# 'Antarctica/DumontDUrville',\n\
# 'Antarctica/Macquarie',\n# 'Antarctica/Mawson',\n# 'Antarctica/McMurdo',\n#\
\ 'Antarctica/Palmer',\n# 'Antarctica/Rothera',\n# 'Antarctica/Syowa',\n# 'Antarctica/Troll',\n\
# 'Antarctica/Vostok',\n# 'Arctic/Longyearbyen',\n# 'Asia/Aden',\n# 'Asia/Almaty',\n\
# 'Asia/Amman',\n# 'Asia/Anadyr',\n# 'Asia/Aqtau',\n# 'Asia/Aqtobe',\n# 'Asia/Ashgabat',\n\
# 'Asia/Atyrau',\n# 'Asia/Baghdad',\n# 'Asia/Bahrain',\n# 'Asia/Baku',\n# 'Asia/Bangkok',\n\
# 'Asia/Barnaul',\n# 'Asia/Beirut',\n# 'Asia/Bishkek',\n# 'Asia/Brunei',\n# 'Asia/Calcutta',\n\
# 'Asia/Chita',\n# 'Asia/Choibalsan',\n# 'Asia/Colombo',\n# 'Asia/Damascus',\n\
# 'Asia/Dhaka',\n# 'Asia/Dili',\n# 'Asia/Dubai',\n# 'Asia/Dushanbe',\n# 'Asia/Famagusta',\n\
# 'Asia/Gaza',\n# 'Asia/Hebron',\n# 'Asia/Hong_Kong',\n# 'Asia/Hovd',\n# 'Asia/Irkutsk',\n\
# 'Asia/Jakarta',\n# 'Asia/Jayapura',\n# 'Asia/Jerusalem',\n# 'Asia/Kabul',\n\
# 'Asia/Kamchatka',\n# 'Asia/Karachi',\n# 'Asia/Katmandu',\n# 'Asia/Khandyga',\n\
# 'Asia/Krasnoyarsk',\n# 'Asia/Kuala_Lumpur',\n# 'Asia/Kuching',\n# 'Asia/Kuwait',\n\
# 'Asia/Macau',\n# 'Asia/Magadan',\n# 'Asia/Makassar',\n# 'Asia/Manila',\n# 'Asia/Muscat',\n\
# 'Asia/Nicosia',\n# 'Asia/Novokuznetsk',\n# 'Asia/Novosibirsk',\n# 'Asia/Omsk',\n\
# 'Asia/Oral',\n# 'Asia/Phnom_Penh',\n# 'Asia/Pontianak',\n# 'Asia/Pyongyang',\n\
# 'Asia/Qatar',\n# 'Asia/Qostanay',\n# 'Asia/Qyzylorda',\n# 'Asia/Rangoon',\n\
# 'Asia/Riyadh',\n# 'Asia/Saigon',\n# 'Asia/Sakhalin',\n# 'Asia/Samarkand',\n\
# 'Asia/Seoul',\n# 'Asia/Shanghai',\n# 'Asia/Singapore',\n# 'Asia/Srednekolymsk',\n\
# 'Asia/Taipei',\n# 'Asia/Tashkent',\n# 'Asia/Tbilisi',\n# 'Asia/Tehran',\n# 'Asia/Thimphu',\n\
# 'Asia/Tokyo',\n# 'Asia/Tomsk',\n# 'Asia/Ulaanbaatar',\n# 'Asia/Urumqi',\n# 'Asia/Ust-Nera',\n\
# 'Asia/Vientiane',\n# 'Asia/Vladivostok',\n# 'Asia/Yakutsk',\n# 'Asia/Yekaterinburg',\n\
# 'Asia/Yerevan',\n# 'Atlantic/Azores',\n# 'Atlantic/Bermuda',\n# 'Atlantic/Canary',\n\
# 'Atlantic/Cape_Verde',\n# 'Atlantic/Faeroe',\n# 'Atlantic/Madeira',\n# 'Atlantic/Reykjavik',\n\
# 'Atlantic/South_Georgia',\n# 'Atlantic/St_Helena',\n# 'Atlantic/Stanley',\n\
# 'Australia/Adelaide',\n# 'Australia/Brisbane',\n# 'Australia/Broken_Hill',\n\
# 'Australia/Darwin',\n# 'Australia/Eucla',\n# 'Australia/Hobart',\n# 'Australia/Lindeman',\n\
# 'Australia/Lord_Howe',\n# 'Australia/Melbourne',\n# 'Australia/Perth',\n# 'Australia/Sydney',\n\
# 'CST6CDT',\n# 'EST5EDT',\n# 'Etc/GMT',\n# 'Etc/UTC',\n# 'Europe/Amsterdam',\n\
# 'Europe/Andorra',\n# 'Europe/Astrakhan',\n# 'Europe/Athens',\n# 'Europe/Belgrade',\n\
# 'Europe/Berlin',\n# 'Europe/Bratislava',\n# 'Europe/Brussels',\n# 'Europe/Bucharest',\n\
# 'Europe/Budapest',\n# 'Europe/Busingen',\n# 'Europe/Chisinau',\n# 'Europe/Copenhagen',\n\
# 'Europe/Dublin',\n# 'Europe/Gibraltar',\n# 'Europe/Guernsey',\n# 'Europe/Helsinki',\n\
# 'Europe/Isle_of_Man',\n# 'Europe/Istanbul',\n# 'Europe/Jersey',\n# 'Europe/Kaliningrad',\n\
# 'Europe/Kiev',\n# 'Europe/Kirov',\n# 'Europe/Lisbon',\n# 'Europe/Ljubljana',\n\
# 'Europe/London',\n# 'Europe/Luxembourg',\n# 'Europe/Madrid',\n# 'Europe/Malta',\n\
# 'Europe/Mariehamn',\n# 'Europe/Minsk',\n# 'Europe/Monaco',\n# 'Europe/Moscow',\n\
# 'Europe/Oslo',\n# 'Europe/Paris',\n# 'Europe/Podgorica',\n# 'Europe/Prague',\n\
# 'Europe/Riga',\n# 'Europe/Rome',\n# 'Europe/Samara',\n# 'Europe/San_Marino',\n\
# 'Europe/Sarajevo',\n# 'Europe/Saratov',\n# 'Europe/Simferopol',\n# 'Europe/Skopje',\n\
# 'Europe/Sofia',\n# 'Europe/Stockholm',\n# 'Europe/Tallinn',\n# 'Europe/Tirane',\n\
# 'Europe/Ulyanovsk',\n# 'Europe/Vaduz',\n# 'Europe/Vatican',\n# 'Europe/Vienna',\n\
# 'Europe/Vilnius',\n# 'Europe/Volgograd',\n# 'Europe/Warsaw',\n# 'Europe/Zagreb',\n\
# 'Europe/Zurich',\n# 'Indian/Antananarivo',\n# 'Indian/Chagos',\n# 'Indian/Christmas',\n\
# 'Indian/Cocos',\n# 'Indian/Comoro',\n# 'Indian/Kerguelen',\n# 'Indian/Mahe',\n\
# 'Indian/Maldives',\n# 'Indian/Mauritius',\n# 'Indian/Mayotte',\n# 'Indian/Reunion',\n\
# 'MST7MDT',\n# 'PST8PDT',\n# 'Pacific/Apia',\n# 'Pacific/Auckland',\n# 'Pacific/Bougainville',\n\
# 'Pacific/Chatham',\n# 'Pacific/Easter',\n# 'Pacific/Efate',\n# 'Pacific/Enderbury',\n\
# 'Pacific/Fakaofo',\n# 'Pacific/Fiji',\n# 'Pacific/Funafuti',\n# 'Pacific/Galapagos',\n\
# 'Pacific/Gambier',\n# 'Pacific/Guadalcanal',\n# 'Pacific/Guam',\n# 'Pacific/Honolulu',\n\
# 'Pacific/Kiritimati',\n# 'Pacific/Kosrae',\n# 'Pacific/Kwajalein',\n# 'Pacific/Majuro',\n\
# 'Pacific/Marquesas',\n# 'Pacific/Midway',\n# 'Pacific/Nauru',\n# 'Pacific/Niue',\n\
# 'Pacific/Norfolk',\n# 'Pacific/Noumea',\n# 'Pacific/Pago_Pago',\n# 'Pacific/Palau',\n\
# 'Pacific/Pitcairn',\n# 'Pacific/Ponape',\n# 'Pacific/Port_Moresby',\n# 'Pacific/Rarotonga',\n\
# 'Pacific/Saipan',\n# 'Pacific/Tahiti',\n# 'Pacific/Tarawa',\n# 'Pacific/Tongatapu',\n\
# 'Pacific/Truk',\n# 'Pacific/Wake',\n# 'Pacific/Wallis',\n# ];\n# private const\
\ ZONES_NO_COUNTRY = [\n# 'Antarctica/Troll',\n# 'CST6CDT',\n# 'EST5EDT',\n# 'MST7MDT',\n\
# 'PST8PDT',\n# 'Etc/GMT',\n# 'Etc/UTC',\n# ];\n# \n# public function testGetIds()\n\
# {\n# $this->assertEquals(self::ZONES, Timezones::getIds());\n# }\n# \n# /**\n\
# * @dataProvider provideLocales"
- name: testGetNamesDefaultLocale
visibility: public
parameters: []
comment: null
- name: testGetNamesSupportsAliases
visibility: public
parameters:
- name: alias
- name: ofLocale
comment: '# * @dataProvider provideLocaleAliases'
- name: testGetName
visibility: public
parameters:
- name: displayLocale
comment: '# * @dataProvider provideLocales'
- name: testGetNameDefaultLocale
visibility: public
parameters: []
comment: null
- name: testGetNameWithInvalidTimezone
visibility: public
parameters: []
comment: null
- name: testGetNameWithAliasTimezone
visibility: public
parameters: []
comment: null
- name: testExists
visibility: public
parameters: []
comment: null
- name: testGetRawOffset
visibility: public
parameters: []
comment: null
- name: testGetRawOffsetWithUnknownTimezone
visibility: public
parameters: []
comment: null
- name: testGetGmtOffset
visibility: public
parameters: []
comment: null
- name: testGetCountryCode
visibility: public
parameters: []
comment: null
- name: testForCountryCode
visibility: public
parameters: []
comment: null
- name: testForCountryCodeWithUnknownCountry
visibility: public
parameters: []
comment: null
- name: testForCountryCodeWithWrongCountryCode
visibility: public
parameters: []
comment: null
- name: testGetCountryCodeWithUnknownTimezone
visibility: public
parameters: []
comment: null
- name: testGetGmtOffsetAvailability
visibility: public
parameters:
- name: timezone
comment: '# * @dataProvider provideTimezones'
- name: testGetCountryCodeAvailability
visibility: public
parameters:
- name: timezone
comment: '# * @dataProvider provideTimezones'
- name: provideTimezones
visibility: public
parameters: []
comment: null
- name: testForCountryCodeAvailability
visibility: public
parameters:
- name: country
comment: '# * @dataProvider provideCountries'
- name: provideCountries
visibility: public
parameters: []
comment: null
- name: testGetRawOffsetChangeTimeCountry
visibility: public
parameters: []
comment: null
traits:
- Symfony\Component\Intl\Countries
- Symfony\Component\Intl\Exception\MissingResourceException
- Symfony\Component\Intl\Timezones
interfaces: []