Test/PHPUnit/Db/Operation/Truncate.php
- 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: Truncate.php 20096 2010-01-06 02:05:09Z bkarwin $
- Classes
- Zend_Test_PHPUnit_Db_Operation_Truncate
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_Operation_Truncate
- Implements
- 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_Operation_IDatabaseOperation
- Methods
- execute
- _truncate
- _isMssqlOrOracle
Description
Operation for Truncating on setup or teardown of a database tester.
Methods
_isMssqlOrOracle(
Zend_Db_Adapter_Abstract $db
)
:
bool
Detect if an adapter is for Mssql or Oracle Databases.
Arguments
- $db
- Zend_Db_Adapter_Abstract
Details
- visibility
- private
- final
- false
- static
- false
_truncate(
Zend_Db_Adapter_Abstract $db, string $tableName
)
:
void
Truncate a given table.
Arguments
- $db
- Zend_Db_Adapter_Abstract
- $tableName
- string
Details
- visibility
- protected
- final
- false
- static
- false
execute(
PHPUnit_Extensions_Database_DB_IDatabaseConnection $connection, PHPUnit_Extensions_Database_DataSet_IDataSet $dataSet
)
:
void
Arguments
- $connection
- PHPUnit_Extensions_Database_DB_IDatabaseConnection
- $dataSet
- PHPUnit_Extensions_Database_DataSet_IDataSet
Details
- visibility
- public
- final
- false
- static
- false