You are here

public function XliffFileLoaderTest::testIncompleteResource 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::testIncompleteResource()

File

vendor/symfony/translation/Tests/Loader/XliffFileLoaderTest.php, line 54

Class

XliffFileLoaderTest

Namespace

Symfony\Component\Translation\Tests\Loader

Code

public function testIncompleteResource() {
  $loader = new XliffFileLoader();
  $catalogue = $loader
    ->load(__DIR__ . '/../fixtures/resources.xlf', 'en', 'domain1');
  $this
    ->assertEquals(array(
    'foo' => 'bar',
    'extra' => 'extra',
    'key' => '',
    'test' => 'with',
  ), $catalogue
    ->all('domain1'));
}