Add @coversNothing for left over tests and enable sniff
authorUmherirrender <umherirrender_de.wp@web.de>
Fri, 1 Feb 2019 19:46:59 +0000 (20:46 +0100)
committerKunal Mehta <legoktm@member.fsf.org>
Sun, 3 Feb 2019 05:53:40 +0000 (21:53 -0800)
LessFileCompilationTest is checking less files for valid syntax
doc test is checking xml file for valid syntax
MediaWikiTest is testing a complex situation with many functions involved
SideBarTest is self checking, needs no coverage
structure tests not covers functions, there are covers global structures

Change-Id: I3ac65db561cae0be8418aa9c830e7a9f46ad11fe

.phpcs.xml
tests/phpunit/LessFileCompilationTest.php
tests/phpunit/docs/ExportDemoTest.php
tests/phpunit/includes/MediaWikiTest.php
tests/phpunit/skins/SideBarTest.php
tests/phpunit/structure/ApiStructureTest.php
tests/phpunit/structure/DatabaseIntegrationTest.php
tests/phpunit/structure/SpecialPageFatalTest.php

index c0154c7..0940e7f 100644 (file)
@@ -11,7 +11,6 @@
                <exclude name="MediaWiki.Commenting.IllegalSingleLineComment.IllegalSingleLineCommentStart" />
                <exclude name="MediaWiki.Commenting.IllegalSingleLineComment.IllegalSingleLineCommentEnd" />
                <exclude name="MediaWiki.ControlStructures.AssignmentInControlStructures.AssignmentInControlStructures" />
-               <exclude name="MediaWiki.Commenting.MissingCovers.MissingCovers" />
                <exclude name="MediaWiki.NamingConventions.LowerCamelFunctionsName.FunctionName" />
                <exclude name="MediaWiki.Usage.DbrQueryUsage.DbrQueryFound" />
                <exclude name="MediaWiki.Usage.ForbiddenFunctions.passthru" />
index 5e1f1a9..1f1c395 100644 (file)
@@ -5,6 +5,7 @@
  *
  * @see https://github.com/sebastianbergmann/phpunit/blob/master/src/Extensions/PhptTestCase.php
  * @author Sam Smith <samsmith@wikimedia.org>
+ * @coversNothing
  */
 class LessFileCompilationTest extends ResourceLoaderTestCase {
 
index 8288cae..ec806ae 100644 (file)
@@ -6,6 +6,7 @@
  *
  * @group Dump
  * @group large
+ * @coversNothing
  */
 class ExportDemoTest extends DumpTestCase {
 
index 916a6eb..77bbc07 100644 (file)
@@ -187,6 +187,7 @@ class MediaWikiTest extends MediaWikiTestCase {
 
        /**
         * Test a post-send job can not set cookies (T191537).
+        * @coversNothing
         */
        public function testPostSendJobDoesNotSetCookie() {
                // Prevent updates from running
index ec85bb0..22ca60f 100644 (file)
@@ -170,6 +170,7 @@ class SideBarTest extends MediaWikiLangTestCase {
 
        /**
         * Simple test to verify our helper assertAttribs() is functional
+        * @coversNothing
         */
        public function testTestAttributesAssertionHelper() {
                $this->setMwGlobals( [
index 95d3b60..4c64291 100644 (file)
@@ -10,6 +10,7 @@ use Wikimedia\TestingAccessWrapper;
  * - do not have inconsistencies in the parameter definitions
  *
  * @group API
+ * @coversNothing
  */
 class ApiStructureTest extends MediaWikiTestCase {
 
index b0c1c8f..9c0a73d 100644 (file)
@@ -5,6 +5,7 @@ use Wikimedia\Rdbms\Database;
 
 /**
  * @group Database
+ * @coversNothing
  */
 class DatabaseIntegrationTest extends MediaWikiTestCase {
        /**
index a6bc5a7..c08fe2f 100644 (file)
@@ -11,6 +11,7 @@ use MediaWiki\MediaWikiServices;
  *
  * @since 1.32
  * @author Addshore
+ * @coversNothing
  */
 class SpecialPageFatalTest extends MediaWikiTestCase {
        public function provideSpecialPages() {