コード例 #1
0
 public function testCountDoesNotMoveFilePointer()
 {
     $file = new \SplFileObject(__DIR__ . '/../Fixtures/data_column_headers.csv');
     $csvReader = new CsvReader($file);
     $csvReader->setHeaderRowNumber(0);
     $key_before_count = $csvReader->key();
     $csvReader->count();
     $key_after_count = $csvReader->key();
     $this->assertEquals($key_after_count, $key_before_count);
 }