コード例 #1
0
ファイル: CsvFetcherTest.php プロジェクト: DiegoPino/mik
 public function testGetNumRecs()
 {
     $settings = array('FETCHER' => array('input_file' => dirname(__FILE__) . '/assets/csv/sample_metadata.csv', 'temp_directory' => $this->path_to_temp_dir, 'record_key' => 'ID'), 'LOGGING' => array('path_to_log' => $this->path_to_log));
     $csv = new Csv($settings);
     $num_records = $csv->getNumRecs();
     $this->assertEquals(20, $num_records);
 }