You are here

public function XliffFileLoaderTest::testLoadWithResname in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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

XliffFileLoaderTest

Namespace

Symfony\Component\Translation\Tests\Loader

Code

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'));
}