public function IcuDatFileLoaderTest::testDatFrenchLoad in Plug 7
File
- lib/
Symfony/ translation/ Tests/ Loader/ IcuDatFileLoaderTest.php, line 49
Class
Namespace
Symfony\Component\Translation\Tests\LoaderCode
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());
}