revert accidental commit
[lhc/web/wiklou.git] / tests / SearchMySQL4Test.php
1 <?php
2 require_once( 'SearchEngineTest.php' );
3
4 class SearchMySQL4Test extends SearchEngine_TestCase {
5 var $db;
6
7 function SearchMySQL4Test( $name ) {
8 $this->PHPUnit_TestCase( $name );
9 }
10
11 function setUp() {
12 $GLOBALS['wgContLang'] = new Language;
13 $this->db =& buildTestDatabase(
14 'mysql4',
15 array( 'page', 'revision', 'text', 'searchindex' ) );
16 if( $this->db ) {
17 $this->insertSearchData();
18 }
19 $this->search = new SearchMySQL4( $this->db );
20 }
21
22 function tearDown() {
23 if( !is_null( $this->db ) ) {
24 $this->db->close();
25 }
26 unset( $this->db );
27 unset( $this->search );
28 }
29
30 }
31
32 ?>