public function testWritingPhrases()
 {
     $baseDir = 'WritingPhrases';
     $filesOptions = ['file1', 'file2'];
     $optionResolver = $this->getMock('Magento\\Setup\\Module\\I18n\\Dictionary\\Options\\Resolver', [], [], '', false);
     $optionResolver->expects($this->once())->method('getOptions')->will($this->returnValue($filesOptions));
     $this->optionsResolverFactory->expects($this->once())->method('create')->with($this->equalTo($baseDir), $this->equalTo(false))->will($this->returnValue($optionResolver));
     $phrases = [$this->getMock('Magento\\Setup\\Module\\I18n\\Dictionary\\Phrase', [], [], '', false), $this->getMock('Magento\\Setup\\Module\\I18n\\Dictionary\\Phrase', [], [], '', false)];
     $this->parserMock->expects($this->once())->method('getPhrases')->will($this->returnValue($phrases));
     $this->writerMock->expects($this->at(0))->method('write')->with($phrases[0]);
     $this->writerMock->expects($this->at(1))->method('write')->with($phrases[1]);
     $this->generator->generate($baseDir, 'file.csv');
 }