From 59afd687ce499d5c9c41cafcaf266052c4b1e149 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Mon, 29 Dec 2014 20:53:24 -0800 Subject: [PATCH] Convert most libs/ tests to use PHPUnit_Framework_TestCase They don't actually need any of the mess that MediaWikiTestCase provides Change-Id: Ibd067480fc294096d1249132cb800e09889efb18 --- tests/phpunit/includes/libs/ArrayUtilsTest.php | 2 +- tests/phpunit/includes/libs/GenericArrayObjectTest.php | 2 +- tests/phpunit/includes/libs/HashRingTest.php | 2 +- tests/phpunit/includes/libs/IEUrlExtensionTest.php | 2 +- tests/phpunit/includes/libs/IPSetTest.php | 2 +- tests/phpunit/includes/libs/JavaScriptMinifierTest.php | 2 +- tests/phpunit/includes/libs/MWMessagePackTest.php | 2 +- tests/phpunit/includes/libs/ProcessCacheLRUTest.php | 2 +- tests/phpunit/includes/libs/RunningStatTest.php | 2 +- tests/phpunit/includes/libs/XmlTypeCheckTest.php | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/tests/phpunit/includes/libs/ArrayUtilsTest.php b/tests/phpunit/includes/libs/ArrayUtilsTest.php index 7bdb1ca415..b5ea7b7259 100644 --- a/tests/phpunit/includes/libs/ArrayUtilsTest.php +++ b/tests/phpunit/includes/libs/ArrayUtilsTest.php @@ -5,7 +5,7 @@ * @group Database */ -class ArrayUtilsTest extends MediaWikiTestCase { +class ArrayUtilsTest extends PHPUnit_Framework_TestCase { private $search; /** diff --git a/tests/phpunit/includes/libs/GenericArrayObjectTest.php b/tests/phpunit/includes/libs/GenericArrayObjectTest.php index 4911f73a6e..fd9f80d283 100644 --- a/tests/phpunit/includes/libs/GenericArrayObjectTest.php +++ b/tests/phpunit/includes/libs/GenericArrayObjectTest.php @@ -27,7 +27,7 @@ * @licence GNU GPL v2+ * @author Jeroen De Dauw < jeroendedauw@gmail.com > */ -abstract class GenericArrayObjectTest extends MediaWikiTestCase { +abstract class GenericArrayObjectTest extends PHPUnit_Framework_TestCase { /** * Returns objects that can serve as elements in the concrete diff --git a/tests/phpunit/includes/libs/HashRingTest.php b/tests/phpunit/includes/libs/HashRingTest.php index 68dfea1f7f..b51eb3f4b7 100644 --- a/tests/phpunit/includes/libs/HashRingTest.php +++ b/tests/phpunit/includes/libs/HashRingTest.php @@ -3,7 +3,7 @@ /** * @group HashRing */ -class HashRingTest extends MediaWikiTestCase { +class HashRingTest extends PHPUnit_Framework_TestCase { /** * @covers HashRing */ diff --git a/tests/phpunit/includes/libs/IEUrlExtensionTest.php b/tests/phpunit/includes/libs/IEUrlExtensionTest.php index b7071230a3..e96953ee12 100644 --- a/tests/phpunit/includes/libs/IEUrlExtensionTest.php +++ b/tests/phpunit/includes/libs/IEUrlExtensionTest.php @@ -5,7 +5,7 @@ * @todo tests below for findIE6Extension should be split into... * ...a dataprovider and test method. */ -class IEUrlExtensionTest extends MediaWikiTestCase { +class IEUrlExtensionTest extends PHPUnit_Framework_TestCase { /** * @covers IEUrlExtension::findIE6Extension */ diff --git a/tests/phpunit/includes/libs/IPSetTest.php b/tests/phpunit/includes/libs/IPSetTest.php index d4e5214a39..5bbacef42d 100644 --- a/tests/phpunit/includes/libs/IPSetTest.php +++ b/tests/phpunit/includes/libs/IPSetTest.php @@ -3,7 +3,7 @@ /** * @group IPSet */ -class IPSetTest extends MediaWikiTestCase { +class IPSetTest extends PHPUnit_Framework_TestCase { /** * Provides test cases for IPSetTest::testIPSet * diff --git a/tests/phpunit/includes/libs/JavaScriptMinifierTest.php b/tests/phpunit/includes/libs/JavaScriptMinifierTest.php index c8795b2e46..26b81ccf05 100644 --- a/tests/phpunit/includes/libs/JavaScriptMinifierTest.php +++ b/tests/phpunit/includes/libs/JavaScriptMinifierTest.php @@ -1,6 +1,6 @@ "; const MAL_FORMED_XML = ""; -- 2.20.1