MediaWiki REL1_32
DatabaseSqliteRdbmsTest Class Reference

DatabaseSqliteTest is already defined in mediawiki core hence the 'Rdbms' included in this class name. More...

Inheritance diagram for DatabaseSqliteRdbmsTest:
Collaboration diagram for DatabaseSqliteRdbmsTest:

Public Member Functions

 provideBuildSubstring ()
 
 provideBuildSubstring_invalidParams ()
 
 testBuildSubstring ( $input, $start, $length, $expected)
 Wikimedia\Rdbms\DatabaseSqlite::buildSubstring provideBuildSubstring.
 
 testBuildSubstring_invalidParams ( $start, $length)
 Wikimedia\Rdbms\DatabaseSqlite::buildSubstring provideBuildSubstring_invalidParams.
 

Private Member Functions

 getMockDb ()
 

Detailed Description

DatabaseSqliteTest is already defined in mediawiki core hence the 'Rdbms' included in this class name.

The test in core should have mediawiki specific stuff removed and the tests moved to this rdbms libs test.

Definition at line 11 of file DatabaseSqliteRdbmsTest.php.

Member Function Documentation

◆ getMockDb()

DatabaseSqliteRdbmsTest::getMockDb ( )
private
Returns
PHPUnit_Framework_MockObject_MockObject|DatabaseSqlite

Definition at line 19 of file DatabaseSqliteRdbmsTest.php.

Referenced by testBuildSubstring(), and testBuildSubstring_invalidParams().

◆ provideBuildSubstring()

DatabaseSqliteRdbmsTest::provideBuildSubstring ( )

Definition at line 26 of file DatabaseSqliteRdbmsTest.php.

◆ provideBuildSubstring_invalidParams()

DatabaseSqliteRdbmsTest::provideBuildSubstring_invalidParams ( )

Definition at line 41 of file DatabaseSqliteRdbmsTest.php.

◆ testBuildSubstring()

DatabaseSqliteRdbmsTest::testBuildSubstring ( $input,
$start,
$length,
$expected )

Wikimedia\Rdbms\DatabaseSqlite::buildSubstring provideBuildSubstring.

Definition at line 35 of file DatabaseSqliteRdbmsTest.php.

References $input, $output, and getMockDb().

◆ testBuildSubstring_invalidParams()

DatabaseSqliteRdbmsTest::testBuildSubstring_invalidParams ( $start,
$length )

Wikimedia\Rdbms\DatabaseSqlite::buildSubstring provideBuildSubstring_invalidParams.

Definition at line 54 of file DatabaseSqliteRdbmsTest.php.

References getMockDb().


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