blob: 0f3a4c2c74265d1d173df375af738e59c81137cd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
<?php
require_once( 'SearchEngineTest.php' );
class SearchMySQL4Test extends SearchEngineTest {
var $db;
function __construct( $name ) {
parent::__construct( $name );
}
function setUp() {
$GLOBALS['wgContLang'] = new Language;
$this->db = $this->buildTestDatabase(
array( 'page', 'revision', 'text', 'searchindex' ) );
if( $this->db ) {
$this->insertSearchData();
}
$this->search = new SearchMySQL4( $this->db );
}
function tearDown() {
if( !is_null( $this->db ) ) {
$this->db->close();
}
unset( $this->db );
unset( $this->search );
}
}
|