public function TranslatorTest::testTransNonExistentWithFallback in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/translation/Tests/TranslatorTest.php \Symfony\Component\Translation\Tests\TranslatorTest::testTransNonExistentWithFallback()
File
- vendor/
symfony/ translation/ Tests/ TranslatorTest.php, line 257
Class
Namespace
Symfony\Component\Translation\TestsCode
public function testTransNonExistentWithFallback() {
$translator = new Translator('fr');
$translator
->setFallbackLocales(array(
'en',
));
$translator
->addLoader('array', new ArrayLoader());
$this
->assertEquals('non-existent', $translator
->trans('non-existent'));
}