|
@@ -11,12 +11,16 @@
|
|
|
|
|
|
namespace Symfony\Tests\Component\Locale;
|
|
namespace Symfony\Tests\Component\Locale;
|
|
|
|
|
|
|
|
+require_once __DIR__.'/TestCase.php';
|
|
|
|
+
|
|
use Symfony\Component\Locale\Locale;
|
|
use Symfony\Component\Locale\Locale;
|
|
|
|
+use Symfony\Tests\Component\Locale\TestCase as LocaleTestCase;
|
|
|
|
|
|
-class LocaleTest extends \PHPUnit_Framework_TestCase
|
|
|
|
|
|
+class LocaleTest extends LocaleTestCase
|
|
{
|
|
{
|
|
public function testGetDisplayCountriesReturnsFullListForSubLocale()
|
|
public function testGetDisplayCountriesReturnsFullListForSubLocale()
|
|
{
|
|
{
|
|
|
|
+ $this->skipIfIntlExtensionIsNotLoaded();
|
|
$countriesDe = Locale::getDisplayCountries('de');
|
|
$countriesDe = Locale::getDisplayCountries('de');
|
|
$countriesDeCh = Locale::getDisplayCountries('de_CH');
|
|
$countriesDeCh = Locale::getDisplayCountries('de_CH');
|
|
|
|
|
|
@@ -27,6 +31,7 @@ class LocaleTest extends \PHPUnit_Framework_TestCase
|
|
|
|
|
|
public function testGetDisplayLanguagesReturnsFullListForSubLocale()
|
|
public function testGetDisplayLanguagesReturnsFullListForSubLocale()
|
|
{
|
|
{
|
|
|
|
+ $this->skipIfIntlExtensionIsNotLoaded();
|
|
$languagesDe = Locale::getDisplayLanguages('de');
|
|
$languagesDe = Locale::getDisplayLanguages('de');
|
|
$languagesDeCh = Locale::getDisplayLanguages('de_CH');
|
|
$languagesDeCh = Locale::getDisplayLanguages('de_CH');
|
|
|
|
|
|
@@ -37,6 +42,7 @@ class LocaleTest extends \PHPUnit_Framework_TestCase
|
|
|
|
|
|
public function testGetDisplayLocalesReturnsFullListForSubLocale()
|
|
public function testGetDisplayLocalesReturnsFullListForSubLocale()
|
|
{
|
|
{
|
|
|
|
+ $this->skipIfIntlExtensionIsNotLoaded();
|
|
$localesDe = Locale::getDisplayLocales('de');
|
|
$localesDe = Locale::getDisplayLocales('de');
|
|
$localesDeCh = Locale::getDisplayLocales('de_CH');
|
|
$localesDeCh = Locale::getDisplayLocales('de_CH');
|
|
|
|
|