Property | Type | Description | |
---|---|---|---|
$delimiter | string | ||
$enclosure | string | ||
$escape | string | ||
$tables | array |
Method | Description | |
---|---|---|
__construct ( string $delimiter = ',', string $enclosure = '"', string $escape = '"' ) | Creates a new CSV dataset | |
addTable ( string $tableName, string $csvFile ) | Adds a table to the dataset |
Method | Description | |
---|---|---|
createIterator ( boolean $reverse = FALSE ) : PHPUnit_Extensions_Database_DataSet_ITableIterator | Creates an iterator over the tables in the data set. If $reverse is true a reverse iterator will be returned. | |
getCsvRow ( resource $fh ) : array | Returns a row from the csv file in an indexed array. |
protected createIterator ( boolean $reverse = FALSE ) : PHPUnit_Extensions_Database_DataSet_ITableIterator | ||
$reverse | boolean | |
return | PHPUnit_Extensions_Database_DataSet_ITableIterator |