Test/PHPUnit/DatabaseTestCase.php
Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled
with this package in the file LICENSE.txt.
It is also available through the world-wide-web at this URL:
http://framework.zend.com/license/new-bsd
If you did not receive a copy of the license and are unable to
obtain it through the world-wide-web, please send an email
to [email protected] so we can send you a copy immediately.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Test
- Subpackage
- PHPUnit
- Version
- $Id$
\Zend_Test_PHPUnit_DatabaseTestCase
Package: Zend_Test\PHPUnit
Generic Testcase for Zend Framework related DbUnit Testing with PHPUnit
- Parent(s)
- \PHPUnit_Extensions_Database_TestCase
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Uses
Methods
createDbRowset(\Zend_Db_Table_Rowset_Abstract $rowset, $tableName = null) : \Zend_Test_PHPUnit_Db_DataSet_DbRowset
Create a data table based on a Zend_Db_Table_Rowset instance
Parameters
Returns
Name | Type | Description |
---|---|---|
$rowset | \Zend_Db_Table_Rowset_Abstract | |
$tableName |
Type | Description |
---|---|
\Zend_Test_PHPUnit_Db_DataSet_DbRowset |
createDbTable(\Zend_Db_Table_Abstract $table, string $where = null, string $order = null, string $count = null, string $offset = null) : \Zend_Test_PHPUnit_Db_DataSet_DbTable
Create a table based on one Zend_Db_Table instance
Parameters
Returns
Name | Type | Description |
---|---|---|
$table | \Zend_Db_Table_Abstract | |
$where | string | |
$order | string | |
$count | string | |
$offset | string |
Type | Description |
---|---|
\Zend_Test_PHPUnit_Db_DataSet_DbTable |
createDbTableDataSet(array $tables = array()) : \Zend_Test_PHPUnit_Db_DataSet_DbTableDataSet
Create a dataset based on multiple Zend_Db_Table instances
Parameters
Returns
Name | Type | Description |
---|---|---|
$tables | array |
Type | Description |
---|---|
\Zend_Test_PHPUnit_Db_DataSet_DbTableDataSet |
createZendDbConnection(\Zend_Db_Adapter_Abstract $connection, string $schema) : \Zend_Test_PHPUnit_Db_Connection
Creates a new Zend Database Connection using the given Adapter and database schema name.
Parameters
Returns
Name | Type | Description |
---|---|---|
$connection | \Zend_Db_Adapter_Abstract | |
$schema | string |
Type | Description |
---|---|
\Zend_Test_PHPUnit_Db_Connection |
getAdapter() : \Zend_Db_Adapter_Abstract
Convenience function to get access to the database connection.
Returns
Type | Description |
---|---|
\Zend_Db_Adapter_Abstract |
getSetUpOperation() : \PHPUnit_Extensions_Database_Operation_DatabaseOperation
Returns the database operation executed in test setup.
Returns
Type | Description |
---|---|
\PHPUnit_Extensions_Database_Operation_DatabaseOperation |
getTearDownOperation() : \PHPUnit_Extensions_Database_Operation_DatabaseOperation
Returns the database operation executed in test cleanup.
Returns
Type | Description |
---|---|
\PHPUnit_Extensions_Database_Operation_DatabaseOperation |