Property | Type | Description | |
---|---|---|---|
$databaseTester | PHPUnit_Extensions_Database_ITester |
Method | Description | |
---|---|---|
assertDataSetsEqual ( PHPUnit_Extensions_Database_DataSet_IDataSet $expected, PHPUnit_Extensions_Database_DataSet_IDataSet $actual, string $message = '' ) | Asserts that two given datasets are equal. | |
assertTablesEqual ( PHPUnit_Extensions_Database_DataSet_ITable $expected, PHPUnit_Extensions_Database_DataSet_ITable $actual, string $message = '' ) | Asserts that two given tables are equal. |
Method | Description | |
---|---|---|
closeConnection ( PHPUnit_Extensions_Database_DB_IDatabaseConnection $connection ) | Closes the specified connection. | |
createDefaultDBConnection ( PDO $connection, string $schema = '' ) : PHPUnit_Extensions_Database_DB_DefaultDatabaseConnection | Creates a new DefaultDatabaseConnection using the given PDO connection and database schema name. | |
createFlatXMLDataSet ( string $xmlFile ) : PHPUnit_Extensions_Database_DataSet_FlatXmlDataSet | Creates a new FlatXmlDataSet with the given $xmlFile. (absolute path.) | |
createMySQLXMLDataSet ( string $xmlFile ) : PHPUnit_Extensions_Database_DataSet_MysqlXmlDataSet | Create a a new MysqlXmlDataSet with the given $xmlFile. (absolute path.) | |
createXMLDataSet ( string $xmlFile ) : PHPUnit_Extensions_Database_DataSet_XmlDataSet | Creates a new XMLDataSet with the given $xmlFile. (absolute path.) | |
getConnection ( ) : PHPUnit_Extensions_Database_DB_IDatabaseConnection | Returns the test database connection. | |
getDataSet ( ) : PHPUnit_Extensions_Database_DataSet_IDataSet | Returns the test dataset. | |
getDatabaseTester ( ) : PHPUnit_Extensions_Database_ITester | Gets the IDatabaseTester for this testCase. If the IDatabaseTester is not set yet, this method calls newDatabaseTester() to obtain a new instance. | |
getOperations ( ) : PHPUnit_Extensions_Database_Operation_Factory | Returns an operation factory instance that can be used to instantiate new operations. | |
getSetUpOperation ( ) : PHPUnit_Extensions_Database_Operation_DatabaseOperation | Returns the database operation executed in test setup. | |
getTearDownOperation ( ) : PHPUnit_Extensions_Database_Operation_DatabaseOperation | Returns the database operation executed in test cleanup. | |
newDatabaseTester ( ) : PHPUnit_Extensions_Database_ITester | Creates a IDatabaseTester for this testCase. | |
setUp ( ) | Performs operation returned by getSetUpOperation(). | |
tearDown ( ) | Performs operation returned by getSetUpOperation(). |
public static assertDataSetsEqual ( PHPUnit_Extensions_Database_DataSet_IDataSet $expected, PHPUnit_Extensions_Database_DataSet_IDataSet $actual, string $message = '' ) | ||
$expected | PHPUnit_Extensions_Database_DataSet_IDataSet | |
$actual | PHPUnit_Extensions_Database_DataSet_IDataSet | |
$message | string |
public static assertTablesEqual ( PHPUnit_Extensions_Database_DataSet_ITable $expected, PHPUnit_Extensions_Database_DataSet_ITable $actual, string $message = '' ) | ||
$expected | PHPUnit_Extensions_Database_DataSet_ITable | |
$actual | PHPUnit_Extensions_Database_DataSet_ITable | |
$message | string |
protected closeConnection ( PHPUnit_Extensions_Database_DB_IDatabaseConnection $connection ) | ||
$connection | PHPUnit_Extensions_Database_DB_IDatabaseConnection |
protected createDefaultDBConnection ( PDO $connection, string $schema = '' ) : PHPUnit_Extensions_Database_DB_DefaultDatabaseConnection | ||
$connection | PDO | |
$schema | string | |
return | PHPUnit_Extensions_Database_DB_DefaultDatabaseConnection |
protected createFlatXMLDataSet ( string $xmlFile ) : PHPUnit_Extensions_Database_DataSet_FlatXmlDataSet | ||
$xmlFile | string | |
return | PHPUnit_Extensions_Database_DataSet_FlatXmlDataSet |
protected createMySQLXMLDataSet ( string $xmlFile ) : PHPUnit_Extensions_Database_DataSet_MysqlXmlDataSet | ||
$xmlFile | string | |
return | PHPUnit_Extensions_Database_DataSet_MysqlXmlDataSet |
protected createXMLDataSet ( string $xmlFile ) : PHPUnit_Extensions_Database_DataSet_XmlDataSet | ||
$xmlFile | string | |
return | PHPUnit_Extensions_Database_DataSet_XmlDataSet |
abstract protected getConnection ( ) : PHPUnit_Extensions_Database_DB_IDatabaseConnection | ||
return | PHPUnit_Extensions_Database_DB_IDatabaseConnection |
abstract protected getDataSet ( ) : PHPUnit_Extensions_Database_DataSet_IDataSet | ||
return | PHPUnit_Extensions_Database_DataSet_IDataSet |
protected getDatabaseTester ( ) : PHPUnit_Extensions_Database_ITester | ||
return | PHPUnit_Extensions_Database_ITester |
protected getOperations ( ) : PHPUnit_Extensions_Database_Operation_Factory | ||
return | PHPUnit_Extensions_Database_Operation_Factory |
protected getSetUpOperation ( ) : PHPUnit_Extensions_Database_Operation_DatabaseOperation | ||
return | PHPUnit_Extensions_Database_Operation_DatabaseOperation |
protected getTearDownOperation ( ) : PHPUnit_Extensions_Database_Operation_DatabaseOperation | ||
return | PHPUnit_Extensions_Database_Operation_DatabaseOperation |
protected newDatabaseTester ( ) : PHPUnit_Extensions_Database_ITester | ||
return | PHPUnit_Extensions_Database_ITester |
protected tearDown ( ) |