You are here

public function IcuDatFileLoaderTest::testDatFrenchLoad in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/translation/Tests/Loader/IcuDatFileLoaderTest.php \Symfony\Component\Translation\Tests\Loader\IcuDatFileLoaderTest::testDatFrenchLoad()

File

vendor/symfony/translation/Tests/Loader/IcuDatFileLoaderTest.php, line 49

Class

IcuDatFileLoaderTest

Namespace

Symfony\Component\Translation\Tests\Loader

Code

public function testDatFrenchLoad() {
  $loader = new IcuDatFileLoader();
  $resource = __DIR__ . '/../fixtures/resourcebundle/dat/resources';
  $catalogue = $loader
    ->load($resource, 'fr', 'domain1');
  $this
    ->assertEquals(array(
    'symfony' => 'Symfony 2 est génial',
  ), $catalogue
    ->all('domain1'));
  $this
    ->assertEquals('fr', $catalogue
    ->getLocale());
  $this
    ->assertEquals(array(
    new FileResource($resource . '.dat'),
  ), $catalogue
    ->getResources());
}