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