* Updates to Dutch (nl) translations
[mediawiki.git] / tests / SearchMySQL4Test.php
blob0f3a4c2c74265d1d173df375af738e59c81137cd
1 <?php
2 require_once( 'SearchEngineTest.php' );
4 class SearchMySQL4Test extends SearchEngineTest {
5 var $db;
7 function __construct( $name ) {
8 parent::__construct( $name );
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();
18 $this->search = new SearchMySQL4( $this->db );
21 function tearDown() {
22 if( !is_null( $this->db ) ) {
23 $this->db->close();
25 unset( $this->db );
26 unset( $this->search );