<?php
require_once( 'SearchEngineTest.php' );
-class SearchMySQL4Test extends SearchEngine_TestCase {
+class SearchMySQL4Test extends SearchEngineTest {
var $db;
- function SearchMySQL4Test( $name ) {
- $this->PHPUnit_TestCase( $name );
+ function __construct( $name ) {
+ parent::__construct( $name );
}
function setUp() {
$GLOBALS['wgContLang'] = new Language;
- $this->db =& buildTestDatabase(
- 'mysql4',
+ $this->db = $this->buildTestDatabase(
array( 'page', 'revision', 'text', 'searchindex' ) );
if( $this->db ) {
$this->insertSearchData();
}
-?>
+