diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2006-10-11 18:12:39 +0000 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2006-10-11 18:12:39 +0000 |
commit | 183851b06bd6c52f3cae5375f433da720d410447 (patch) | |
tree | a477257decbf3360127f6739c2f9d0ec57a03d39 /tests/SearchMySQL4Test.php |
MediaWiki 1.7.1 wiederhergestellt
Diffstat (limited to 'tests/SearchMySQL4Test.php')
-rw-r--r-- | tests/SearchMySQL4Test.php | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/SearchMySQL4Test.php b/tests/SearchMySQL4Test.php new file mode 100644 index 00000000..545af230 --- /dev/null +++ b/tests/SearchMySQL4Test.php @@ -0,0 +1,34 @@ +<?php + +require_once( 'SearchEngineTest.php' ); +require_once( '../includes/SearchMySQL4.php' ); + +class SearchMySQL4Test extends SearchEngine_TestCase { + var $db; + + function SearchMySQL4Test( $name ) { + $this->PHPUnit_TestCase( $name ); + } + + function setUp() { + $GLOBALS['wgContLang'] = new LanguageUtf8; + $this->db =& buildTestDatabase( + 'mysql4', + 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 ); + } + +} + +?>
\ No newline at end of file |