Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 216.73.216.84
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
3 /
symfony /
translation /
Tests /
Loader /
Delete
Unzip
Name
Size
Permission
Date
Action
CsvFileLoaderTest.php
1.94
KB
-rw-r--r--
2018-11-27 09:00
IcuDatFileLoaderTest.php
2.35
KB
-rw-r--r--
2018-11-27 09:00
IcuResFileLoaderTest.php
1.56
KB
-rw-r--r--
2018-11-27 09:00
IniFileLoaderTest.php
1.64
KB
-rw-r--r--
2018-11-27 09:00
JsonFileLoaderTest.php
2.05
KB
-rw-r--r--
2018-11-27 09:00
LocalizedTestCase.php
542
B
-rw-r--r--
2018-11-27 09:00
MoFileLoaderTest.php
2.4
KB
-rw-r--r--
2018-11-27 09:00
PhpFileLoaderTest.php
1.53
KB
-rw-r--r--
2018-11-27 09:00
PoFileLoaderTest.php
3.9
KB
-rw-r--r--
2018-11-27 09:00
QtFileLoaderTest.php
2.45
KB
-rw-r--r--
2018-11-27 09:00
XliffFileLoaderTest.php
10.22
KB
-rw-r--r--
2018-11-27 09:00
YamlFileLoaderTest.php
2.29
KB
-rw-r--r--
2018-11-27 09:00
Save
Rename
<?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\Translation\Tests\Loader; use Symfony\Component\Config\Resource\FileResource; use Symfony\Component\Translation\Loader\IcuDatFileLoader; /** * @requires extension intl */ class IcuDatFileLoaderTest extends LocalizedTestCase { /** * @expectedException \Symfony\Component\Translation\Exception\InvalidResourceException */ public function testLoadInvalidResource() { $loader = new IcuDatFileLoader(); $loader->load(__DIR__.'/../fixtures/resourcebundle/corrupted/resources', 'es', 'domain2'); } public function testDatEnglishLoad() { // bundled resource is build using pkgdata command which at least in ICU 4.2 comes in extremely! buggy form // you must specify an temporary build directory which is not the same as current directory and // MUST reside on the same partition. pkgdata -p resources -T /srv -d.packagelist.txt $loader = new IcuDatFileLoader(); $resource = __DIR__.'/../fixtures/resourcebundle/dat/resources'; $catalogue = $loader->load($resource, 'en', 'domain1'); $this->assertEquals(array('symfony' => 'Symfony 2 is great'), $catalogue->all('domain1')); $this->assertEquals('en', $catalogue->getLocale()); $this->assertEquals(array(new FileResource($resource.'.dat')), $catalogue->getResources()); } public function testDatFrenchLoad() { $loader = new IcuDatFileLoader(); $resource = __DIR__.'/../fixtures/resourcebundle/dat/resources'; $catalogue = $loader->load($resource, 'fr', 'domain1'); $this->assertEquals(array('symfony' => 'Symfony 2 est génial'), $catalogue->all('domain1')); $this->assertEquals('fr', $catalogue->getLocale()); $this->assertEquals(array(new FileResource($resource.'.dat')), $catalogue->getResources()); } /** * @expectedException \Symfony\Component\Translation\Exception\NotFoundResourceException */ public function testLoadNonExistingResource() { $loader = new IcuDatFileLoader(); $loader->load(__DIR__.'/../fixtures/non-existing.txt', 'en', 'domain1'); } }