public function TranslatorTest::testTransWithFallbackLocaleBis in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/translation/Tests/TranslatorTest.php \Symfony\Component\Translation\Tests\TranslatorTest::testTransWithFallbackLocaleBis()
File
- vendor/
symfony/ translation/ Tests/ TranslatorTest.php, line 235
Class
Namespace
Symfony\Component\Translation\TestsCode
public function testTransWithFallbackLocaleBis() {
$translator = new Translator('en_US');
$translator
->addLoader('array', new ArrayLoader());
$translator
->addResource('array', array(
'foo' => 'foofoo',
), 'en_US');
$translator
->addResource('array', array(
'bar' => 'foobar',
), 'en');
$this
->assertEquals('foobar', $translator
->trans('bar'));
}