MediaWiki  REL1_22
DatabaseTest Class Reference

Database DatabaseBase More...

Inheritance diagram for DatabaseTest:
Collaboration diagram for DatabaseTest:

List of all members.

Public Member Functions

 testAddQuotesFloat ()
 testAddQuotesInt ()
 testAddQuotesNull ()
 DatabaseBase::dropTable
 testAddQuotesString ()
 testAddQuotesStringQuote ()
 testFillPreparedBang ()
 testFillPreparedEmpty ()
 testFillPreparedQuestion ()
 testFillPreparedRaw ()
 testStoredFunctions ()
 testTableNameForeign ()
 testTableNameLocal ()
 testTableNameRawForeign ()
 testTableNameRawLocal ()
 testTableNameRawShared ()
 testTableNameShared ()
 testUnknownTableCorruptsResults ()

Public Attributes

DatabaseBase $db
 $functionTest = false

Protected Member Functions

 setUp ()
 setUp and tearDown should (where significant) happen in reverse order.
 tearDown ()

Private Member Functions

 dropFunctions ()
 getSharedTableName ($table, $database, $prefix, $format= 'quoted')
 prefixAndQuote ($table, $database=null, $prefix=null, $format= 'quoted')

Detailed Description

Database DatabaseBase

Definition at line 7 of file DatabaseTest.php.


Member Function Documentation

Definition at line 222 of file DatabaseTest.php.

Referenced by tearDown(), and testStoredFunctions().

DatabaseTest::getSharedTableName ( table,
database,
prefix,
format = 'quoted' 
) [private]

Definition at line 67 of file DatabaseTest.php.

References $ret, array(), and global.

Referenced by testTableNameRawShared(), and testTableNameShared().

DatabaseTest::prefixAndQuote ( table,
database = null,
prefix = null,
format = 'quoted' 
) [private]
DatabaseTest::setUp ( ) [protected]

setUp and tearDown should (where significant) happen in reverse order.

Reimplemented from MediaWikiTestCase.

Definition at line 13 of file DatabaseTest.php.

References wfGetDB().

DatabaseTest::tearDown ( ) [protected]

Reimplemented from MediaWikiTestCase.

Definition at line 18 of file DatabaseTest.php.

References dropFunctions().

Definition at line 44 of file DatabaseTest.php.

Definition at line 36 of file DatabaseTest.php.

Definition at line 51 of file DatabaseTest.php.

Definition at line 189 of file DatabaseTest.php.

References array().

Definition at line 169 of file DatabaseTest.php.

References array().

Definition at line 177 of file DatabaseTest.php.

References array().

Definition at line 201 of file DatabaseTest.php.

References array().

Definition at line 155 of file DatabaseTest.php.

References prefixAndQuote().

Definition at line 117 of file DatabaseTest.php.

References prefixAndQuote().

Definition at line 162 of file DatabaseTest.php.

References prefixAndQuote().

Definition at line 124 of file DatabaseTest.php.

References prefixAndQuote().

Definition at line 228 of file DatabaseTest.php.

References $res, and array().


Member Data Documentation

DatabaseBase DatabaseTest::$db

Reimplemented from MediaWikiTestCase.

Definition at line 10 of file DatabaseTest.php.

DatabaseTest::$functionTest = false

Definition at line 11 of file DatabaseTest.php.


The documentation for this class was generated from the following file: