PHP Class Horde_Db_Adapter_TestBase, horde

Author: Mike Naberezny ([email protected])
Author: Derek DeVries ([email protected])
Author: Chuck Hagenbuch ([email protected])
Author: Jan Schneider ([email protected])
Inheritance: extends Horde_Test_Case
Mostra file Open project: horde/horde Class Usage Examples

Protected Properties

Property Type Description
$_columnTest
$_conn
$_reason
$_skip
$_tableTest

Public Methods

Method Description
testAdapterName ( ) *########################################################################## # Accessor ##########################################################################
testAddColumnNotNullWithDefault ( )
testAddColumnNotNullWithoutDefault ( )
testAddColumnOptions ( )
testAddColumnOptionsDefault ( )
testAddColumnOptionsNotNull ( )
testAddColumnOptionsNull ( )
testAddIndex ( )
testAddIndexDefault ( )
testAddIndexMultiColumn ( )
testAddIndexName ( )
testAddIndexUnique ( )
testAddOrderByForAssocLimiting ( )
testAddRemoveSingleField ( )
testAddRename ( )
testAutoIncrementWithAddColumn ( )
testAutoIncrementWithChangeColumn ( )
testAutoIncrementWithTypeInColumn ( ) *########################################################################## # Autoincrement Management ##########################################################################
testAutoIncrementWithTypeInTable ( )
testAutoIncrementWithTypeInTableAndColumnDefined ( )
testBuildClause ( )
testCachedTableColumns ( )
testCachedTableIndexes ( ) *########################################################################## # Table cache ##########################################################################
testChangeColumnLimit ( )
testChangeColumnNull ( )
testChangeColumnPrecisionScale ( )
testChangeColumnType ( )
testColumnConstruct ( )
testColumnToSql ( )
testColumnToSqlDefault ( )
testColumnToSqlLimit ( )
testColumnToSqlNotNull ( )
testColumnToSqlPrecisionScale ( )
testColumns ( )
testConnect ( ) *########################################################################## # Connection ##########################################################################
testCreateTableWithSeparatePk ( )
testDelete ( )
testDisconnect ( )
testDistinct ( )
testIndexNameByMultiColumn ( )
testIndexNameByName ( )
testIndexNameBySingleColumn ( )
testIndexNameInvalid ( )
testIndexes ( )
testInsert ( )
testInsertAndReadInUtf8 ( )
testInsertBlob ( )
testModifyDate ( )
testNativeDatabaseTypes ( ) *########################################################################## # Schema Statements ##########################################################################
testPrimaryKey ( )
testQuoteBinary ( )
testQuoteColumnName ( )
testQuoteDirtyString ( )
testQuoteFalse ( )
testQuoteFloat ( )
testQuoteInteger ( )
testQuoteNull ( ) *########################################################################## # Quoting ##########################################################################
testQuoteString ( )
testQuoteTrue ( )
testReconnect ( )
testRemoveIndexByName ( )
testRemoveIndexMultiColumn ( )
testRemoveIndexSingleColumn ( )
testRenameColumn ( )
testRenameColumnWithSqlReservedWord ( )
testSelect ( ) *########################################################################## # Database Statements ##########################################################################
testSelectAll ( )
testSelectOne ( )
testSelectValue ( )
testSelectValues ( )
testSelectWithBoundParameters ( )
testSelectWithBoundParametersQuotesString ( )
testSupportsCountDistinct ( )
testSupportsInterval ( )
testSupportsMigrations ( )
testTableAliasFor ( )
testTableAliasLength ( )
testTableColumn ( )
testTableConstruct ( )
testTableGetOptions ( )
testTableName ( )
testTablePrimaryKey ( )
testTableToSql ( )
testTables ( )
testTransactionCommit ( )
testTransactionRollback ( )
testTransactionStarted ( )
testTypeToSqlBoolean ( )
testTypeToSqlDecimalPrecision ( )
testTypeToSqlDecimalScale ( )
testTypeToSqlInt ( )
testTypeToSqlIntLimit ( )
testTypeToSqlTypeBinary ( )
testTypeToSqlTypeDatetime ( )
testTypeToSqlTypeFloat ( )
testTypeToSqlTypePrimaryKey ( )
testTypeToSqlTypeString ( )
testTypeToSqlTypeText ( )
testTypeToSqlTypeTimestamp ( )
testUpdate ( )
testUpdateBlob ( )

