Make phpunit on Ubuntu work out-of-the-box (at least for me) and prepare for some...
[lhc/web/wiklou.git] / tests / SearchMySQL4Test.php
1 <?php
2 require_once( 'SearchEngineTest.php' );
3
4 /**
5 * @group Broken
6 */
7
8 class SearchMySQL4Test extends SearchEngineTest {
9 var $db;
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