public function XliffFileLoaderTest::testLoadWithResname in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/translation/Tests/Loader/XliffFileLoaderTest.php \Symfony\Component\Translation\Tests\Loader\XliffFileLoaderTest::testLoadWithResname()
File
- vendor/
symfony/ translation/ Tests/ Loader/ XliffFileLoaderTest.php, line 46
Class
Namespace
Symfony\Component\Translation\Tests\LoaderCode
public function testLoadWithResname() {
$loader = new XliffFileLoader();
$catalogue = $loader
->load(__DIR__ . '/../fixtures/resname.xlf', 'en', 'domain1');
$this
->assertEquals(array(
'foo' => 'bar',
'bar' => 'baz',
'baz' => 'foo',
), $catalogue
->all('domain1'));
}