PHP Class PHPUnit_Extensions_Database_DataSet_DefaultDataSet, qcodo

Author: Mike Lively ([email protected])
Inheritance: extends PHPUnit_Extensions_Database_DataSet_AbstractDataSet
Show file Open project: qcodo/qcodo Class Usage Examples

Protected Properties

Property Type Description
$tables array An array of ITable objects.

Public Methods

Method Description
__construct ( array $tables = [] ) Creates a new dataset using the given tables.
addTable ( PHPUnit_Extensions_Database_DataSet_ITable $table ) Adds a table to the dataset.

Protected Methods

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.

Method Details

__construct() public method

Creates a new dataset using the given tables.
public __construct ( array $tables = [] )
$tables array

addTable() public method

Adds a table to the dataset.
public addTable ( PHPUnit_Extensions_Database_DataSet_ITable $table )
$table PHPUnit_Extensions_Database_DataSet_ITable

createIterator() protected method

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
return PHPUnit_Extensions_Database_DataSet_ITableIterator

Property Details

$tables protected property

An array of ITable objects.
protected array $tables
return array