public function TranslatorTest::testTransWithoutFallbackLocaleFile in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/translation/Tests/TranslatorTest.php \Symfony\Component\Translation\Tests\TranslatorTest::testTransWithoutFallbackLocaleFile()
@dataProvider getTransFileTests @expectedException \Symfony\Component\Translation\Exception\NotFoundResourceException
File
- vendor/
symfony/ translation/ Tests/ TranslatorTest.php, line 209
Class
Namespace
Symfony\Component\Translation\TestsCode
public function testTransWithoutFallbackLocaleFile($format, $loader) {
$loaderClass = 'Symfony\\Component\\Translation\\Loader\\' . $loader;
$translator = new Translator('en');
$translator
->addLoader($format, new $loaderClass());
$translator
->addResource($format, __DIR__ . '/fixtures/non-existing', 'en');
$translator
->addResource($format, __DIR__ . '/fixtures/resources.' . $format, 'en');
// force catalogue loading
$translator
->trans('foo');
}