API Documentation

Test/PHPUnit/Db/Connection.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: Connection.php 20096 2010-01-06 02:05:09Z bkarwin $
Classes
Zend_Test_PHPUnit_Db_Connection

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_Db_Connection

Extends from
PHPUnit_Extensions_Database_DB_DefaultDatabaseConnection
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
Zend_Db_Adapter_Abstract
uses
PHPUnit_Extensions_Database_DB_DefaultDatabaseConnection
Properties
$_connection
$_schema
$_metaData
Methods
__construct
close
createQueryTable
getConnection
getMetaData
getSchema
getTruncateCommand

Description

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

Properties

$_connection

Zend_Db_Adapter_Abstract $_connection = ''

Zend_Db_Adapter_Abstract

Details

$_connection
Zend_Db_Adapter_Abstract
visibility
protected
default
final
false
static
false

$_metaData

 $_metaData = ''

Metadata

Details

visibility
protected
default
final
false
static
false
$db
PHPUnit_Extensions_Database_DB_IMetaData

$_schema

string $_schema = ''

Database Schema

Details

$db
string
visibility
protected
default
final
false
static
false

Methods

__construct

__construct( Zend_Db_Adapter_Abstract $db, string $schema ) :

Construct Connection based on Zend_Db_Adapter_Abstract

Arguments
$db
Zend_Db_Adapter_Abstract
$schema
string
Details
visibility
public
final
false
static
false

close

close( ) : void

Close this connection.

Details
visibility
public
final
false
static
false

createQueryTable

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

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

Arguments
$resultName
string
$sql
string
Output
PHPUnit_Extensions_Database_DataSet_ITable
Details
visibility
public
final
false
static
false

getConnection

getConnection( ) : Zend_Db_Adapter_Abstract

Returns a Zend_Db Connection

Details
visibility
public
final
false
static
false

getMetaData

getMetaData( ) : PHPUnit_Extensions_Database_DB_IMetaData

Returns a database metadata object that can be used to retrieve table meta data from the database.

Output
PHPUnit_Extensions_Database_DB_IMetaData
Details
visibility
public
final
false
static
false

getSchema

getSchema( ) : string

Returns the schema for the connection.

Output
string
Details
visibility
public
final
false
static
false

getTruncateCommand

getTruncateCommand( ) : string

Returns the command used to truncate a table.

Output
string
Details
visibility
public
final
false
static
false
Documentation was generated by DocBlox.