00001 <?php 00002 require_once( 'SearchEngineTest.php' ); 00003 00004 class SearchMySQLTest extends SearchEngineTest { 00005 var $db; 00006 00007 function setUp() { 00008 $GLOBALS['wgContLang'] = new Language; 00009 $this->db = $this->buildTestDatabase( 00010 array( 'page', 'revision', 'text', 'searchindex', 'user' ) ); 00011 if( $this->db ) { 00012 $this->insertSearchData(); 00013 } 00014 $this->search = new SearchMySQL( $this->db ); 00015 } 00016 00017 function tearDown() { 00018 if( !is_null( $this->db ) ) { 00019 wfGetLB()->closeConnecton( $this->db ); 00020 } 00021 unset( $this->db ); 00022 unset( $this->search ); 00023 } 00024 } 00025 00026