public function YamlFileLoaderTest::testLoad in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/translation/Tests/Loader/YamlFileLoaderTest.php \Symfony\Component\Translation\Tests\Loader\YamlFileLoaderTest::testLoad()
File
- vendor/
symfony/ translation/ Tests/ Loader/ YamlFileLoaderTest.php, line 19
Class
Namespace
Symfony\Component\Translation\Tests\LoaderCode
public function testLoad() {
$loader = new YamlFileLoader();
$resource = __DIR__ . '/../fixtures/resources.yml';
$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());
}