PHP Class PHPUnit_Extensions_Database_DataSet_QueryTable, qcodo

Inheritance: extends PHPUnit_Extensions_Database_DataSet_AbstractTable
Afficher le fichier Open project: qcodo/qcodo Class Usage Examples

Protected Properties

Свойство Type Description
$databaseConnection PHPUnit_Extensions_Database_DB_IDatabaseConnection
$query string
$tableName string

Méthodes publiques

Méthode Description
__construct ( $tableName, string $query, PHPUnit_Extensions_Database_DB_IDatabaseConnection $databaseConnection ) Creates a new database query table object.
assertEquals ( PHPUnit_Extensions_Database_DataSet_ITable $other ) Asserts that the given table matches this table.
getRow ( integer $row ) : array Returns the an associative array keyed by columns for the given row.
getRowCount ( ) : integer Returns the number of rows in this table.
getTableMetaData ( ) : PHPUnit_Extensions_Database_DataSet_ITableMetaData Returns the table's meta data.
getValue ( integer $row, integer $column ) Returns the value for the given column on the given row.

Méthodes protégées

Méthode Description
createTableMetaData ( )
loadData ( )

Method Details

__construct() public méthode

Creates a new database query table object.
public __construct ( $tableName, string $query, PHPUnit_Extensions_Database_DB_IDatabaseConnection $databaseConnection )
$query string
$databaseConnection PHPUnit_Extensions_Database_DB_IDatabaseConnection

assertEquals() public méthode

Asserts that the given table matches this table.
public assertEquals ( PHPUnit_Extensions_Database_DataSet_ITable $other )
$other PHPUnit_Extensions_Database_DataSet_ITable

createTableMetaData() protected méthode

protected createTableMetaData ( )

getRow() public méthode

Returns the an associative array keyed by columns for the given row.
public getRow ( integer $row ) : array
$row integer
Résultat array

getRowCount() public méthode

Returns the number of rows in this table.
public getRowCount ( ) : integer
Résultat integer

getTableMetaData() public méthode

Returns the table's meta data.
public getTableMetaData ( ) : PHPUnit_Extensions_Database_DataSet_ITableMetaData
Résultat PHPUnit_Extensions_Database_DataSet_ITableMetaData

getValue() public méthode

Returns the value for the given column on the given row.
public getValue ( integer $row, integer $column )
$row integer
$column integer

loadData() protected méthode

protected loadData ( )

Property Details

$databaseConnection protected_oe property

protected PHPUnit_Extensions_Database_DB_IDatabaseConnection $databaseConnection
Résultat PHPUnit_Extensions_Database_DB_IDatabaseConnection

$query protected_oe property

protected string $query
Résultat string

$tableName protected_oe property

protected string $tableName
Résultat string