Added a new hook to handle messages that aren't found in the Mediawiki Namespace...
[lhc/web/wiklou.git] / tests / SearchMySQL4Test.php
1 <?php
2 require_once( 'SearchEngineTest.php' );
3
4 class SearchMySQL4Test extends SearchEngineTest {
5 var $db;
6
7 function __construct( $name ) {
8 parent::__construct( $name );
9 }
10
11 function setUp() {
12 $GLOBALS['wgContLang'] = new Language;
13 $this->db = $this->buildTestDatabase(
14 array( 'page', 'revision', 'text', 'searchindex' ) );
15 if( $this->db ) {
16 $this->insertSearchData();
17 }
18 $this->search = new SearchMySQL4( $this->db );
19 }
20
21 function tearDown() {
22 if( !is_null( $this->db ) ) {
23 $this->db->close();
24 }
25 unset( $this->db );
26 unset( $this->search );
27 }
28
29 }
30
31