public function testPullNewXlf12Messages() { $arrayLoader =
new ArrayLoader();
$filenameEn =
$this->
createFile();
$filenameEnIcu =
$this->
createFile(['say_hello' => 'Welcome, {firstname}!'
], 'en', 'messages+intl-icu.%locale%.xlf'
);
$filenameFr =
$this->
createFile(['note' => 'NOTE'
], 'fr'
);
$filenameFrIcu =
$this->
createFile(['say_hello' => 'Bonjour, {firstname}!'
], 'fr', 'messages+intl-icu.%locale%.xlf'
);
$locales =
['en', 'fr'
];
$domains =
['messages', 'messages+intl-icu'
];
$providerReadTranslatorBag =
new TranslatorBag();
$providerReadTranslatorBag->
addCatalogue($arrayLoader->
load([ 'note' => 'NOTE',
'new.foo' => 'newFoo',
], 'en'
));
$providerReadTranslatorBag->
addCatalogue($arrayLoader->
load([ 'say_hello' => 'Welcome, {firstname}!',
], 'en', 'messages+intl-icu'
));
$providerReadTranslatorBag->
addCatalogue($arrayLoader->
load([ 'note' => 'NOTE',
'new.foo' => 'nouveauFoo',
], 'fr'
));
$providerReadTranslatorBag->
addCatalogue($arrayLoader->
load([