private function DataCollectorTranslatorTest::createCollector in Plug 7
1 call to DataCollectorTranslatorTest::createCollector()
- DataCollectorTranslatorTest::testCollectMessages in lib/
Symfony/ translation/ Tests/ DataCollectorTranslatorTest.php
File
- lib/
Symfony/ translation/ Tests/ DataCollectorTranslatorTest.php, line 69
Class
Namespace
Symfony\Component\Translation\TestsCode
private function createCollector() {
$translator = new Translator('en');
$translator
->addLoader('array', new ArrayLoader());
$translator
->addResource('array', array(
'foo' => 'foo (en)',
), 'en');
$translator
->addResource('array', array(
'bar' => 'bar (fr)',
), 'fr');
$translator
->addResource('array', array(
'bar_ru' => 'bar (ru)',
), 'ru');
$collector = new DataCollectorTranslator($translator);
return $collector;
}