Generic Abstraction of Zend_Db Connections in the PHPUnit Database Extension context.

uses
uses
category Zend
package Zend_Test
subpackage PHPUnit
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License

 Methods

Construct Connection based on Zend_Db_Adapter_Abstract

__construct(\Zend_Db_Adapter_Abstract $db, string $schema) 

Parameters

$db

\Zend_Db_Adapter_Abstract

$schema

string

Close this connection.

close() : void

Creates a table with the result of the specified SQL statement.

createQueryTable(string $resultName, string $sql) : \PHPUnit_Extensions_Database_DataSet_ITable

Parameters

$resultName

string

$sql

string

Returns

\PHPUnit_Extensions_Database_DataSet_ITable

Returns a Zend_Db Connection

getConnection() : \Zend_Db_Adapter_Abstract

Returns

\Zend_Db_Adapter_Abstract

Returns the schema for the connection.

getSchema() : string

Returns

string

Returns the command used to truncate a table.

getTruncateCommand() : string

Returns

string

 Properties

 

Zend_Db_Adapter_Abstract

$_connection : \Zend_Db_Adapter_Abstract

Default

   

Database Schema

$_schema : string

Default