public function IniFileLoaderTest::testLoad in Plug 7
File
- lib/
Symfony/ translation/ Tests/ Loader/ IniFileLoaderTest.php, line 19
Class
Namespace
Symfony\Component\Translation\Tests\LoaderCode
public function testLoad() {
$loader = new IniFileLoader();
$resource = __DIR__ . '/../fixtures/resources.ini';
$catalogue = $loader
->load($resource, 'en', 'domain1');
$this
->assertEquals(array(
'foo' => 'bar',
), $catalogue
->all('domain1'));
$this
->assertEquals('en', $catalogue
->getLocale());
$this
->assertEquals(array(
new FileResource($resource),
), $catalogue
->getResources());
}