summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2006-10-11 20:21:25 +0000
committerPierre Schmitz <pierre@archlinux.de>2006-10-11 20:21:25 +0000
commitd81f562b712f2387fa02290bf2ca86392ab356f2 (patch)
treed666cdefbe6ac320827a2c6cb473581b46e22c4c /tests
parent183851b06bd6c52f3cae5375f433da720d410447 (diff)
Aktualisierung auf Version 1.8.1
Diffstat (limited to 'tests')
-rw-r--r--tests/DatabaseTest.php4
-rw-r--r--tests/RunTests.php2
-rw-r--r--tests/SearchEngineTest.php1
-rw-r--r--tests/SearchMySQL4Test.php6
4 files changed, 6 insertions, 7 deletions
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
+?>