Convert most libs/ tests to use PHPUnit_Framework_TestCase
authorChad Horohoe <chadh@wikimedia.org>
Tue, 30 Dec 2014 04:53:24 +0000 (20:53 -0800)
committerChad Horohoe <chadh@wikimedia.org>
Tue, 30 Dec 2014 04:53:24 +0000 (20:53 -0800)
They don't actually need any of the mess that MediaWikiTestCase provides

Change-Id: Ibd067480fc294096d1249132cb800e09889efb18

tests/phpunit/includes/libs/ArrayUtilsTest.php
tests/phpunit/includes/libs/GenericArrayObjectTest.php
tests/phpunit/includes/libs/HashRingTest.php
tests/phpunit/includes/libs/IEUrlExtensionTest.php
tests/phpunit/includes/libs/IPSetTest.php
tests/phpunit/includes/libs/JavaScriptMinifierTest.php
tests/phpunit/includes/libs/MWMessagePackTest.php
tests/phpunit/includes/libs/ProcessCacheLRUTest.php
tests/phpunit/includes/libs/RunningStatTest.php
tests/phpunit/includes/libs/XmlTypeCheckTest.php

index 7bdb1ca..b5ea7b7 100644 (file)
@@ -5,7 +5,7 @@
  * @group Database
  */
 
-class ArrayUtilsTest extends MediaWikiTestCase {
+class ArrayUtilsTest extends PHPUnit_Framework_TestCase {
        private $search;
 
        /**
index 4911f73..fd9f80d 100644 (file)
@@ -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
index 68dfea1..b51eb3f 100644 (file)
@@ -3,7 +3,7 @@
 /**
  * @group HashRing
  */
-class HashRingTest extends MediaWikiTestCase {
+class HashRingTest extends PHPUnit_Framework_TestCase {
        /**
         * @covers HashRing
         */
index b707123..e96953e 100644 (file)
@@ -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
         */
index d4e5214..5bbacef 100644 (file)
@@ -3,7 +3,7 @@
 /**
  * @group IPSet
  */
-class IPSetTest extends MediaWikiTestCase {
+class IPSetTest extends PHPUnit_Framework_TestCase {
        /**
         * Provides test cases for IPSetTest::testIPSet
         *
index c8795b2..26b81cc 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 
-class JavaScriptMinifierTest extends MediaWikiTestCase {
+class JavaScriptMinifierTest extends PHPUnit_Framework_TestCase {
 
        public static function provideCases() {
                return array(
index f80f78d..ec14583 100644 (file)
@@ -3,7 +3,7 @@
  * PHP Unit tests for MWMessagePack
  * @covers MWMessagePack
  */
-class MWMessagePackTest extends MediaWikiTestCase {
+class MWMessagePackTest extends PHPUnit_Framework_TestCase {
 
        /**
         * Provides test cases for MWMessagePackTest::testMessagePack
index 1a8a1e5..de4ac4b 100644 (file)
@@ -9,7 +9,7 @@
  *
  * @group Cache
  */
-class ProcessCacheLRUTest extends MediaWikiTestCase {
+class ProcessCacheLRUTest extends PHPUnit_Framework_TestCase {
 
        /**
         * Helper to verify emptiness of a cache object.
index dc5db82..edfaf16 100644 (file)
@@ -3,7 +3,7 @@
  * PHP Unit tests for RunningStat class.
  * @covers RunningStat
  */
-class RunningStatTest extends MediaWikiTestCase {
+class RunningStatTest extends PHPUnit_Framework_TestCase {
 
        public $points = array(
                49.7168, 74.3804,  7.0115, 96.5769, 34.9458,
index 8d6f1ed..e7b3e77 100644 (file)
@@ -5,7 +5,7 @@
  * @group Xml
  * @covers XMLTypeCheck
  */
-class XmlTypeCheckTest extends MediaWikiTestCase {
+class XmlTypeCheckTest extends PHPUnit_Framework_TestCase {
        const WELL_FORMED_XML = "<root><child /></root>";
        const MAL_FORMED_XML = "<root><child /></error>";