diff --git a/src/Symfony/Component/Locale/Tests/LocaleTest.php b/src/Symfony/Component/Locale/Tests/LocaleTest.php index d11c826c48220..44cbfcf406c0d 100644 --- a/src/Symfony/Component/Locale/Tests/LocaleTest.php +++ b/src/Symfony/Component/Locale/Tests/LocaleTest.php @@ -35,10 +35,22 @@ public function testGetDisplayCountries() $this->assertEquals('Brazil', $countries['BR']); } + public function testGetDisplayCountriesForSwitzerland() + { + $countries = Locale::getDisplayCountries('de_CH'); + $this->assertEquals('Schweiz', $countries['CH']); + } + public function testGetCountries() { $countries = Locale::getCountries(); - $this->assertTrue(in_array('BR', $countries)); + $this->assertContains('BR', $countries); + } + + public function testGetCountriesForSwitzerland() + { + $countries = Locale::getCountries(); + $this->assertContains('CH', $countries); } public function testGetDisplayLanguages() @@ -50,7 +62,7 @@ public function testGetDisplayLanguages() public function testGetLanguages() { $languages = Locale::getLanguages(); - $this->assertTrue(in_array('pt_BR', $languages)); + $this->assertContains('pt_BR', $languages); } public function testGetDisplayLocales() @@ -62,6 +74,6 @@ public function testGetDisplayLocales() public function testGetLocales() { $locales = Locale::getLocales(); - $this->assertTrue(in_array('pt', $locales)); + $this->assertContains('pt', $locales); } } pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy