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