Use PHPUnit_Framework_TestCase in a few utils/ tests
authorChad Horohoe <chadh@wikimedia.org>
Tue, 30 Dec 2014 04:56:47 +0000 (20:56 -0800)
committerChad Horohoe <chadh@wikimedia.org>
Tue, 30 Dec 2014 04:56:47 +0000 (20:56 -0800)
IPTest, StringUtilsTest and ZipDirectoryReaderTest do not
need the extra overhead

Change-Id: Ic05afb1a3a094a57383d483f4e50bd1ed9a183e2

tests/phpunit/includes/utils/IPTest.php
tests/phpunit/includes/utils/StringUtilsTest.php
tests/phpunit/includes/utils/ZipDirectoryReaderTest.php

index ebe347f..09c1587 100644 (file)
@@ -9,7 +9,7 @@
  * dataprovider.
  */
 
-class IPTest extends MediaWikiTestCase {
+class IPTest extends PHPUnit_Framework_TestCase {
        /**
         *  not sure it should be tested with boolean false. hashar 20100924
         * @covers IP::isIPAddress
index 0fdb8e1..7c24fae 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 
-class StringUtilsTest extends MediaWikiTestCase {
+class StringUtilsTest extends PHPUnit_Framework_TestCase {
 
        /**
         * This tests StringUtils::isUtf8 whenever we have the mbstring extension
index 34ffb53..05d07d4 100644 (file)
@@ -4,7 +4,7 @@
  * @covers ZipDirectoryReader
  * NOTE: this test is more like an integration test than a unit test
  */
-class ZipDirectoryReaderTest extends MediaWikiTestCase {
+class ZipDirectoryReaderTest extends PHPUnit_Framework_TestCase {
        protected $zipDir;
        protected $entries;