API * Better log events info * Added RAW debugging format
[mediawiki.git] / tests / SearchMySQL4Test.php
blob6277e6ca34c24144b615014b7760f9c502505085
1 <?php
3 require_once( 'SearchEngineTest.php' );
4 require_once( '../includes/SearchMySQL4.php' );
6 class SearchMySQL4Test extends SearchEngine_TestCase {
7 var $db;
9 function SearchMySQL4Test( $name ) {
10 $this->PHPUnit_TestCase( $name );
13 function setUp() {
14 $GLOBALS['wgContLang'] = new Language;
15 $this->db =& buildTestDatabase(
16 'mysql4',
17 array( 'page', 'revision', 'text', 'searchindex' ) );
18 if( $this->db ) {
19 $this->insertSearchData();
21 $this->search = new SearchMySQL4( $this->db );
24 function tearDown() {
25 if( !is_null( $this->db ) ) {
26 $this->db->close();
28 unset( $this->db );
29 unset( $this->search );