symfony/symfony — Issue #3139: [Locale][Testing] LocaleTest->testGetDisplayCountriesReturnsFullListForSubLocale() fails if 'intl' extension is not installed
Author: ManuelKiessling
Created: 2012-01-17 17:32:25+00:00
State: open

`Symfony\Tests\Component\Locale\LocaleTest->testGetDisplayCountriesReturnsFullListForSubLocale()` fails with a fatal error if the PHP extension 'intl' is not installed on the system.

PHP Fatal error: Class 'ResourceBundle' not found in /opt/symfony/src/Symfony/Component/Locale/Locale.php on line 46
PHP Stack trace:
PHP 1. {main}() /usr/bin/phpunit:0
PHP 2. PHPUnit_TextUI_Command::main() /usr/bin/phpunit:46
PHP 3. PHPUnit_TextUI_Command->run() /usr/share/php/PHPUnit/TextUI/Command.php:125
PHP 4. PHPUnit_TextUI_TestRunner->doRun() /usr/share/php/PHPUnit/TextUI/Command.php:187
PHP 5. PHPUnit_Framework_TestSuite->run() /usr/share/php/PHPUnit/TextUI/TestRunner.php:325
PHP 6. PHPUnit_Framework_TestSuite->run() /usr/share/php/PHPUnit/Framework/TestSuite.php:705
PHP 7. PHPUnit_Framework_TestSuite->runTest() /usr/share/php/PHPUnit/Framework/TestSuite.php:745
PHP 8. PHPUnit_Framework_TestCase->run() /usr/share/php/PHPUnit/Framework/TestSuite.php:772
PHP 9. PHPUnit_Framework_TestResult->run() /usr/share/php/PHPUnit/Framework/TestCase.php:749
PHP 10. PHPUnit_Framework_TestCase->runBare() /usr/share/php/PHPUnit/Framework/TestResult.php:649
PHP 11. PHPUnit_Framework_TestCase->runTest() /usr/share/php/PHPUnit/Framework/TestCase.php:802
PHP 12. ReflectionMethod->invokeArgs() /usr/share/php/PHPUnit/Framework/TestCase.php:940
PHP 13. Symfony\Tests\Component\Locale\LocaleTest->testGetDisplayCountriesReturnsFullListForSubLocale() /opt/symfony/tests/Symfony/Tests/Component/Locale/LocaleTest.php:0
PHP 14. Symfony\Component\Locale\Locale::getDisplayCountries() /opt/symfony/tests/Symfony/Tests/Component/Locale/LocaleTest.php:20