Compensate for overhead of profiled subcalls in each function, to give less distorted...
[mediawiki.git] / tests / SearchMySQL3Test.php
blob433b821c275e0a681b3e66d8b8811fc89e828387
1 <?php
3 require_once( 'SearchEngineTest.php' );
4 require_once( '../includes/SearchMySQL3.php' );
6 class SearchMySQL3Test extends SearchEngine_TestCase {
7 var $db;
9 function SearchMySQL3Test( $name ) {
10 $this->PHPUnit_TestCase( $name );
13 function setUp() {
14 $GLOBALS['wgContLang'] = new LanguageUtf8;
15 $this->db =& buildTestDatabase(
16 'mysql3',
17 array( 'cur', 'searchindex' ) );
18 if( $this->db ) {
19 $this->insertSearchData();
21 $this->search =& new SearchMySQL3( $this->db );
24 function tearDown() {
25 if( !is_null( $this->db ) ) {
26 $this->db->close();
28 unset( $this->db );
29 unset( $this->search );