use Symfony\Component\Translation\Writer\TranslationWriter;
class TranslationWriterTest extends TestCase
{ public function testWrite() { $dumper =
$this->
createMock(DumperInterface::
class);
$dumper ->
expects($this->
once()) ->
method('dump'
);
$writer =
new TranslationWriter();
$writer->
addDumper('test',
$dumper);
$writer->
write(new MessageCatalogue('en'
), 'test'
);
}}