PHP Class PHPUnit_Extensions_Database_DataSet_AbstractXmlDataSet, qcodo

Author: Mike Lively ([email protected])
Inheritance: extends PHPUnit_Extensions_Database_DataSet_AbstractDataSet
Exibir arquivo Open project: qcodo/qcodo

Protected Properties

Property Type Description
$tables array
$xmlFileContents SimpleXmlElement

Public Methods

Method Description
__construct ( $xmlFile ) Creates a new dataset using the given tables.

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.
createTables ( array &$tableColumns, array &$tableValues )
getOrCreateTable ( string $tableName, $tableColumns ) : PHPUnit_Extensions_Database_DataSet_ITable Returns the table with the matching name. If the table does not exist an empty one is created.
getTableInfo ( array &$tableColumns, array &$tableValues ) Reads the simple xml object and creates the appropriate tables and meta data for this dataset.

Method Details

__construct() public method

Creates a new dataset using the given tables.
public __construct ( $xmlFile )

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

createTables() protected method

protected createTables ( array &$tableColumns, array &$tableValues )
$tableColumns array
$tableValues array

getOrCreateTable() protected method

Returns the table with the matching name. If the table does not exist an empty one is created.
protected getOrCreateTable ( string $tableName, $tableColumns ) : PHPUnit_Extensions_Database_DataSet_ITable
$tableName string
return PHPUnit_Extensions_Database_DataSet_ITable

getTableInfo() abstract protected method

Reads the simple xml object and creates the appropriate tables and meta data for this dataset.
abstract protected getTableInfo ( array &$tableColumns, array &$tableValues )
$tableColumns array
$tableValues array

Property Details

$tables protected_oe property

protected array $tables
return array

$xmlFileContents protected_oe property

protected SimpleXmlElement $xmlFileContents
return SimpleXmlElement