Exemplo n.º 1
0
 /**
  * @dataProvider \g105b\phpcsv\TestHelper::data_randomFilePath
  * @expectedException \g105b\phpcsv\InvalidFieldException
  */
 public function testGetIdFieldWhenNotSet($filePath)
 {
     $originalRows = TestHelper::createCsv($filePath, 10);
     $csv = new Csv($filePath);
     // We know that the "ID" column is not existant within the CSV data, instead
     // the ID field is "rowNum"; getting the ID field should return null.
     $csv->getIdField();
 }