You are here

public function IcuDatFileLoaderTest::testDatFrenchLoad in Plug 7

File

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