wiki.techinc.nl/tests/SearchMySQL3Test.php
Brion Vibber 64ac6b8e77 Merge SCHEMA_WORK into HEAD. Lots of changes, some things are probably broken:
* Page moves/overwrites are a little iffy
* Compression might not be working right
* Profit!
2004-12-19 08:00:50 +00:00

34 lines
No EOL
659 B
PHP

<?php
require_once( 'SearchEngineTest.php' );
require_once( '../includes/SearchMySQL3.php' );
class SearchMySQL3Test extends SearchEngine_TestCase {
var $db;
function SearchMySQL3Test( $name ) {
$this->PHPUnit_TestCase( $name );
}
function setUp() {
$GLOBALS['wgContLang'] = new LanguageUtf8;
$this->db =& buildTestDatabase(
'mysql3',
array( 'page', 'revision', 'text', 'searchindex' ) );
if( $this->db ) {
$this->insertSearchData();
}
$this->search =& new SearchMySQL3( $this->db );
}
function tearDown() {
if( !is_null( $this->db ) ) {
$this->db->close();
}
unset( $this->db );
unset( $this->search );
}
}
?>