minor #8423 Update LocaleTest.php (mikemeier)

This PR was squashed before being merged into the 2.5-dev branch (closes #8423).

Discussion
----------

Update LocaleTest.php

de_CH locales does not fallback to de
see https://github.com/symfony/symfony/issues/5314

Commits
-------

572126b Update LocaleTest.php
This commit is contained in:
Fabien Potencier 2013-12-27 17:00:18 +01:00
commit a4d423e4cd

View File

@ -34,10 +34,22 @@ class LocaleTest extends \PHPUnit_Framework_TestCase
$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()
@ -49,7 +61,7 @@ class LocaleTest extends \PHPUnit_Framework_TestCase
public function testGetLanguages()
{
$languages = Locale::getLanguages();
$this->assertTrue(in_array('pt_BR', $languages));
$this->assertContains('pt_BR', $languages);
}
public function testGetDisplayLocales()
@ -61,6 +73,6 @@ class LocaleTest extends \PHPUnit_Framework_TestCase
public function testGetLocales()
{
$locales = Locale::getLocales();
$this->assertTrue(in_array('pt', $locales));
$this->assertContains('pt', $locales);
}
}