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