public function QtFileLoaderTest::testLoad in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/translation/Tests/Loader/QtFileLoaderTest.php \Symfony\Component\Translation\Tests\Loader\QtFileLoaderTest::testLoad()
File
- vendor/
symfony/ translation/ Tests/ Loader/ QtFileLoaderTest.php, line 19
Class
Namespace
Symfony\Component\Translation\Tests\LoaderCode
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());
}