Protected Methods

Method Description
_columnNames ( $tableName )
_createTable ( ) *########################################################################## # Protected ##########################################################################
_createTestTable ( $name, $options = [] )
_createTestUsersTable ( )
_dropTestTables ( ) drop test tables
_getColumn ( $table, $column ) Get a column by name
_getConnection ( $overrides = [] )
_getIndex ( $table, $indexes ) Get an index by columns
setUp ( )
tearDown ( )

Method Details

_columnNames() protected method

protected _columnNames ( $tableName )

_createTable() protected method

*########################################################################## # Protected ##########################################################################
protected _createTable ( )

_createTestTable() protected method

protected _createTestTable ( $name, $options = [] )

_createTestUsersTable() protected method

protected _createTestUsersTable ( )

_dropTestTables() protected method

drop test tables
protected _dropTestTables ( )

_getColumn() protected method

Get a column by name
protected _getColumn ( $table, $column )

_getConnection() protected static method

protected static _getConnection ( $overrides = [] )

_getIndex() protected method

Get an index by columns
protected _getIndex ( $table, $indexes )

setUp() protected method

protected setUp ( )

tearDown() protected method

protected tearDown ( )

testAdapterName() abstract public method

*########################################################################## # Accessor ##########################################################################
abstract public testAdapterName ( )

testAddColumnNotNullWithDefault() public method

testAddColumnNotNullWithoutDefault() public method

testAddColumnOptions() abstract public method

abstract public testAddColumnOptions ( )

testAddColumnOptionsDefault() abstract public method

abstract public testAddColumnOptionsDefault ( )

testAddColumnOptionsNotNull() abstract public method

abstract public testAddColumnOptionsNotNull ( )

testAddColumnOptionsNull() abstract public method

abstract public testAddColumnOptionsNull ( )

testAddIndex() public method

public testAddIndex ( )

testAddIndexDefault() public method

public testAddIndexDefault ( )

testAddIndexMultiColumn() public method

testAddIndexName() public method

public testAddIndexName ( )

testAddIndexUnique() public method

public testAddIndexUnique ( )

testAddOrderByForAssocLimiting() public method

testAddRemoveSingleField() public method

testAddRename() public method

public testAddRename ( )

testAutoIncrementWithAddColumn() public method

testAutoIncrementWithChangeColumn() public method

testAutoIncrementWithTypeInColumn() public method

*########################################################################## # Autoincrement Management ##########################################################################

testAutoIncrementWithTypeInTable() public method

testAutoIncrementWithTypeInTableAndColumnDefined() public method

testBuildClause() abstract public method

abstract public testBuildClause ( )

testCachedTableColumns() public method

testCachedTableIndexes() public method

*########################################################################## # Table cache ##########################################################################

testChangeColumnLimit() abstract public method

abstract public testChangeColumnLimit ( )

testChangeColumnNull() public method

testChangeColumnPrecisionScale() abstract public method

abstract public testChangeColumnPrecisionScale ( )

testChangeColumnType() abstract public method

abstract public testChangeColumnType ( )

testColumnConstruct() public method

public testColumnConstruct ( )

testColumnToSql() public method

public testColumnToSql ( )

testColumnToSqlDefault() public method

testColumnToSqlLimit() public method

testColumnToSqlNotNull() public method

testColumnToSqlPrecisionScale() public method

testColumns() public method

public testColumns ( )

testConnect() public method

*########################################################################## # Connection ##########################################################################
public testConnect ( )

testCreateTableWithSeparatePk() public method

testDelete() public method

public testDelete ( )

testDisconnect() public method

public testDisconnect ( )

testDistinct() public method

public testDistinct ( )

testIndexNameByMultiColumn() public method

testIndexNameByName() public method

public testIndexNameByName ( )

testIndexNameBySingleColumn() public method

testIndexNameInvalid() public method

testIndexes() public method

public testIndexes ( )

testInsert() public method

public testInsert ( )

testInsertAndReadInUtf8() public method

testInsertBlob() public method

public testInsertBlob ( )

testModifyDate() abstract public method

abstract public testModifyDate ( )

