public function TranslatorTest::testFlattenedTrans in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/translation/Tests/TranslatorTest.php \Symfony\Component\Translation\Tests\TranslatorTest::testFlattenedTrans()
@dataProvider getFlattenedTransTests
File
- vendor/
symfony/ translation/ Tests/ TranslatorTest.php, line 317
Class
Namespace
Symfony\Component\Translation\TestsCode
public function testFlattenedTrans($expected, $messages, $id) {
$translator = new Translator('en');
$translator
->addLoader('array', new ArrayLoader());
$translator
->addResource('array', $messages, 'fr', '');
$this
->assertEquals($expected, $translator
->trans($id, array(), '', 'fr'));
}