Пример #1
0
 /**
  * @covers adamblake\parse\Parse::csv
  * @covers adamblake\parse\Parse::parse
  * @covers adamblake\parse\Parse::getParser
  */
 public function testCanParseCsvWithNoHeader()
 {
     $data = [['id', 'name', 'sentence'], ['0', 'Adam', 'has, a comma'], ['1', 'Brad', '"is quoted"']];
     $test = Parse::csv($this->files . '/v.csv', false, false, ',');
     $this->assertEquals($data, $test);
 }