Your IP : 172.71.120.3


Current Path : /var/www/element/data/www/wiki.element.ru/tests/
Upload File :
Current File : /var/www/element/data/www/wiki.element.ru/tests/SearchMySQL4Test.php

<?php
require_once( 'SearchEngineTest.php' );

class SearchMySQL4Test extends SearchEngineTest {
	var $db;

	function __construct( $name ) {
		parent::__construct( $name );
	}

	function setUp() {
		$GLOBALS['wgContLang'] = new Language;
		$this->db = $this->buildTestDatabase(
			array( 'page', 'revision', 'text', 'searchindex' ) );
		if( $this->db ) {
			$this->insertSearchData();
		}
		$this->search = new SearchMySQL4( $this->db );
	}

	function tearDown() {
		if( !is_null( $this->db ) ) {
			$this->db->close();
		}
		unset( $this->db );
		unset( $this->search );
	}

}