Test/PHPUnit/Db/Connection.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-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Test
- Subpackage
- PHPUnit
- Version
- $Id: Connection.php 24593 2012-01-05 20:35:02Z matthew $
\Zend_Test_PHPUnit_Db_Connection
Package: Zend\Test\PHPUnit
Generic Abstraction of Zend_Db Connections in the PHPUnit Database Extension context.
- Parent(s)
- \PHPUnit_Extensions_Database_DB_DefaultDatabaseConnection
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Uses
- \global\Zend_Db_Adapter_Abstract
- Uses
- \global\PHPUnit_Extensions_Database_DB_DefaultDatabaseConnection
Properties
Methods

__construct(\Zend_Db_Adapter_Abstract $db, string $schema) : voidConstruct Connection based on Zend_Db_Adapter_Abstract
Parameters
| Name | Type | Description |
|---|---|---|
| $db | \Zend_Db_Adapter_Abstract | |
| $schema | string |

createQueryTable(string $resultName, string $sql) : \PHPUnit_Extensions_Database_DataSet_ITableCreates a table with the result of the specified SQL statement.
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $resultName | string | |
| $sql | string |
| Type | Description |
|---|---|
| \PHPUnit_Extensions_Database_DataSet_ITable |

getConnection() : \Zend_Db_Adapter_AbstractReturns a Zend_Db Connection
Returns
| Type | Description |
|---|---|
| \Zend_Db_Adapter_Abstract |

getMetaData() : \PHPUnit_Extensions_Database_DB_IMetaDataReturns a database metadata object that can be used to retrieve table meta data from the database.
Returns
| Type | Description |
|---|---|
| \PHPUnit_Extensions_Database_DB_IMetaData |