Index: trunk/phase3/maintenance/tests/SearchMySQL4Test.php |
— | — | @@ -1,27 +0,0 @@ |
2 | | -<?php |
3 | | -require_once( 'SearchEngineTest.php' ); |
4 | | - |
5 | | -class SearchMySQL4Test extends SearchEngineTest { |
6 | | - var $db; |
7 | | - |
8 | | - function setUp() { |
9 | | - $GLOBALS['wgContLang'] = new Language; |
10 | | - $this->db = $this->buildTestDatabase( |
11 | | - array( 'page', 'revision', 'text', 'searchindex' ) ); |
12 | | - if( $this->db ) { |
13 | | - $this->insertSearchData(); |
14 | | - } |
15 | | - $this->search = new SearchMySQL4( $this->db ); |
16 | | - } |
17 | | - |
18 | | - function tearDown() { |
19 | | - if( !is_null( $this->db ) ) { |
20 | | - wfGetLB()->closeConnecton( $this->db ); |
21 | | - } |
22 | | - unset( $this->db ); |
23 | | - unset( $this->search ); |
24 | | - } |
25 | | - |
26 | | -} |
27 | | - |
28 | | - |
Index: trunk/phase3/maintenance/tests/SearchMySQLTest.php |
— | — | @@ -0,0 +1,26 @@ |
| 2 | +<?php |
| 3 | +require_once( 'SearchEngineTest.php' ); |
| 4 | + |
| 5 | +class SearchMySQLTest extends SearchEngineTest { |
| 6 | + var $db; |
| 7 | + |
| 8 | + function setUp() { |
| 9 | + $GLOBALS['wgContLang'] = new Language; |
| 10 | + $this->db = $this->buildTestDatabase( |
| 11 | + array( 'page', 'revision', 'text', 'searchindex' ) ); |
| 12 | + if( $this->db ) { |
| 13 | + $this->insertSearchData(); |
| 14 | + } |
| 15 | + $this->search = new SearchMySQL( $this->db ); |
| 16 | + } |
| 17 | + |
| 18 | + function tearDown() { |
| 19 | + if( !is_null( $this->db ) ) { |
| 20 | + wfGetLB()->closeConnecton( $this->db ); |
| 21 | + } |
| 22 | + unset( $this->db ); |
| 23 | + unset( $this->search ); |
| 24 | + } |
| 25 | +} |
| 26 | + |
| 27 | + |
Property changes on: trunk/phase3/maintenance/tests/SearchMySQLTest.php |
___________________________________________________________________ |
Name: svn:eol-style |
1 | 28 | + native |
Name: svn:keywords |
2 | 29 | + Author Date Id Revision |