8000 Update LocaleTest.php · symfony/symfony@572126b · GitHub
[go: up one dir, main page]

Skip to content

Commit 572126b

Browse files
mikemeierfabpot
authored andcommitted
Update LocaleTest.php
1 parent afd79ea commit 572126b

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

src/Symfony/Component/Locale/Tests/LocaleTest.php

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,22 @@ public function testGetDisplayCountries()
3535
$this->assertEquals('Brazil', $countries['BR']);
3636
}
3737

38+
public function testGetDisplayCountriesForSwitzerland()
39+
{
40+
$countries = Locale::getDisplayCountries('de_CH');
41+
$this->assertEquals('Schweiz', $countries['CH']);
42+
}
43+
3844
public function testGetCountries()
3945
{
4046
$countries = Locale::getCountries();
41-
$this->assertTrue(in_array('BR', $countries));
47+
$this->assertContains('BR', $countries);
48+
}
49+
50+
public function testGetCountriesForSwitzerland()
51+
{
52+
$countries = Locale::getCountries();
53+
$this->assertContains('CH', $countries);
4254
}
4355

4456
public function testGetDisplayLanguages()
@@ -50,7 +62,7 @@ public function testGetDisplayLanguages()
5062
public function testGetLanguages()
5163
{
5264
$languages = Locale::getLanguages();
53-
$this->assertTrue(in_array('pt_BR', $languages));
65+
$this->assertContains('pt_BR', $languages);
5466
}
5567

5668
public function testGetDisplayLocales()
@@ -62,6 +74,6 @@ public function testGetDisplayLocales()
6274
public function testGetLocales()
6375
{
6476
$locales = Locale::getLocales();
65-
$this->assertTrue(in_array('pt', $locales));
77+
$this->assertContains('pt', $locales);
6678
}
6779
}

0 commit comments

Comments
 (0)
0