API Documentation

Test/PHPUnit/DatabaseTestCase.php

Includes Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Test
subpackage
PHPUnit
version
$Id: DatabaseTestCase.php 20096 2010-01-06 02:05:09Z bkarwin $
Classes
Zend_Test_PHPUnit_DatabaseTestCase

Description

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 license@zend.com so we can send you a copy immediately.

Zend_Test_PHPUnit_DatabaseTestCase

Extends from
PHPUnit_Extensions_Database_TestCase
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Test
subpackage
PHPUnit
uses
PHPUnit_Extensions_Database_TestCase
Methods
createZendDbConnection
getAdapter
getSetUpOperation
getTearDownOperation
createDbTableDataSet
createDbTable
createDbRowset

Description

Generic Testcase for Zend Framework related DbUnit Testing with PHPUnit

Methods

createDbRowset

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

Arguments
$rowset
Zend_Db_Table_Rowset_Abstract
$tableName
string
Details
visibility
protected
final
false
static
false

createDbTable

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

Arguments
$table
Zend_Db_Table_Abstract
$where
string
$order
string
$count
string
$offset
string
Details
visibility
protected
final
false
static
false

createDbTableDataSet

createDbTableDataSet( array $tables = array ) : Zend_Test_PHPUnit_Db_DataSet_DbTableDataSet

Create a dataset based on multiple Zend_Db_Table instances

Arguments
$tables
array
Details
visibility
protected
final
false
static
false

createZendDbConnection

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.

Arguments
$connection
Zend_Db_Adapter_Abstract
$schema
string
Details
visibility
protected
final
false
static
false

getAdapter

getAdapter( ) : Zend_Db_Adapter_Abstract

Convenience function to get access to the database connection.

Details
visibility
protected
final
false
static
false

getSetUpOperation

getSetUpOperation( ) : PHPUnit_Extensions_Database_Operation_DatabaseOperation

Returns the database operation executed in test setup.

Output
PHPUnit_Extensions_Database_Operation_DatabaseOperation
Details
visibility
protected
final
false
static
false

getTearDownOperation

getTearDownOperation( ) : PHPUnit_Extensions_Database_Operation_DatabaseOperation

Returns the database operation executed in test cleanup.

Output
PHPUnit_Extensions_Database_Operation_DatabaseOperation
Details
visibility
protected
final
false
static
false
Documentation was generated by DocBlox.