Property | Type | Description | |
---|---|---|---|
$databaseConnection | PHPUnit_Extensions_Database_DB_IDatabaseConnection | The database connection this dataset is using. | |
$tables | array | An array of ITable objects. |
Method | Description | |
---|---|---|
__construct ( PHPUnit_Extensions_Database_DB_IDatabaseConnection $databaseConnection ) | Creates a new dataset using the given database connection. | |
addTable ( $tableName, $query = NULL ) | ||
getTable ( string $tableName ) : PHPUnit_Extensions_Database_DB_Table | Returns a table object for the given table. | |
getTableNames ( ) : Array | Returns a list of table names for the database |
Method | Description | |
---|---|---|
createIterator ( boolean $reverse = FALSE ) : PHPUnit_Extensions_Database_DB_TableIterator | Creates an iterator over the tables in the data set. If $reverse is true a reverse iterator will be returned. |
public __construct ( PHPUnit_Extensions_Database_DB_IDatabaseConnection $databaseConnection ) | ||
$databaseConnection | PHPUnit_Extensions_Database_DB_IDatabaseConnection |
protected createIterator ( boolean $reverse = FALSE ) : PHPUnit_Extensions_Database_DB_TableIterator | ||
$reverse | boolean | |
return | PHPUnit_Extensions_Database_DB_TableIterator |
public getTableNames ( ) : Array | ||
return | Array |
protected PHPUnit_Extensions_Database_DB_IDatabaseConnection $databaseConnection | ||
return | PHPUnit_Extensions_Database_DB_IDatabaseConnection |