You are here

public function QtFileLoaderTest::testLoad in Zircon Profile 8.0

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

QtFileLoaderTest

Namespace

Symfony\Component\Translation\Tests\Loader

Code

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