public function IcuDatFileLoaderTest::testDatFrenchLoad in Zircon Profile 8
Same name and namespace in other branches
- 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
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());
}