public function testItShouldCreateCsvStrategy() { $options = ['delimiter' => ';']; $expected = new CsvStrategy(); $expected->setOptions($options); $this->assertEquals($expected, $this->sut->createCsvStrategy($options)); }
/** * Creates a new instance of CsvStrategy. * * @param array $options * @return CsvStrategy */ public function createCsvStrategy(array $options) { $strategy = new CsvStrategy(); $strategy->setOptions($options); return $strategy; }