From d81f562b712f2387fa02290bf2ca86392ab356f2 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Wed, 11 Oct 2006 20:21:25 +0000 Subject: Aktualisierung auf Version 1.8.1 --- tests/DatabaseTest.php | 4 ++-- tests/RunTests.php | 2 +- tests/SearchEngineTest.php | 1 - tests/SearchMySQL4Test.php | 6 +++--- 4 files changed, 6 insertions(+), 7 deletions(-) (limited to 'tests') diff --git a/tests/DatabaseTest.php b/tests/DatabaseTest.php index a721c98d..edb785dd 100644 --- a/tests/DatabaseTest.php +++ b/tests/DatabaseTest.php @@ -13,7 +13,7 @@ class DatabaseTest extends PHPUnit_TestCase { } function setUp() { - $this->db =& new Database(); + $this->db = new Database(); } function tearDown() { @@ -90,4 +90,4 @@ class DatabaseTest extends PHPUnit_TestCase { } -?> \ No newline at end of file +?> diff --git a/tests/RunTests.php b/tests/RunTests.php index ec04fc03..2b539a47 100644 --- a/tests/RunTests.php +++ b/tests/RunTests.php @@ -57,7 +57,7 @@ foreach( $tests as $test ) { function &buildTestDatabase( $serverType, $tables ) { global $testOptions, $wgDBprefix; $wgDBprefix = 'parsertest'; - $db =& new Database( + $db = new Database( $testOptions[$serverType]['server'], $testOptions[$serverType]['user'], $testOptions[$serverType]['password'], diff --git a/tests/SearchEngineTest.php b/tests/SearchEngineTest.php index 20d8017e..0a02c49c 100644 --- a/tests/SearchEngineTest.php +++ b/tests/SearchEngineTest.php @@ -8,7 +8,6 @@ require_once( '../includes/Profiling.php' ); require_once( '../includes/Hooks.php' ); require_once( '../includes/MagicWord.php' ); require_once( '../languages/Language.php' ); -require_once( '../languages/LanguageUtf8.php' ); require_once( '../includes/SearchEngine.php' ); diff --git a/tests/SearchMySQL4Test.php b/tests/SearchMySQL4Test.php index 545af230..6277e6ca 100644 --- a/tests/SearchMySQL4Test.php +++ b/tests/SearchMySQL4Test.php @@ -11,14 +11,14 @@ class SearchMySQL4Test extends SearchEngine_TestCase { } function setUp() { - $GLOBALS['wgContLang'] = new LanguageUtf8; + $GLOBALS['wgContLang'] = new Language; $this->db =& buildTestDatabase( 'mysql4', array( 'page', 'revision', 'text', 'searchindex' ) ); if( $this->db ) { $this->insertSearchData(); } - $this->search =& new SearchMySQL4( $this->db ); + $this->search = new SearchMySQL4( $this->db ); } function tearDown() { @@ -31,4 +31,4 @@ class SearchMySQL4Test extends SearchEngine_TestCase { } -?> \ No newline at end of file +?> -- cgit v1.2.2