return true;
}
- function replaceVars( $s ) {
+ /**
+ * Override parent visibility to public
+ */
+ public function replaceVars( $s ) {
return parent::replaceVars( $s );
}
}
* @todo: currently only checks list of tables
*/
public function testUpgrades() {
- global $IP, $wgVersion;
+ global $IP, $wgVersion, $wgProfileToDatabase;
// Versions tested
$versions = array(
$currentDB = new DatabaseSqliteStandalone( ':memory:' );
$currentDB->sourceFile( "$IP/maintenance/tables.sql" );
+ if ( $wgProfileToDatabase ) {
+ $currentDB->sourceFile( "$IP/maintenance/sqlite/archives/patch-profiling.sql" );
+ }
$currentTables = $this->getTables( $currentDB );
sort( $currentTables );
ksort( $indexes );
return $indexes;
}
+
+ function testCaseInsensitiveLike() {
+ // TODO: Test this for all databases
+ $db = new DatabaseSqliteStandalone( ':memory:' );\r
+ $res = $db->query( 'SELECT "a" LIKE "A" AS a' );\r
+ $row = $res->fetchRow();\r
+ $this->assertFalse( (bool)$row['a'] );\r
+ }
}