Remove comments literally documenting unit tests being unit tests
authorThiemo Kreuz <thiemo.kreuz@wikimedia.de>
Tue, 19 Feb 2019 14:18:12 +0000 (15:18 +0100)
committerThiemo Kreuz <thiemo.kreuz@wikimedia.de>
Tue, 19 Feb 2019 14:18:12 +0000 (15:18 +0100)
The name of the test class and method as well as the @covers tags already
explain well enough which code a test is testing. Repeating this does not
provide additional information.

Change-Id: Ieec4ec131e5925d11704a11e1df46bc00c9fad9b

16 files changed:
tests/phpunit/includes/DiffHistoryBlobTest.php
tests/phpunit/includes/FauxResponseTest.php
tests/phpunit/includes/HtmlTest.php
tests/phpunit/includes/MultiHttpClientTest.php
tests/phpunit/includes/htmlform/HTMLAutoCompleteSelectFieldTest.php
tests/phpunit/includes/htmlform/HTMLCheckMatrixTest.php
tests/phpunit/includes/installer/OracleInstallerTest.php
tests/phpunit/includes/libs/IEUrlExtensionTest.php
tests/phpunit/includes/libs/ProcessCacheLRUTest.php
tests/phpunit/includes/site/DBSiteStoreTest.php
tests/phpunit/includes/site/MediaWikiSiteTest.php
tests/phpunit/includes/site/SiteExporterTest.php
tests/phpunit/includes/site/SiteImporterTest.php
tests/phpunit/includes/site/SiteListTest.php
tests/phpunit/includes/site/SiteTest.php
tests/phpunit/maintenance/backupPrefetchTest.php

index c267a30..b75862e 100644 (file)
@@ -15,7 +15,6 @@ class DiffHistoryBlobTest extends MediaWikiTestCase {
        }
 
        /**
-        * Test for DiffHistoryBlob::xdiffAdler32()
         * @dataProvider provideXdiffAdler32
         * @covers DiffHistoryBlob::xdiffAdler32
         */
index eac56fb..8085bc7 100644 (file)
@@ -1,7 +1,5 @@
 <?php
 /**
- * Tests for the FauxResponse class
- *
  * Copyright @ 2011 Alexandre Emsenhuber
  *
  * This program is free software; you can redistribute it and/or modify
index 1d687e5..999e0bb 100644 (file)
@@ -212,7 +212,6 @@ class HtmlTest extends MediaWikiTestCase {
        }
 
        /**
-        * Test for Html::expandAttributes()
         * Please note it output a string prefixed with a space!
         * @covers Html::expandAttributes
         */
index 7073b71..1c7e62d 100644 (file)
@@ -1,8 +1,6 @@
 <?php
 
 /**
- * Tests for MultiHttpClient
- *
  * The urls herein are not actually called, because we mock the return results.
  *
  * @covers MultiHttpClient
index 99bea68..eaba22d 100644 (file)
@@ -1,7 +1,5 @@
 <?php
 /**
- * Unit tests for HTMLAutoCompleteSelectField
- *
  * @covers HTMLAutoCompleteSelectField
  */
 class HTMLAutoCompleteSelectFieldTest extends MediaWikiTestCase {
index 4089470..05c567d 100644 (file)
@@ -1,7 +1,6 @@
 <?php
 
 /**
- * Unit tests for the HTMLCheckMatrix
  * @covers HTMLCheckMatrix
  */
 class HTMLCheckMatrixTest extends MediaWikiTestCase {
index 2811a9c..e255089 100644 (file)
@@ -1,8 +1,6 @@
 <?php
 
 /**
- * Tests for OracleInstaller
- *
  * @group Database
  * @group Installer
  */
index 9ec660e..e04b2e2 100644 (file)
@@ -1,8 +1,5 @@
 <?php
 
-/**
- * Tests for IEUrlExtension::findIE6Extension
- */
 class IEUrlExtensionTest extends PHPUnit\Framework\TestCase {
 
        use MediaWikiCoversValidator;
index c9fa320..8e91e70 100644 (file)
@@ -1,8 +1,6 @@
 <?php
 
 /**
- * Test for ProcessCacheLRU class.
- *
  * Note that it uses the ProcessCacheLRUTestable class which extends some
  * properties and methods visibility. That class is defined at the end of the
  * file containing this class.
index da6e9f9..14ee15b 100644 (file)
@@ -3,8 +3,6 @@
 use MediaWiki\MediaWikiServices;
 
 /**
- * Tests for the DBSiteStore class.
- *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2 of the License, or
index d198462..a9732d1 100644 (file)
@@ -1,8 +1,6 @@
 <?php
 
 /**
- * Tests for the MediaWikiSite class.
- *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2 of the License, or
index db900da..97a43f8 100644 (file)
@@ -1,8 +1,6 @@
 <?php
 
 /**
- * Tests for the SiteExporter class.
- *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2 of the License, or
index bd95a50..dbdbd6f 100644 (file)
@@ -1,8 +1,6 @@
 <?php
 
 /**
- * Tests for the SiteImporter class.
- *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2 of the License, or
index a4a171c..3c4a4bf 100644 (file)
@@ -1,8 +1,6 @@
 <?php
 
 /**
- * Tests for the SiteList class.
- *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2 of the License, or
index ac5f956..9ad61b2 100644 (file)
@@ -1,8 +1,6 @@
 <?php
 
 /**
- * Tests for the Site class.
- *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2 of the License, or
index 8824c7a..747d2bf 100644 (file)
@@ -6,8 +6,6 @@ use BaseDump;
 use MediaWikiTestCase;
 
 /**
- * Tests for BaseDump
- *
  * @group Dump
  * @covers BaseDump
  */