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.211
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 PHPUnit\Framework\TestCase; use Symfony\Component\Config\Resource\FileResource; use Symfony\Component\Translation\Loader\QtFileLoader; class QtFileLoaderTest extends TestCase { public function testLoad() { $loader = new QtFileLoader(); $resource = __DIR__.'/../fixtures/resources.ts'; $catalogue = $loader->load($resource, 'en', 'resources'); $this->assertEquals(array('foo' => 'bar'), $catalogue->all('resources')); $this->assertEquals('en', $catalogue->getLocale()); $this->assertEquals(array(new FileResource($resource)), $catalogue->getResources()); } /** * @expectedException \Symfony\Component\Translation\Exception\NotFoundResourceException */ public function testLoadNonExistingResource() { $loader = new QtFileLoader(); $resource = __DIR__.'/../fixtures/non-existing.ts'; $loader->load($resource, 'en', 'domain1'); } /** * @expectedException \Symfony\Component\Translation\Exception\InvalidResourceException */ public function testLoadNonLocalResource() { $loader = new QtFileLoader(); $resource = 'http://domain1.com/resources.ts'; $loader->load($resource, 'en', 'domain1'); } /** * @expectedException \Symfony\Component\Translation\Exception\InvalidResourceException */ public function testLoadInvalidResource() { $loader = new QtFileLoader(); $resource = __DIR__.'/../fixtures/invalid-xml-resources.xlf'; $loader->load($resource, 'en', 'domain1'); } public function testLoadEmptyResource() { $loader = new QtFileLoader(); $resource = __DIR__.'/../fixtures/empty.xlf'; if (method_exists($this, 'expectException')) { $this->expectException('Symfony\Component\Translation\Exception\InvalidResourceException'); $this->expectExceptionMessage(sprintf('Unable to load "%s".', $resource)); } else { $this->setExpectedException('Symfony\Component\Translation\Exception\InvalidResourceException', sprintf('Unable to load "%s".', $resource)); } $loader->load($resource, 'en', 'domain1'); } }