PHP Class PHPUnit_Extensions_Database_DataSet_YamlDataSet, qcodo

You can incrementally add CSV files as tables to your datasets
Author: Mike Lively ([email protected])
Inheritance: extends PHPUnit_Extensions_Database_DataSet_AbstractDataSet
Afficher le fichier Open project: qcodo/qcodo Class Usage Examples

Protected Properties

Свойство Type Description
$tables array

Méthodes publiques

Méthode Description
__construct ( string $yamlFile ) Creates a new YAML dataset
addYamlFile ( string $yamlFile ) Adds a new yaml file to the dataset.
write ( PHPUnit_Extensions_Database_DataSet_IDataSet $dataset, string $filename ) Saves a given $dataset to $filename in YAML format

Méthodes protégées

Méthode 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.

Private Methods

Méthode Description
getColumns ( $rows ) Creates a unique list of columns from all the rows in a table.

Method Details

__construct() public méthode

Creates a new YAML dataset
public __construct ( string $yamlFile )
$yamlFile string

addYamlFile() public méthode

Adds a new yaml file to the dataset.
public addYamlFile ( string $yamlFile )
$yamlFile string

createIterator() protected méthode

Creates an iterator over the tables in the data set. If $reverse is true a reverse iterator will be returned.
protected createIterator ( boolean $reverse = FALSE ) : PHPUnit_Extensions_Database_DataSet_ITableIterator
$reverse boolean
Résultat PHPUnit_Extensions_Database_DataSet_ITableIterator

write() public static méthode

Saves a given $dataset to $filename in YAML format
public static write ( PHPUnit_Extensions_Database_DataSet_IDataSet $dataset, string $filename )
$dataset PHPUnit_Extensions_Database_DataSet_IDataSet
$filename string

Property Details

$tables protected_oe property

protected array $tables
Résultat array