testNativeDatabaseTypes() abstract public method

*########################################################################## # Schema Statements ##########################################################################
abstract public testNativeDatabaseTypes ( )

testPrimaryKey() public method

public testPrimaryKey ( )

testQuoteBinary() public method

public testQuoteBinary ( )

testQuoteColumnName() abstract public method

abstract public testQuoteColumnName ( )

testQuoteDirtyString() abstract public method

abstract public testQuoteDirtyString ( )

testQuoteFalse() abstract public method

abstract public testQuoteFalse ( )

testQuoteFloat() abstract public method

abstract public testQuoteFloat ( )

testQuoteInteger() abstract public method

abstract public testQuoteInteger ( )

testQuoteNull() abstract public method

*########################################################################## # Quoting ##########################################################################
abstract public testQuoteNull ( )

testQuoteString() abstract public method

abstract public testQuoteString ( )

testQuoteTrue() abstract public method

abstract public testQuoteTrue ( )

testReconnect() public method

public testReconnect ( )

testRemoveIndexByName() public method

testRemoveIndexMultiColumn() public method

testRemoveIndexSingleColumn() public method

testRenameColumn() abstract public method

abstract public testRenameColumn ( )

testRenameColumnWithSqlReservedWord() public method

testSelect() public method

*########################################################################## # Database Statements ##########################################################################
public testSelect ( )

testSelectAll() public method

public testSelectAll ( )

testSelectOne() public method

public testSelectOne ( )

testSelectValue() public method

public testSelectValue ( )

testSelectValues() public method

public testSelectValues ( )

testSelectWithBoundParameters() public method

testSelectWithBoundParametersQuotesString() public method

testSupportsCountDistinct() abstract public method

abstract public testSupportsCountDistinct ( )

testSupportsInterval() abstract public method

abstract public testSupportsInterval ( )

testSupportsMigrations() abstract public method

abstract public testSupportsMigrations ( )

testTableAliasFor() public method

public testTableAliasFor ( )

testTableAliasLength() abstract public method

abstract public testTableAliasLength ( )

testTableColumn() public method

public testTableColumn ( )

testTableConstruct() public method

public testTableConstruct ( )

testTableGetOptions() public method

public testTableGetOptions ( )

testTableName() public method

public testTableName ( )

testTablePrimaryKey() public method

public testTablePrimaryKey ( )

testTableToSql() public method

public testTableToSql ( )

testTables() public method

public testTables ( )

testTransactionCommit() public method

testTransactionRollback() public method

testTransactionStarted() public method

testTypeToSqlBoolean() abstract public method

abstract public testTypeToSqlBoolean ( )

testTypeToSqlDecimalPrecision() abstract public method

abstract public testTypeToSqlDecimalPrecision ( )

testTypeToSqlDecimalScale() abstract public method

abstract public testTypeToSqlDecimalScale ( )

testTypeToSqlInt() abstract public method

abstract public testTypeToSqlInt ( )

testTypeToSqlIntLimit() abstract public method

abstract public testTypeToSqlIntLimit ( )

testTypeToSqlTypeBinary() abstract public method

abstract public testTypeToSqlTypeBinary ( )

testTypeToSqlTypeDatetime() abstract public method

abstract public testTypeToSqlTypeDatetime ( )

testTypeToSqlTypeFloat() abstract public method

abstract public testTypeToSqlTypeFloat ( )

testTypeToSqlTypePrimaryKey() abstract public method

abstract public testTypeToSqlTypePrimaryKey ( )

testTypeToSqlTypeString() abstract public method

abstract public testTypeToSqlTypeString ( )

testTypeToSqlTypeText() abstract public method

abstract public testTypeToSqlTypeText ( )

testTypeToSqlTypeTimestamp() abstract public method

abstract public testTypeToSqlTypeTimestamp ( )

testUpdate() public method

public testUpdate ( )

testUpdateBlob() public method

public testUpdateBlob ( )

Property Details

$_columnTest protected_oe static_oe property

protected static $_columnTest

$_conn protected_oe property

protected $_conn

$_reason protected_oe static_oe property

protected static $_reason

$_skip protected_oe static_oe property

protected static $_skip

$_tableTest protected_oe static_oe property

protected static $_tableTest