From d0ee386dca9508deb28aa3cbd5b8482f2d18ee80 Mon Sep 17 00:00:00 2001 From: X! Date: Tue, 28 Dec 2010 18:47:09 +0000 Subject: [PATCH] NewDBTest does not need the function anymore. Fixed bug that caused a catchable fatal error (fix from r79117) --- tests/phpunit/includes/NewDBTest.php | 2 -- tests/phpunit/suites/ExtensionsTestSuite.php | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/phpunit/includes/NewDBTest.php b/tests/phpunit/includes/NewDBTest.php index 02d9bb8fb8..487549c099 100644 --- a/tests/phpunit/includes/NewDBTest.php +++ b/tests/phpunit/includes/NewDBTest.php @@ -19,8 +19,6 @@ class NewDBTest extends MediaWikiTestCase { User::newFromName( 'UTSysop' ) ); } - function needsDB() { return true; } - function testBootstrapCreation() { $article = new Article( Title::newFromText("UTPage") ); diff --git a/tests/phpunit/suites/ExtensionsTestSuite.php b/tests/phpunit/suites/ExtensionsTestSuite.php index 4f02a693ce..4bf3542799 100644 --- a/tests/phpunit/suites/ExtensionsTestSuite.php +++ b/tests/phpunit/suites/ExtensionsTestSuite.php @@ -26,7 +26,7 @@ class ExtensionsTestSuite extends PHPUnit_Framework_TestSuite { * Needed to avoid warnings like 'No tests found in class "ExtensionsTestSuite".' * when no extensions with tests are used. */ -class DummyExtensionsTest extends MediaWikiTestCase { +class DummyExtensionsTest extends PHPUnit_Framework_TestCase { public function testNothing() { } -- 2.20.1