Update LocaleTest.php

This commit is contained in:
Mike Meier 2013-07-05 00:03:47 +02:00 committed by Fabien Potencier
parent afd79eae83
commit 572126be07

View File

@ -35,10 +35,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()
@ -50,7 +62,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()
@ -62,6 +74,6 @@ class LocaleTest extends \PHPUnit_Framework_TestCase
public function testGetLocales()
{
$locales = Locale::getLocales();
$this->assertTrue(in_array('pt', $locales));
$this->assertContains('pt', $locales);
}
}