public function IcuResFileLoaderTest::testLoad in Plug 7
File
- lib/
Symfony/ translation/ Tests/ Loader/ IcuResFileLoaderTest.php, line 26
Class
Namespace
Symfony\Component\Translation\Tests\LoaderCode
public function testLoad() {
// resource is build using genrb command
$loader = new IcuResFileLoader();
$resource = __DIR__ . '/../fixtures/resourcebundle/res';
$catalogue = $loader
->load($resource, 'en', 'domain1');
$this
->assertEquals(array(
'foo' => 'bar',
), $catalogue
->all('domain1'));
$this
->assertEquals('en', $catalogue
->getLocale());
$this
->assertEquals(array(
new DirectoryResource($resource),
), $catalogue
->getResources());
}