* Fixed a bug where tags would be wrongly rejected ( === => == )
[lhc/web/wiklou.git] / tests / SearchMySQL3Test.php
1 <?php
2
3 require_once( 'SearchEngineTest.php' );
4 require_once( '../includes/SearchMySQL3.php' );
5
6 class SearchMySQL3Test extends SearchEngine_TestCase {
7 var $db;
8
9 function SearchMySQL3Test( $name ) {
10 $this->PHPUnit_TestCase( $name );
11 }
12
13 function setUp() {
14 $GLOBALS['wgContLang'] = new LanguageUtf8;
15 $this->db =& buildTestDatabase(
16 'mysql3',
17 array( 'page', 'revision', 'text', 'searchindex' ) );
18 if( $this->db ) {
19 $this->insertSearchData();
20 }
21 $this->search =& new SearchMySQL3( $this->db );
22 }
23
24 function tearDown() {
25 if( !is_null( $this->db ) ) {
26 $this->db->close();
27 }
28 unset( $this->db );
29 unset( $this->search );
30 }
31
32 }
33
34 ?>