PHPUnit_Extensions_Database_DataSet_CsvDataSet::getCsvRow PHP Method

getCsvRow() protected method

Returns a row from the csv file in an indexed array.
protected getCsvRow ( resource $fh ) : array
$fh resource
return array
    protected function getCsvRow($fh)
    {
        if (version_compare(PHP_VERSION, '5.3.0', '>')) {
            return fgetcsv($fh, NULL, $this->delimiter, $this->enclosure, $this->escape);
        } else {
            return fgetcsv($fh, NULL, $this->delimiter, $this->enclosure);
        }
    }
PHPUnit_Extensions_Database_DataSet_CsvDataSet