protected function TranslatorCacheTest::getCatalogue in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/translation/Tests/TranslatorCacheTest.php \Symfony\Component\Translation\Tests\TranslatorCacheTest::getCatalogue()
1 call to TranslatorCacheTest::getCatalogue()
- TranslatorCacheTest::testRefreshCacheWhenResourcesAreNoLongerFresh in vendor/
symfony/ translation/ Tests/ TranslatorCacheTest.php
File
- vendor/
symfony/ translation/ Tests/ TranslatorCacheTest.php, line 252
Class
Namespace
Symfony\Component\Translation\TestsCode
protected function getCatalogue($locale, $messages, $resources = array()) {
$catalogue = new MessageCatalogue($locale);
foreach ($messages as $key => $translation) {
$catalogue
->set($key, $translation);
}
foreach ($resources as $resource) {
$catalogue
->addResource($resource);
}
return $catalogue;
}