Exempt structure tests from @covers checks
authorGergő Tisza <tgr.huwiki@gmail.com>
Sat, 2 Mar 2019 03:06:54 +0000 (19:06 -0800)
committerLegoktm <legoktm@member.fsf.org>
Tue, 11 Jun 2019 21:40:14 +0000 (21:40 +0000)
commit45d4e8d13a250885be42876cda3c4a836b183c59
treea3ea6d27976769332422dbed534b63bc6492310a
parent715f040a5f1e7ae7fbc9f0a4729676d4ad597570
Exempt structure tests from @covers checks

@covers does not make any sense for structure tests, which either
do not cover any PHP lines (they test things like configuration or
messages), or cover lines which cannot be determined at the time
of writing the tests (e.g. they cover all classes implementing a
certain interface). Requiring @coversNothing to be manually added
for all of them is a waste of developer time.

tests/phpunit/suite.xml has forceCoversAnnotation=true so removing
the annotations will not change test coverage, these files will
still be skipped.

Change-Id: I27cb58e92341b9b1a76f109701f5bc843adbaa9b
12 files changed:
.phpcs.xml
tests/phpunit/structure/ApiPrefixUniquenessTest.php
tests/phpunit/structure/ApiStructureTest.php
tests/phpunit/structure/AutoLoaderStructureTest.php
tests/phpunit/structure/AvailableRightsTest.php
tests/phpunit/structure/ContentHandlerSanityTest.php
tests/phpunit/structure/DatabaseIntegrationTest.php
tests/phpunit/structure/ExtensionJsonValidationTest.php
tests/phpunit/structure/PasswordPolicyStructureTest.php
tests/phpunit/structure/ResourcesTest.php
tests/phpunit/structure/SpecialPageFatalTest.php
tests/phpunit/structure/StructureTest.php