public function TranslatorTest::testTransWithFallbackLocaleBis in Plug 7
File
- lib/
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'));
}