diff options
Diffstat (limited to 'tests/SearchMySQL4Test.php')
-rw-r--r-- | tests/SearchMySQL4Test.php | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/tests/SearchMySQL4Test.php b/tests/SearchMySQL4Test.php index 6277e6ca..0f3a4c2c 100644 --- a/tests/SearchMySQL4Test.php +++ b/tests/SearchMySQL4Test.php @@ -1,19 +1,16 @@ <?php - require_once( 'SearchEngineTest.php' ); -require_once( '../includes/SearchMySQL4.php' ); -class SearchMySQL4Test extends SearchEngine_TestCase { +class SearchMySQL4Test extends SearchEngineTest { var $db; - function SearchMySQL4Test( $name ) { - $this->PHPUnit_TestCase( $name ); + function __construct( $name ) { + parent::__construct( $name ); } function setUp() { $GLOBALS['wgContLang'] = new Language; - $this->db =& buildTestDatabase( - 'mysql4', + $this->db = $this->buildTestDatabase( array( 'page', 'revision', 'text', 'searchindex' ) ); if( $this->db ) { $this->insertSearchData(); @@ -31,4 +28,4 @@ class SearchMySQL4Test extends SearchEngine_TestCase { } -?> + |