REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 1.65 KB
Close
/proc/thread-self/root/opt/alt/php55/usr/share/pear/test/Locale/Symfony/Component/Locale/Tests/LocaleTest.php
Text
Base64
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Locale\Tests; use Symfony\Component\Intl\Intl; use Symfony\Component\Intl\Util\IntlTestHelper; use Symfony\Component\Locale\Locale; /** * Test case for the {@link Locale} class. * * @author Bernhard Schussek <bschussek@gmail.com> */ class LocaleTest extends \PHPUnit_Framework_TestCase { protected function setUp() { // Locale extends \Locale, so intl must be present IntlTestHelper::requireIntl($this); } public function testGetDisplayCountries() { $countries = Locale::getDisplayCountries('en'); $this->assertEquals('Brazil', $countries['BR']); } public function testGetCountries() { $countries = Locale::getCountries(); $this->assertTrue(in_array('BR', $countries)); } public function testGetDisplayLanguages() { $languages = Locale::getDisplayLanguages('en'); $this->assertEquals('Brazilian Portuguese', $languages['pt_BR']); } public function testGetLanguages() { $languages = Locale::getLanguages(); $this->assertTrue(in_array('pt_BR', $languages)); } public function testGetDisplayLocales() { $locales = Locale::getDisplayLocales('en'); $this->assertEquals('Portuguese', $locales['pt']); } public function testGetLocales() { $locales = Locale::getLocales(); $this->assertTrue(in_array('pt', $locales)); } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 1 × Files: 1
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
Stub
DIR
-
drwxr-xr-x
2024-03-03 22:54:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
LocaleTest.php
1.65 KB
lrw-r--r--
2019-12-18 11:24:06
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).