public function PoFileLoaderTest::testLoadDoesNothingIfEmpty in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/translation/Tests/Loader/PoFileLoaderTest.php \Symfony\Component\Translation\Tests\Loader\PoFileLoaderTest::testLoadDoesNothingIfEmpty()
File
- vendor/
symfony/ translation/ Tests/ Loader/ PoFileLoaderTest.php, line 41
Class
Namespace
Symfony\Component\Translation\Tests\LoaderCode
public function testLoadDoesNothingIfEmpty() {
$loader = new PoFileLoader();
$resource = __DIR__ . '/../fixtures/empty.po';
$catalogue = $loader
->load($resource, 'en', 'domain1');
$this
->assertEquals(array(), $catalogue
->all('domain1'));
$this
->assertEquals('en', $catalogue
->getLocale());
$this
->assertEquals(array(
new FileResource($resource),
), $catalogue
->getResources());
}