/**
  * @dataProvider providerRowCountData
  */
 public function testRowCount($file, $count, $hasHeader)
 {
     // create the test file
     $sample_file = $GLOBALS['sugar_config']['upload_dir'] . '/' . $file;
     copy('tests/modules/Import/' . $file, $sample_file);
     $this->unlink[] = $sample_file;
     $importFile = new ImportFile($sample_file, ",", '', false, false);
     $this->assertTrue($importFile->fileExists());
     $importFile->setHeaderRow($hasHeader);
     $c = $importFile->getTotalRecordCount();
     $this->assertEquals($count, $c, 'incorrect row count.');
 }