aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit
diff options
context:
space:
mode:
Diffstat (limited to 'tests/phpunit')
-rw-r--r--tests/phpunit/includes/AutoLoaderTest.php2
-rw-r--r--tests/phpunit/includes/Category/CategoryTest.php2
-rw-r--r--tests/phpunit/includes/Category/TrackingCategoriesTest.php2
-rw-r--r--tests/phpunit/includes/ExternalLinks/LinkFilterTest.php2
-rw-r--r--tests/phpunit/includes/Html/HtmlTest.php2
-rw-r--r--tests/phpunit/includes/MediaWikiServicesTest.php2
-rw-r--r--tests/phpunit/includes/ParamValidator/TypeDef/TagsDefTest.php2
-rw-r--r--tests/phpunit/includes/Request/ContentSecurityPolicyTest.php34
-rw-r--r--tests/phpunit/includes/Request/FauxRequestTest.php66
-rw-r--r--tests/phpunit/includes/Request/WebResponseTest.php2
-rw-r--r--tests/phpunit/includes/SiteStats/SiteStatsTest.php4
-rw-r--r--tests/phpunit/includes/Status/StatusFormatterTest.php2
-rw-r--r--tests/phpunit/includes/Status/StatusTest.php2
-rw-r--r--tests/phpunit/includes/Storage/DerivedPageDataUpdaterTest.php4
-rw-r--r--tests/phpunit/includes/Storage/NameTableStoreFactoryTest.php2
-rw-r--r--tests/phpunit/includes/Storage/PageUpdaterFactoryIntegrationTest.php4
-rw-r--r--tests/phpunit/includes/WikiMap/WikiMapTest.php18
-rw-r--r--tests/phpunit/includes/actions/ActionEntryPointTest.php2
-rw-r--r--tests/phpunit/includes/actions/ActionTest.php2
-rw-r--r--tests/phpunit/includes/actions/RollbackActionTest.php2
-rw-r--r--tests/phpunit/includes/actions/WatchActionTest.php26
-rw-r--r--tests/phpunit/includes/api/ApiAcquireTempUserNameTest.php2
-rw-r--r--tests/phpunit/includes/api/ApiBaseTest.php4
-rw-r--r--tests/phpunit/includes/api/ApiBlockInfoTraitTest.php2
-rw-r--r--tests/phpunit/includes/api/ApiBlockTest.php2
-rw-r--r--tests/phpunit/includes/api/ApiCSPReportTest.php2
-rw-r--r--tests/phpunit/includes/api/ApiChangeContentModelTest.php2
-rw-r--r--tests/phpunit/includes/api/ApiCheckTokenTest.php2
-rw-r--r--tests/phpunit/includes/api/ApiClearHasMsgTest.php2
-rw-r--r--tests/phpunit/includes/api/ApiComparePagesTest.php2
-rw-r--r--tests/phpunit/includes/api/ApiContinuationManagerTest.php2
-rw-r--r--tests/phpunit/includes/api/ApiCreateTempUserTraitTest.php2
-rw-r--r--tests/phpunit/includes/api/ApiDeleteTest.php2
-rw-r--r--tests/phpunit/includes/api/ApiDisabledTest.php2
-rw-r--r--tests/phpunit/includes/api/ApiEditPageTest.php2
-rw-r--r--tests/phpunit/includes/api/ApiErrorFormatterTest.php24
-rw-r--r--tests/phpunit/includes/api/ApiLoginTest.php2
-rw-r--r--tests/phpunit/includes/api/ApiLogoutTest.php2
-rw-r--r--tests/phpunit/includes/api/ApiMainTest.php2
-rw-r--r--tests/phpunit/includes/api/ApiMessageTest.php14
-rw-r--r--tests/phpunit/includes/api/ApiMoveTest.php2
-rw-r--r--tests/phpunit/includes/api/ApiOpenSearchTest.php2
-rw-r--r--tests/phpunit/includes/api/ApiOptionsTest.php2
-rw-r--r--tests/phpunit/includes/api/ApiPageSetTest.php2
-rw-r--r--tests/phpunit/includes/api/ApiParseTest.php2
-rw-r--r--tests/phpunit/includes/api/ApiProtectTest.php4
-rw-r--r--tests/phpunit/includes/api/ApiPurgeTest.php2
-rw-r--r--tests/phpunit/includes/api/ApiResultTest.php14
-rw-r--r--tests/phpunit/includes/api/ApiRevisionDeleteTest.php2
-rw-r--r--tests/phpunit/includes/api/ApiRollbackTest.php2
-rw-r--r--tests/phpunit/includes/api/ApiSetNotificationTimestampIntegrationTest.php2
-rw-r--r--tests/phpunit/includes/api/ApiStashEditTest.php2
-rw-r--r--tests/phpunit/includes/api/ApiUnblockTest.php2
-rw-r--r--tests/phpunit/includes/api/ApiUndeleteTest.php4
-rw-r--r--tests/phpunit/includes/api/ApiUploadTest.php2
-rw-r--r--tests/phpunit/includes/api/ApiUsageExceptionTest.php2
-rw-r--r--tests/phpunit/includes/api/ApiUserrightsTest.php2
-rw-r--r--tests/phpunit/includes/api/ApiWatchTest.php2
-rw-r--r--tests/phpunit/includes/api/format/ApiFormatBaseTest.php2
-rw-r--r--tests/phpunit/includes/api/format/ApiFormatJsonTest.php2
-rw-r--r--tests/phpunit/includes/api/format/ApiFormatNoneTest.php2
-rw-r--r--tests/phpunit/includes/api/format/ApiFormatPhpTest.php2
-rw-r--r--tests/phpunit/includes/api/format/ApiFormatRawTest.php2
-rw-r--r--tests/phpunit/includes/api/format/ApiFormatXmlTest.php2
-rw-r--r--tests/phpunit/includes/api/query/ApiQueryAllPagesTest.php2
-rw-r--r--tests/phpunit/includes/api/query/ApiQueryAllRevisionsTest.php2
-rw-r--r--tests/phpunit/includes/api/query/ApiQueryAllUsersTest.php2
-rw-r--r--tests/phpunit/includes/api/query/ApiQueryBasicTest.php2
-rw-r--r--tests/phpunit/includes/api/query/ApiQueryBlockInfoTraitTest.php2
-rw-r--r--tests/phpunit/includes/api/query/ApiQueryBlocksTest.php2
-rw-r--r--tests/phpunit/includes/api/query/ApiQueryContinue2Test.php2
-rw-r--r--tests/phpunit/includes/api/query/ApiQueryContinueTest.php2
-rw-r--r--tests/phpunit/includes/api/query/ApiQueryDisabledTest.php2
-rw-r--r--tests/phpunit/includes/api/query/ApiQueryImageInfoTest.php2
-rw-r--r--tests/phpunit/includes/api/query/ApiQueryInfoTest.php2
-rw-r--r--tests/phpunit/includes/api/query/ApiQueryLanguageinfoTest.php2
-rw-r--r--tests/phpunit/includes/api/query/ApiQueryLogEventsTest.php2
-rw-r--r--tests/phpunit/includes/api/query/ApiQueryPrefixSearchTest.php2
-rw-r--r--tests/phpunit/includes/api/query/ApiQueryRecentChangesIntegrationTest.php2
-rw-r--r--tests/phpunit/includes/api/query/ApiQueryRevisionsTest.php2
-rw-r--r--tests/phpunit/includes/api/query/ApiQuerySearchTest.php2
-rw-r--r--tests/phpunit/includes/api/query/ApiQuerySiteinfoTest.php2
-rw-r--r--tests/phpunit/includes/api/query/ApiQueryTest.php2
-rw-r--r--tests/phpunit/includes/api/query/ApiQueryTokensTest.php2
-rw-r--r--tests/phpunit/includes/api/query/ApiQueryUserContribsTest.php2
-rw-r--r--tests/phpunit/includes/api/query/ApiQueryUserInfoTest.php4
-rw-r--r--tests/phpunit/includes/api/query/ApiQueryWatchlistIntegrationTest.php2
-rw-r--r--tests/phpunit/includes/api/query/ApiQueryWatchlistRawIntegrationTest.php2
-rw-r--r--tests/phpunit/includes/cache/BacklinkCacheTest.php10
-rw-r--r--tests/phpunit/includes/cache/GenderCacheTest.php6
-rw-r--r--tests/phpunit/includes/cache/LinkBatchTest.php22
-rw-r--r--tests/phpunit/includes/cache/LinkCacheTest.php54
-rw-r--r--tests/phpunit/includes/changes/CategoryMembershipChangeTest.php2
-rw-r--r--tests/phpunit/includes/changes/EnhancedChangesListTest.php2
-rw-r--r--tests/phpunit/includes/changes/OldChangesListTest.php2
-rw-r--r--tests/phpunit/includes/changes/RCCacheEntryFactoryTest.php2
-rw-r--r--tests/phpunit/includes/changes/RecentChangeTest.php66
-rw-r--r--tests/phpunit/includes/changetags/ChangeTagsTest.php4
-rw-r--r--tests/phpunit/includes/collation/CollationTest.php32
-rw-r--r--tests/phpunit/includes/collation/CustomUppercaseCollationTest.php2
-rw-r--r--tests/phpunit/includes/collation/RemoteIcuCollationTest.php2
-rw-r--r--tests/phpunit/includes/composer/MediaWikiVersionFetcherTest.php2
-rw-r--r--tests/phpunit/includes/content/ContentHandlerTest.php44
-rw-r--r--tests/phpunit/includes/content/ContentModelChangeTest.php18
-rw-r--r--tests/phpunit/includes/content/CssContentHandlerTest.php2
-rw-r--r--tests/phpunit/includes/content/CssContentTest.php8
-rw-r--r--tests/phpunit/includes/content/FallbackContentHandlerTest.php4
-rw-r--r--tests/phpunit/includes/content/FallbackContentTest.php34
-rw-r--r--tests/phpunit/includes/content/JavaScriptContentHandlerTest.php2
-rw-r--r--tests/phpunit/includes/content/JavaScriptContentTest.php12
-rw-r--r--tests/phpunit/includes/content/JsonContentHandlerIntegrationTest.php4
-rw-r--r--tests/phpunit/includes/content/MessageContentTest.php2
-rw-r--r--tests/phpunit/includes/content/TextContentHandlerIntegrationTest.php2
-rw-r--r--tests/phpunit/includes/content/TextContentTest.php36
-rw-r--r--tests/phpunit/includes/content/Transform/ContentTransformerTest.php4
-rw-r--r--tests/phpunit/includes/content/WikitextContentHandlerIntegrationTest.php6
-rw-r--r--tests/phpunit/includes/content/WikitextContentHandlerTest.php10
-rw-r--r--tests/phpunit/includes/content/WikitextContentTest.php18
-rw-r--r--tests/phpunit/includes/content/WikitextStructureTest.php2
-rw-r--r--tests/phpunit/includes/debug/DeprecationHelperTest.php2
-rw-r--r--tests/phpunit/includes/debug/MWDebugTest.php2
-rw-r--r--tests/phpunit/includes/deferred/LinksUpdateTest.php26
-rw-r--r--tests/phpunit/includes/deferred/RefreshSecondaryDataUpdateTest.php2
-rw-r--r--tests/phpunit/includes/deferred/SiteStatsUpdateTest.php4
-rw-r--r--tests/phpunit/includes/diff/DifferenceEngineSlotDiffRendererTest.php2
-rw-r--r--tests/phpunit/includes/diff/DifferenceEngineTest.php2
-rw-r--r--tests/phpunit/includes/diff/SlotDiffRendererTest.php2
-rw-r--r--tests/phpunit/includes/diff/TextSlotDiffRendererTest.php2
-rw-r--r--tests/phpunit/includes/editpage/EditPageConstraintsTest.php2
-rw-r--r--tests/phpunit/includes/editpage/EditPageTest.php24
-rw-r--r--tests/phpunit/includes/exception/BadTitleErrorTest.php2
-rw-r--r--tests/phpunit/includes/exception/MWExceptionTest.php6
-rw-r--r--tests/phpunit/includes/exception/PermissionsErrorTest.php2
-rw-r--r--tests/phpunit/includes/exception/ReadOnlyErrorTest.php2
-rw-r--r--tests/phpunit/includes/exception/ThrottledErrorTest.php2
-rw-r--r--tests/phpunit/includes/exception/UserBlockedErrorTest.php2
-rw-r--r--tests/phpunit/includes/exception/UserNotLoggedInTest.php2
-rw-r--r--tests/phpunit/includes/export/ExportTest.php4
-rw-r--r--tests/phpunit/includes/externalstore/ExternalStoreAccessTest.php10
-rw-r--r--tests/phpunit/includes/externalstore/ExternalStoreFactoryTest.php14
-rw-r--r--tests/phpunit/includes/externalstore/ExternalStoreTest.php4
-rw-r--r--tests/phpunit/includes/filebackend/FileBackendGroupIntegrationTest.php2
-rw-r--r--tests/phpunit/includes/filebackend/FileBackendIntegrationTest.php64
-rw-r--r--tests/phpunit/includes/filebackend/SwiftFileBackendTest.php8
-rw-r--r--tests/phpunit/includes/filebackend/lockmanager/LockManagerGroupIntegrationTest.php2
-rw-r--r--tests/phpunit/includes/filerepo/FileBackendDBRepoWrapperTest.php4
-rw-r--r--tests/phpunit/includes/filerepo/FileRepoTest.php2
-rw-r--r--tests/phpunit/includes/filerepo/LocalRepoTest.php4
-rw-r--r--tests/phpunit/includes/filerepo/MigrateFileRepoLayoutTest.php2
-rw-r--r--tests/phpunit/includes/filerepo/RepoGroupTest.php2
-rw-r--r--tests/phpunit/includes/filerepo/StoreBatchTest.php2
-rw-r--r--tests/phpunit/includes/filerepo/file/FileTest.php18
-rw-r--r--tests/phpunit/includes/filerepo/file/LocalFileTest.php54
-rw-r--r--tests/phpunit/includes/htmlform/HTMLAutoCompleteSelectFieldTest.php2
-rw-r--r--tests/phpunit/includes/htmlform/HTMLFormFieldTest.php16
-rw-r--r--tests/phpunit/includes/htmlform/HTMLFormTest.php2
-rw-r--r--tests/phpunit/includes/http/GuzzleHttpRequestTest.php4
-rw-r--r--tests/phpunit/includes/http/MWHttpRequestTest.php4
-rw-r--r--tests/phpunit/includes/import/ImportExportTest.php4
-rw-r--r--tests/phpunit/includes/import/ImportFailureTest.php2
-rw-r--r--tests/phpunit/includes/import/ImportLinkCacheIntegrationTest.php4
-rw-r--r--tests/phpunit/includes/import/ImportTest.php8
-rw-r--r--tests/phpunit/includes/import/ImportableOldRevisionImporterTest.php2
-rw-r--r--tests/phpunit/includes/interwiki/ClassicInterwikiLookupTest.php2
-rw-r--r--tests/phpunit/includes/interwiki/InterwikiTest.php2
-rw-r--r--tests/phpunit/includes/jobqueue/JobFactoryTest.php2
-rw-r--r--tests/phpunit/includes/jobqueue/JobQueueMemoryTest.php2
-rw-r--r--tests/phpunit/includes/jobqueue/JobQueueTest.php2
-rw-r--r--tests/phpunit/includes/jobqueue/JobRunnerTest.php2
-rw-r--r--tests/phpunit/includes/jobqueue/JobTest.php2
-rw-r--r--tests/phpunit/includes/jobqueue/RefreshLinksPartitionTest.php2
-rw-r--r--tests/phpunit/includes/jobqueue/jobs/CategoryMembershipChangeJobTest.php2
-rw-r--r--tests/phpunit/includes/jobqueue/jobs/ClearUserWatchlistJobTest.php2
-rw-r--r--tests/phpunit/includes/jobqueue/jobs/ParsoidCachePrewarmJobTest.php8
-rw-r--r--tests/phpunit/includes/jobqueue/jobs/RefreshLinksJobTest.php2
-rw-r--r--tests/phpunit/includes/jobqueue/jobs/UserEditCountInitJobTest.php2
-rw-r--r--tests/phpunit/includes/language/ConverterRuleTest.php2
-rw-r--r--tests/phpunit/includes/language/LanguageConverterFactoryTest.php2
-rw-r--r--tests/phpunit/includes/language/LanguageConverterIntegrationTest.php2
-rw-r--r--tests/phpunit/includes/language/LanguageConverterTest.php28
-rw-r--r--tests/phpunit/includes/language/LanguageFallbackIntegrationTest.php2
-rw-r--r--tests/phpunit/includes/language/LanguageIntegrationTest.php80
-rw-r--r--tests/phpunit/includes/language/LocalisationCacheTest.php2
-rw-r--r--tests/phpunit/includes/language/MessageCacheTest.php2
-rw-r--r--tests/phpunit/includes/language/MessageTest.php12
-rw-r--r--tests/phpunit/includes/language/TimeAdjustTest.php2
-rw-r--r--tests/phpunit/includes/language/converters/BanConverterTest.php10
-rw-r--r--tests/phpunit/includes/language/converters/CrhConverterTest.php8
-rw-r--r--tests/phpunit/includes/language/converters/GanConverterTest.php4
-rw-r--r--tests/phpunit/includes/language/converters/IuConverterTest.php4
-rw-r--r--tests/phpunit/includes/language/converters/KuConverterTest.php4
-rw-r--r--tests/phpunit/includes/language/converters/LanguageConverterConversionTest.php2
-rw-r--r--tests/phpunit/includes/language/converters/ShConverterTest.php6
-rw-r--r--tests/phpunit/includes/language/converters/ShiConverterTest.php4
-rw-r--r--tests/phpunit/includes/language/converters/SrConverterTest.php16
-rw-r--r--tests/phpunit/includes/language/converters/TgConverterTest.php4
-rw-r--r--tests/phpunit/includes/language/converters/TlyConverterTest.php6
-rw-r--r--tests/phpunit/includes/language/converters/UzConverterTest.php6
-rw-r--r--tests/phpunit/includes/language/converters/WuuConverterTest.php4
-rw-r--r--tests/phpunit/includes/language/converters/ZhConverterTest.php4
-rw-r--r--tests/phpunit/includes/languages/LanguageAmTest.php4
-rw-r--r--tests/phpunit/includes/languages/LanguageArTest.php14
-rw-r--r--tests/phpunit/includes/languages/LanguageArqTest.php2
-rw-r--r--tests/phpunit/includes/languages/LanguageBeTest.php4
-rw-r--r--tests/phpunit/includes/languages/LanguageBe_taraskTest.php14
-rw-r--r--tests/phpunit/includes/languages/LanguageBhoTest.php4
-rw-r--r--tests/phpunit/includes/languages/LanguageBsTest.php6
-rw-r--r--tests/phpunit/includes/languages/LanguageCsTest.php4
-rw-r--r--tests/phpunit/includes/languages/LanguageCuTest.php6
-rw-r--r--tests/phpunit/includes/languages/LanguageCyTest.php4
-rw-r--r--tests/phpunit/includes/languages/LanguageDsbTest.php6
-rw-r--r--tests/phpunit/includes/languages/LanguageFrTest.php4
-rw-r--r--tests/phpunit/includes/languages/LanguageGaTest.php6
-rw-r--r--tests/phpunit/includes/languages/LanguageGdTest.php4
-rw-r--r--tests/phpunit/includes/languages/LanguageGvTest.php4
-rw-r--r--tests/phpunit/includes/languages/LanguageHeTest.php10
-rw-r--r--tests/phpunit/includes/languages/LanguageHiTest.php4
-rw-r--r--tests/phpunit/includes/languages/LanguageHrTest.php4
-rw-r--r--tests/phpunit/includes/languages/LanguageHsbTest.php6
-rw-r--r--tests/phpunit/includes/languages/LanguageHuTest.php6
-rw-r--r--tests/phpunit/includes/languages/LanguageHyTest.php6
-rw-r--r--tests/phpunit/includes/languages/LanguageKaTest.php2
-rw-r--r--tests/phpunit/includes/languages/LanguageKkTest.php2
-rw-r--r--tests/phpunit/includes/languages/LanguageKshTest.php6
-rw-r--r--tests/phpunit/includes/languages/LanguageLnTest.php4
-rw-r--r--tests/phpunit/includes/languages/LanguageLtTest.php6
-rw-r--r--tests/phpunit/includes/languages/LanguageLvTest.php4
-rw-r--r--tests/phpunit/includes/languages/LanguageMgTest.php4
-rw-r--r--tests/phpunit/includes/languages/LanguageMkTest.php4
-rw-r--r--tests/phpunit/includes/languages/LanguageMlTest.php8
-rw-r--r--tests/phpunit/includes/languages/LanguageMoTest.php4
-rw-r--r--tests/phpunit/includes/languages/LanguageMtTest.php6
-rw-r--r--tests/phpunit/includes/languages/LanguageNlTest.php2
-rw-r--r--tests/phpunit/includes/languages/LanguageNsoTest.php4
-rw-r--r--tests/phpunit/includes/languages/LanguagePlTest.php8
-rw-r--r--tests/phpunit/includes/languages/LanguageRoTest.php4
-rw-r--r--tests/phpunit/includes/languages/LanguageRuTest.php10
-rw-r--r--tests/phpunit/includes/languages/LanguageSeTest.php6
-rw-r--r--tests/phpunit/includes/languages/LanguageSgsTest.php6
-rw-r--r--tests/phpunit/includes/languages/LanguageShTest.php4
-rw-r--r--tests/phpunit/includes/languages/LanguageSkTest.php4
-rw-r--r--tests/phpunit/includes/languages/LanguageSlTest.php6
-rw-r--r--tests/phpunit/includes/languages/LanguageSmaTest.php6
-rw-r--r--tests/phpunit/includes/languages/LanguageSrTest.php6
-rw-r--r--tests/phpunit/includes/languages/LanguageTiTest.php4
-rw-r--r--tests/phpunit/includes/languages/LanguageTlTest.php4
-rw-r--r--tests/phpunit/includes/languages/LanguageTrTest.php6
-rw-r--r--tests/phpunit/includes/languages/LanguageTyvTest.php2
-rw-r--r--tests/phpunit/includes/languages/LanguageUkTest.php10
-rw-r--r--tests/phpunit/includes/languages/LanguageWaTest.php10
-rw-r--r--tests/phpunit/includes/languages/LanguageZhTest.php2
-rw-r--r--tests/phpunit/includes/libs/http/MultiHttpClientTest.php2
-rw-r--r--tests/phpunit/includes/libs/objectcache/APCUBagOStuffTest.php2
-rw-r--r--tests/phpunit/includes/libs/objectcache/BagOStuffTestBase.php4
-rw-r--r--tests/phpunit/includes/libs/objectcache/HashBagOStuffIntegrationTest.php2
-rw-r--r--tests/phpunit/includes/libs/objectcache/MemcachedPeclBagOStuffIntegrationTest.php2
-rw-r--r--tests/phpunit/includes/libs/objectcache/MemcachedPhpBagOStuffIntegrationTest.php2
-rw-r--r--tests/phpunit/includes/libs/objectcache/MultiWriteBagOStuffTest.php2
-rw-r--r--tests/phpunit/includes/libs/objectcache/RESTBagOStuffIntegrationTest.php2
-rw-r--r--tests/phpunit/includes/libs/objectcache/RedisBagOStuffIntegrationTest.php2
-rw-r--r--tests/phpunit/includes/libs/objectcache/WinCacheBagOStuffIntegrationTest.php2
-rw-r--r--tests/phpunit/includes/linkeddata/PageDataRequestHandlerTest.php2
-rw-r--r--tests/phpunit/includes/linker/LinkRendererTest.php2
-rw-r--r--tests/phpunit/includes/linker/LinkTargetStoreTest.php2
-rw-r--r--tests/phpunit/includes/linker/LinkerTest.php26
-rw-r--r--tests/phpunit/includes/logging/BlockLogFormatterTest.php2
-rw-r--r--tests/phpunit/includes/logging/ContentModelLogFormatterTest.php2
-rw-r--r--tests/phpunit/includes/logging/DatabaseLogEntryTest.php6
-rw-r--r--tests/phpunit/includes/logging/DeleteLogFormatterTest.php2
-rw-r--r--tests/phpunit/includes/logging/ImportLogFormatterTest.php2
-rw-r--r--tests/phpunit/includes/logging/LogFormatterTest.php80
-rw-r--r--tests/phpunit/includes/logging/MergeLogFormatterTest.php2
-rw-r--r--tests/phpunit/includes/logging/MoveLogFormatterTest.php2
-rw-r--r--tests/phpunit/includes/logging/NewUsersLogFormatterTest.php2
-rw-r--r--tests/phpunit/includes/logging/PageLangLogFormatterTest.php2
-rw-r--r--tests/phpunit/includes/logging/PatrolLogFormatterTest.php2
-rw-r--r--tests/phpunit/includes/logging/ProtectLogFormatterTest.php4
-rw-r--r--tests/phpunit/includes/logging/RightsLogFormatterTest.php2
-rw-r--r--tests/phpunit/includes/logging/UploadLogFormatterTest.php2
-rw-r--r--tests/phpunit/includes/mail/EmailNotificationTest.php2
-rw-r--r--tests/phpunit/includes/mail/MailAddressTest.php10
-rw-r--r--tests/phpunit/includes/media/BitmapMetadataHandlerTest.php18
-rw-r--r--tests/phpunit/includes/media/BitmapScalingTest.php8
-rw-r--r--tests/phpunit/includes/media/BmpHandlerTest.php8
-rw-r--r--tests/phpunit/includes/media/DjVuTest.php2
-rw-r--r--tests/phpunit/includes/media/ExifBitmapTest.php2
-rw-r--r--tests/phpunit/includes/media/ExifRotationTest.php2
-rw-r--r--tests/phpunit/includes/media/ExifTest.php2
-rw-r--r--tests/phpunit/includes/media/FormatMetadataTest.php8
-rw-r--r--tests/phpunit/includes/media/GIFHandlerTest.php14
-rw-r--r--tests/phpunit/includes/media/Jpeg2000HandlerTest.php2
-rw-r--r--tests/phpunit/includes/media/JpegMetadataExtractorTest.php2
-rw-r--r--tests/phpunit/includes/media/JpegPixelFormatTest.php2
-rw-r--r--tests/phpunit/includes/media/JpegTest.php6
-rw-r--r--tests/phpunit/includes/media/MediaHandlerIntegrationTest.php4
-rw-r--r--tests/phpunit/includes/media/PNGHandlerTest.php14
-rw-r--r--tests/phpunit/includes/media/PNGMetadataExtractorTest.php2
-rw-r--r--tests/phpunit/includes/media/SVGReaderTest.php2
-rw-r--r--tests/phpunit/includes/media/SvgHandlerTest.php10
-rw-r--r--tests/phpunit/includes/media/TiffTest.php4
-rw-r--r--tests/phpunit/includes/media/WebPHandlerTest.php2
-rw-r--r--tests/phpunit/includes/media/XCFHandlerTest.php4
-rw-r--r--tests/phpunit/includes/objectcache/ObjectCacheTest.php2
-rw-r--r--tests/phpunit/includes/objectcache/SqlBagOStuffIntegrationTest.php2
-rw-r--r--tests/phpunit/includes/objectcache/SqlBagOStuffMultiPrimaryIntegrationTest.php2
-rw-r--r--tests/phpunit/includes/objectcache/SqlBagOStuffServerArrayTest.php2
-rw-r--r--tests/phpunit/includes/page/ArticleTablesTest.php4
-rw-r--r--tests/phpunit/includes/page/ArticleTest.php12
-rw-r--r--tests/phpunit/includes/page/ArticleViewTest.php8
-rw-r--r--tests/phpunit/includes/page/ImagePage404Test.php2
-rw-r--r--tests/phpunit/includes/page/ImagePageTest.php4
-rw-r--r--tests/phpunit/includes/page/MergeHistoryTest.php16
-rw-r--r--tests/phpunit/includes/page/MovePageTest.php18
-rw-r--r--tests/phpunit/includes/page/PageArchiveTest.php12
-rw-r--r--tests/phpunit/includes/page/WikiCategoryPageTest.php8
-rw-r--r--tests/phpunit/includes/page/WikiFilePageTest.php2
-rw-r--r--tests/phpunit/includes/page/WikiPageDbTest.php4
-rw-r--r--tests/phpunit/includes/parser/CacheTimeTest.php2
-rw-r--r--tests/phpunit/includes/parser/CoreParserFunctionsTest.php2
-rw-r--r--tests/phpunit/includes/parser/ExtraParserTest.php28
-rw-r--r--tests/phpunit/includes/parser/LinkHolderArrayIntegrationTest.php6
-rw-r--r--tests/phpunit/includes/parser/MagicVariableTest.php2
-rw-r--r--tests/phpunit/includes/parser/PageBundleJsonTraitTest.php2
-rw-r--r--tests/phpunit/includes/parser/ParserCacheTest.php86
-rw-r--r--tests/phpunit/includes/parser/ParserMethodsTest.php6
-rw-r--r--tests/phpunit/includes/parser/ParserOptionsTest.php2
-rw-r--r--tests/phpunit/includes/parser/ParserOutputTest.php2
-rw-r--r--tests/phpunit/includes/parser/ParserPreloadTest.php26
-rw-r--r--tests/phpunit/includes/parser/ParserTest.php16
-rw-r--r--tests/phpunit/includes/parser/PreprocessorTest.php24
-rw-r--r--tests/phpunit/includes/parser/StripStateTest.php2
-rw-r--r--tests/phpunit/includes/parser/TagHooksTest.php28
-rw-r--r--tests/phpunit/includes/password/UserPasswordPolicyTest.php2
-rw-r--r--tests/phpunit/includes/preferences/DefaultPreferencesFactoryTest.php2
-rw-r--r--tests/phpunit/includes/preferences/SignatureValidatorTest.php8
-rw-r--r--tests/phpunit/includes/rcfeed/RCFeedIntegrationTest.php10
-rw-r--r--tests/phpunit/includes/registration/ExtensionRegistrationTest.php2
-rw-r--r--tests/phpunit/includes/search/ParserOutputSearchDataExtractorTest.php2
-rw-r--r--tests/phpunit/includes/search/PrefixSearchTest.php12
-rw-r--r--tests/phpunit/includes/search/SearchEnginePrefixTest.php8
-rw-r--r--tests/phpunit/includes/search/SearchEngineTest.php8
-rw-r--r--tests/phpunit/includes/search/SearchHighlighterTest.php2
-rw-r--r--tests/phpunit/includes/search/SearchNearMatchResultSetTest.php4
-rw-r--r--tests/phpunit/includes/search/SearchResultSetTest.php18
-rw-r--r--tests/phpunit/includes/search/SearchResultTraitTest.php8
-rw-r--r--tests/phpunit/includes/session/BotPasswordSessionProviderTest.php2
-rw-r--r--tests/phpunit/includes/session/ImmutableSessionProviderWithCookieTest.php2
-rw-r--r--tests/phpunit/includes/session/PHPSessionHandlerTest.php2
-rw-r--r--tests/phpunit/includes/session/SessionBackendTest.php2
-rw-r--r--tests/phpunit/includes/session/SessionInfoTest.php2
-rw-r--r--tests/phpunit/includes/session/SessionManagerTest.php2
-rw-r--r--tests/phpunit/includes/session/SessionProviderTest.php2
-rw-r--r--tests/phpunit/includes/skins/SideBarTest.php4
-rw-r--r--tests/phpunit/includes/skins/SkinMustacheTest.php12
-rw-r--r--tests/phpunit/includes/skins/SkinTemplateTest.php4
-rw-r--r--tests/phpunit/includes/skins/SkinTest.php4
-rw-r--r--tests/phpunit/includes/title/MediaWikiTitleCodecTest.php6
-rw-r--r--tests/phpunit/includes/title/NamespaceInfoTest.php6
-rw-r--r--tests/phpunit/includes/title/TemplateCategoriesTest.php2
-rw-r--r--tests/phpunit/includes/title/TitleTest.php236
-rw-r--r--tests/phpunit/includes/title/TitleUrlTest.php12
-rw-r--r--tests/phpunit/includes/upload/UploadBaseTest.php14
-rw-r--r--tests/phpunit/includes/upload/UploadFromUrlTest.php2
-rw-r--r--tests/phpunit/includes/upload/UploadStashTest.php2
-rw-r--r--tests/phpunit/includes/user/ActorMigrationTest.php4
-rw-r--r--tests/phpunit/includes/user/UserTest.php4
-rw-r--r--tests/phpunit/includes/utils/BatchRowUpdateTest.php6
-rw-r--r--tests/phpunit/includes/utils/FileContentsHasherTest.php2
-rw-r--r--tests/phpunit/includes/utils/MWCryptHKDFTest.php4
-rw-r--r--tests/phpunit/includes/utils/ZipDirectoryReaderTest.php2
-rw-r--r--tests/phpunit/includes/watcheditem/WatchedItemQueryServiceIntegrationTest.php2
-rw-r--r--tests/phpunit/includes/watcheditem/WatchedItemStoreIntegrationTest.php2
-rw-r--r--tests/phpunit/includes/watcheditem/WatchedItemStoreUnitTest.php2
-rw-r--r--tests/phpunit/includes/xml/XmlTest.php2
-rw-r--r--tests/phpunit/integration/includes/Html/TemplateParserIntegrationTest.php6
-rw-r--r--tests/phpunit/integration/includes/MediaWikiEntryPointTest.php2
-rw-r--r--tests/phpunit/integration/includes/Rest/Handler/ParsoidHandlerTest.php4
-rw-r--r--tests/phpunit/integration/includes/Storage/UndoIntegrationTest.php6
-rw-r--r--tests/phpunit/integration/includes/block/BlockUserTest.php14
-rw-r--r--tests/phpunit/integration/includes/cache/HtmlCacheUpdaterIntegrationTest.php4
-rw-r--r--tests/phpunit/integration/includes/context/DerivativeContextTest.php2
-rw-r--r--tests/phpunit/integration/includes/context/RequestContextTest.php22
-rw-r--r--tests/phpunit/integration/includes/db/DatabasePostgresTest.php8
-rw-r--r--tests/phpunit/integration/includes/diff/DifferenceEngineSlotDiffRendererIntegrationTest.php2
-rw-r--r--tests/phpunit/integration/includes/filerepo/LocalAndForeignDBRepoTest.php8
-rw-r--r--tests/phpunit/integration/includes/htmlform/HTMLRestrictionsFieldTest.php2
-rw-r--r--tests/phpunit/integration/includes/htmlform/HTMLTitleTextFieldTest.php2
-rw-r--r--tests/phpunit/integration/includes/htmlform/HTMLUserTextFieldTest.php2
-rw-r--r--tests/phpunit/integration/includes/http/HttpRequestFactoryTest.php2
-rw-r--r--tests/phpunit/integration/includes/logging/LogPageTest.php2
-rw-r--r--tests/phpunit/integration/includes/parser/Parsoid/LanguageVariantConverterTest.php2
-rw-r--r--tests/phpunit/integration/includes/parser/TidyTest.php2
-rw-r--r--tests/phpunit/integration/includes/poolcounter/PoolCounterConnectionManagerTest.php2
-rw-r--r--tests/phpunit/integration/includes/revisionlist/RevisionListTest.php8
-rw-r--r--tests/phpunit/integration/includes/search/SearchSuggestionSetIntegrationTest.php2
-rw-r--r--tests/phpunit/integration/includes/user/Options/DefaultOptionsLookupTest.php10
-rw-r--r--tests/phpunit/integration/includes/user/Options/UserOptionsLookupTestBase.php38
-rw-r--r--tests/phpunit/integration/includes/user/Options/UserOptionsManagerTest.php22
-rw-r--r--tests/phpunit/integration/includes/utils/MWFilePropsTest.php2
-rw-r--r--tests/phpunit/maintenance/BackupDumperLoggerTest.php2
-rw-r--r--tests/phpunit/maintenance/BackupDumperPageTest.php2
-rw-r--r--tests/phpunit/maintenance/BaseDumpTest.php2
-rw-r--r--tests/phpunit/maintenance/CategoriesRdfTest.php2
-rw-r--r--tests/phpunit/maintenance/CategoryChangesAsRdfTest.php2
-rw-r--r--tests/phpunit/maintenance/DeleteAutoPatrolLogsTest.php2
-rw-r--r--tests/phpunit/maintenance/DeleteUserEmailTest.php2
-rw-r--r--tests/phpunit/maintenance/FetchTextTest.php2
-rw-r--r--tests/phpunit/maintenance/MaintenanceTest.php6
-rw-r--r--tests/phpunit/maintenance/PopulateUserIsTempTest.php2
-rw-r--r--tests/phpunit/maintenance/TextPassDumperDatabaseTest.php4
-rw-r--r--tests/phpunit/suites/ParserIntegrationTest.php22
-rw-r--r--tests/phpunit/tests/MediaWikiIntegrationTestCaseSchema1Test.php2
-rw-r--r--tests/phpunit/tests/MediaWikiIntegrationTestCaseSchema2Test.php2
-rw-r--r--tests/phpunit/tests/MediaWikiIntegrationTestCaseTest.php82
-rw-r--r--tests/phpunit/tests/MockHttpTraitTest.php2
-rw-r--r--tests/phpunit/unit/includes/Html/FormOptionsInitializationTest.php4
-rw-r--r--tests/phpunit/unit/includes/Html/FormOptionsTest.php4
-rw-r--r--tests/phpunit/unit/includes/Html/ListToggleTest.php6
-rw-r--r--tests/phpunit/unit/includes/Request/DerivativeRequestTest.php2
-rw-r--r--tests/phpunit/unit/includes/Request/FauxResponseTest.php14
-rw-r--r--tests/phpunit/unit/includes/Request/PathRouterTest.php2
-rw-r--r--tests/phpunit/unit/includes/ResourceLoader/VueComponentParserTest.php2
-rw-r--r--tests/phpunit/unit/includes/StubObject/DeprecatedGlobalTest.php2
-rw-r--r--tests/phpunit/unit/includes/WikiMap/WikiReferenceTest.php2
-rw-r--r--tests/phpunit/unit/includes/actions/ActionInfoTest.php2
-rw-r--r--tests/phpunit/unit/includes/api/ApiModuleManagerTest.php16
-rw-r--r--tests/phpunit/unit/includes/api/ApiWatchlistTraitTest.php2
-rw-r--r--tests/phpunit/unit/includes/block/BlockUtilsTest.php2
-rw-r--r--tests/phpunit/unit/includes/cache/BacklinkCacheFactoryTest.php2
-rw-r--r--tests/phpunit/unit/includes/cache/CacheKeyHelperTest.php2
-rw-r--r--tests/phpunit/unit/includes/cache/HtmlCacheUpdaterTest.php2
-rw-r--r--tests/phpunit/unit/includes/changes/ChangesListBooleanFilterGroupTest.php2
-rw-r--r--tests/phpunit/unit/includes/changes/ChangesListBooleanFilterTest.php2
-rw-r--r--tests/phpunit/unit/includes/changes/ChangesListFilterGroupTest.php2
-rw-r--r--tests/phpunit/unit/includes/changes/ChangesListFilterTest.php2
-rw-r--r--tests/phpunit/unit/includes/changes/ChangesListStringOptionsFilterGroupTest.php2
-rw-r--r--tests/phpunit/unit/includes/content/FileContentHandlerTest.php2
-rw-r--r--tests/phpunit/unit/includes/content/JsonContentHandlerTest.php2
-rw-r--r--tests/phpunit/unit/includes/content/TextContentHandlerTest.php6
-rw-r--r--tests/phpunit/unit/includes/content/WikitextContentHandlerTest.php2
-rw-r--r--tests/phpunit/unit/includes/db/MWLBFactoryTest.php4
-rw-r--r--tests/phpunit/unit/includes/diff/UnsupportedSlotDiffRendererTest.php2
-rw-r--r--tests/phpunit/unit/includes/editpage/IEditObjectTest.php2
-rw-r--r--tests/phpunit/unit/includes/exception/HttpErrorTest.php2
-rw-r--r--tests/phpunit/unit/includes/exception/MWExceptionHandlerTest.php2
-rw-r--r--tests/phpunit/unit/includes/filebackend/FileBackendGroupTest.php2
-rw-r--r--tests/phpunit/unit/includes/filebackend/HTTPFileStreamerTest.php2
-rw-r--r--tests/phpunit/unit/includes/filebackend/lockmanager/LockManagerGroupFactoryTest.php2
-rw-r--r--tests/phpunit/unit/includes/filebackend/lockmanager/LockManagerGroupTest.php2
-rw-r--r--tests/phpunit/unit/includes/filerepo/file/ForeignDBFileTest.php4
-rw-r--r--tests/phpunit/unit/includes/historyblob/DiffHistoryBlobTest.php2
-rw-r--r--tests/phpunit/unit/includes/historyblob/HistoryBlobUtilsTest.php2
-rw-r--r--tests/phpunit/unit/includes/htmlform/HTMLCheckMatrixTest.php2
-rw-r--r--tests/phpunit/unit/includes/import/WikiImporterFactoryTest.php2
-rw-r--r--tests/phpunit/unit/includes/interwiki/InterwikiLookupAdapterTest.php2
-rw-r--r--tests/phpunit/unit/includes/jobqueue/JobSpecificationTest.php10
-rw-r--r--tests/phpunit/unit/includes/json/FormatJsonTest.php12
-rw-r--r--tests/phpunit/unit/includes/language/FormatterFactoryTest.php2
-rw-r--r--tests/phpunit/unit/includes/language/LCStoreStaticArrayTest.php2
-rw-r--r--tests/phpunit/unit/includes/language/LanguageCodeTest.php14
-rw-r--r--tests/phpunit/unit/includes/language/LanguageFallbackTest.php2
-rw-r--r--tests/phpunit/unit/includes/language/LanguageFallbackTestTrait.php12
-rw-r--r--tests/phpunit/unit/includes/language/LanguageNameUtilsTestTrait.php80
-rw-r--r--tests/phpunit/unit/includes/language/LanguageTest.php2
-rw-r--r--tests/phpunit/unit/includes/language/LocalisationCacheTest.php2
-rw-r--r--tests/phpunit/unit/includes/libs/ArrayUtilsTest.php2
-rw-r--r--tests/phpunit/unit/includes/libs/CookieTest.php4
-rw-r--r--tests/phpunit/unit/includes/libs/DeflateTest.php2
-rw-r--r--tests/phpunit/unit/includes/libs/DnsSrvDiscovererTest.php2
-rw-r--r--tests/phpunit/unit/includes/libs/HashRingTest.php2
-rw-r--r--tests/phpunit/unit/includes/libs/HtmlArmorTest.php2
-rw-r--r--tests/phpunit/unit/includes/libs/MWCryptHashTest.php2
-rw-r--r--tests/phpunit/unit/includes/libs/MapCacheLRUTest.php2
-rw-r--r--tests/phpunit/unit/includes/libs/MemoizedCallableTest.php2
-rw-r--r--tests/phpunit/unit/includes/libs/ParamValidator/ParamValidatorTest.php2
-rw-r--r--tests/phpunit/unit/includes/libs/ParamValidator/SimpleCallbacksTest.php2
-rw-r--r--tests/phpunit/unit/includes/libs/ParamValidator/TypeDef/EnumDefTest.php2
-rw-r--r--tests/phpunit/unit/includes/libs/ParamValidator/TypeDef/FloatDefTest.php2
-rw-r--r--tests/phpunit/unit/includes/libs/ParamValidator/TypeDef/IntegerDefTest.php4
-rw-r--r--tests/phpunit/unit/includes/libs/ParamValidator/TypeDef/LimitDefTest.php2
-rw-r--r--tests/phpunit/unit/includes/libs/ParamValidator/TypeDef/PasswordDefTest.php2
-rw-r--r--tests/phpunit/unit/includes/libs/ParamValidator/TypeDef/PresenceBooleanDefTest.php2
-rw-r--r--tests/phpunit/unit/includes/libs/ParamValidator/TypeDef/StringDefTest.php2
-rw-r--r--tests/phpunit/unit/includes/libs/ParamValidator/TypeDef/TimestampDefTest.php2
-rw-r--r--tests/phpunit/unit/includes/libs/ParamValidator/TypeDef/UploadDefTest.php2
-rw-r--r--tests/phpunit/unit/includes/libs/ParamValidator/TypeDefTest.php2
-rw-r--r--tests/phpunit/unit/includes/libs/ParamValidator/Util/UploadedFileStreamTest.php2
-rw-r--r--tests/phpunit/unit/includes/libs/ParamValidator/Util/UploadedFileTest.php2
-rw-r--r--tests/phpunit/unit/includes/libs/SamplingStatsdClientTest.php2
-rw-r--r--tests/phpunit/unit/includes/libs/Stats/BufferingStatsdDataFactoryTest.php2
-rw-r--r--tests/phpunit/unit/includes/libs/Stats/PrefixingStatsdDataFactoryProxyTest.php2
-rw-r--r--tests/phpunit/unit/includes/libs/TimingTest.php2
-rw-r--r--tests/phpunit/unit/includes/libs/XhprofDataTest.php2
-rw-r--r--tests/phpunit/unit/includes/libs/XmlTypeCheckTest.php2
-rw-r--r--tests/phpunit/unit/includes/libs/composer/ComposerJsonTest.php6
-rw-r--r--tests/phpunit/unit/includes/libs/composer/ComposerLockTest.php4
-rw-r--r--tests/phpunit/unit/includes/libs/filebackend/FileBackendTest.php2
-rw-r--r--tests/phpunit/unit/includes/libs/filebackend/fsfile/TempFSFileTestTrait.php6
-rw-r--r--tests/phpunit/unit/includes/libs/http/HttpAcceptNegotiatorTest.php2
-rw-r--r--tests/phpunit/unit/includes/libs/http/HttpAcceptParserTest.php2
-rw-r--r--tests/phpunit/unit/includes/libs/mime/MSCompoundFileReaderTest.php2
-rw-r--r--tests/phpunit/unit/includes/libs/mime/MimeAnalyzerTest.php2
-rw-r--r--tests/phpunit/unit/includes/libs/objectcache/CachedBagOStuffTest.php2
-rw-r--r--tests/phpunit/unit/includes/libs/objectcache/HashBagOStuffTest.php6
-rw-r--r--tests/phpunit/unit/includes/libs/objectcache/ReplicatedBagOStuffTest.php2
-rw-r--r--tests/phpunit/unit/includes/libs/objectcache/WANObjectCacheTest.php2
-rw-r--r--tests/phpunit/unit/includes/libs/rdbms/DatabaseFactoryTest.php2
-rw-r--r--tests/phpunit/unit/includes/libs/rdbms/ReadOnlyModeTest.php4
-rw-r--r--tests/phpunit/unit/includes/libs/rdbms/connectionmanager/SessionConsistentConnectionManagerTest.php2
-rw-r--r--tests/phpunit/unit/includes/libs/rdbms/database/DBConnRefTest.php2
-rw-r--r--tests/phpunit/unit/includes/libs/rdbms/database/DatabaseDomainTest.php2
-rw-r--r--tests/phpunit/unit/includes/libs/rdbms/database/DatabaseSQLTest.php6
-rw-r--r--tests/phpunit/unit/includes/libs/rdbms/database/DatabaseTest.php6
-rw-r--r--tests/phpunit/unit/includes/libs/rdbms/platform/SQLPlatformTest.php4
-rw-r--r--tests/phpunit/unit/includes/libs/rdbms/platform/SqlitePlatformTest.php2
-rw-r--r--tests/phpunit/unit/includes/linker/LinkRendererFactoryTest.php2
-rw-r--r--tests/phpunit/unit/includes/linker/LinksMigrationTest.php2
-rw-r--r--tests/phpunit/unit/includes/mail/UserMailerTest.php2
-rw-r--r--tests/phpunit/unit/includes/media/GIFMetadataExtractorTest.php2
-rw-r--r--tests/phpunit/unit/includes/media/IPTCTest.php4
-rw-r--r--tests/phpunit/unit/includes/media/MediaHandlerTest.php2
-rw-r--r--tests/phpunit/unit/includes/media/TrivialMediaHandlerStateTest.php2
-rw-r--r--tests/phpunit/unit/includes/objectcache/MemcachedBagOStuffTest.php2
-rw-r--r--tests/phpunit/unit/includes/objectcache/RESTBagOStuffTest.php2
-rw-r--r--tests/phpunit/unit/includes/objectcache/RedisBagOStuffTest.php2
-rw-r--r--tests/phpunit/unit/includes/objectcache/SqlBagOStuffTest.php2
-rw-r--r--tests/phpunit/unit/includes/page/MovePageTest.php12
-rw-r--r--tests/phpunit/unit/includes/page/PageIdentityValueTest.php2
-rw-r--r--tests/phpunit/unit/includes/page/PageReferenceValueTest.php2
-rw-r--r--tests/phpunit/unit/includes/parser/LinkHolderArrayTest.php10
-rw-r--r--tests/phpunit/unit/includes/parser/ParserFactoryTest.php2
-rw-r--r--tests/phpunit/unit/includes/parser/Parsoid/LanguageVariantConverterUnitTest.php2
-rw-r--r--tests/phpunit/unit/includes/parser/Parsoid/PageBundleParserOutputConverterTest.php2
-rw-r--r--tests/phpunit/unit/includes/password/AbstractPbkdf2PasswordTest.php2
-rw-r--r--tests/phpunit/unit/includes/password/Argon2PasswordTest.php6
-rw-r--r--tests/phpunit/unit/includes/password/BcryptPasswordTest.php8
-rw-r--r--tests/phpunit/unit/includes/password/EncryptedPasswordTest.php6
-rw-r--r--tests/phpunit/unit/includes/password/LayeredParameterizedPasswordTest.php6
-rw-r--r--tests/phpunit/unit/includes/password/MWOldPasswordTest.php6
-rw-r--r--tests/phpunit/unit/includes/password/MWSaltedPasswordTest.php6
-rw-r--r--tests/phpunit/unit/includes/password/PasswordFactoryTest.php2
-rw-r--r--tests/phpunit/unit/includes/password/PasswordTest.php2
-rw-r--r--tests/phpunit/unit/includes/password/PasswordTestCase.php2
-rw-r--r--tests/phpunit/unit/includes/password/Pbkdf2PasswordUsingHashExtensionTest.php4
-rw-r--r--tests/phpunit/unit/includes/password/Pbkdf2PasswordUsingOpenSSLTest.php4
-rw-r--r--tests/phpunit/unit/includes/preferences/FiltersTest.php10
-rw-r--r--tests/phpunit/unit/includes/rcfeed/RCFeedTest.php2
-rw-r--r--tests/phpunit/unit/includes/registration/ExtensionJsonValidatorTest.php2
-rw-r--r--tests/phpunit/unit/includes/registration/ExtensionProcessorTest.php2
-rw-r--r--tests/phpunit/unit/includes/registration/ExtensionRegistryTest.php2
-rw-r--r--tests/phpunit/unit/includes/registration/VersionCheckerTest.php2
-rw-r--r--tests/phpunit/unit/includes/revisionlist/RevisionItemBaseTest.php2
-rw-r--r--tests/phpunit/unit/includes/revisionlist/RevisionListBaseTest.php2
-rw-r--r--tests/phpunit/unit/includes/search/FauxSearchResultSetTest.php2
-rw-r--r--tests/phpunit/unit/includes/search/FauxSearchResultTest.php2
-rw-r--r--tests/phpunit/unit/includes/search/SearchIndexFieldTest.php2
-rw-r--r--tests/phpunit/unit/includes/search/SearchSuggestionSetTest.php14
-rw-r--r--tests/phpunit/unit/includes/session/MetadataMergeExceptionTest.php2
-rw-r--r--tests/phpunit/unit/includes/session/SessionIdTest.php2
-rw-r--r--tests/phpunit/unit/includes/shell/CommandFactoryTest.php2
-rw-r--r--tests/phpunit/unit/includes/shell/ShellboxClientFactoryTest.php2
-rw-r--r--tests/phpunit/unit/includes/site/MediaWikiPageNameNormalizerTest.php2
-rw-r--r--tests/phpunit/unit/includes/skins/SkinFactoryTest.php2
-rw-r--r--tests/phpunit/unit/includes/specials/formfields/LicensesTest.php2
-rw-r--r--tests/phpunit/unit/includes/tidy/RemexDriverTest.php8
-rw-r--r--tests/phpunit/unit/includes/title/TitleArrayFromResultTest.php12
-rw-r--r--tests/phpunit/unit/includes/title/TitleTest.php32
-rw-r--r--tests/phpunit/unit/includes/user/UserNameUtilsTest.php16
-rw-r--r--tests/phpunit/unit/includes/utils/ClassCollectorTest.php2
-rw-r--r--tests/phpunit/unit/includes/utils/MWRestrictionsTest.php26
-rw-r--r--tests/phpunit/unit/includes/watcheditem/NoWriteWatchedItemStoreUnitTest.php2
-rw-r--r--tests/phpunit/unit/includes/watcheditem/WatchedItemQueryServiceUnitTest.php2
-rw-r--r--tests/phpunit/unit/includes/watcheditem/WatchedItemUnitTest.php2
-rw-r--r--tests/phpunit/unit/includes/xml/XmlSelectTest.php16
-rw-r--r--tests/phpunit/unit/includes/xml/XmlTest.php4
-rw-r--r--tests/phpunit/unit/maintenance/MWDoxygenFilterTest.php2
-rw-r--r--tests/phpunit/unit/maintenance/PopulateUserIsTempTest.php2
-rw-r--r--tests/phpunit/unit/tests/MockDatabaseTest.php2
578 files changed, 1853 insertions, 1853 deletions
diff --git a/tests/phpunit/includes/AutoLoaderTest.php b/tests/phpunit/includes/AutoLoaderTest.php
index ae7e203d2546..41a119946ecb 100644
--- a/tests/phpunit/includes/AutoLoaderTest.php
+++ b/tests/phpunit/includes/AutoLoaderTest.php
@@ -3,7 +3,7 @@
use Wikimedia\TestingAccessWrapper;
/**
- * @covers AutoLoader
+ * @covers \AutoLoader
*/
class AutoLoaderTest extends MediaWikiIntegrationTestCase {
diff --git a/tests/phpunit/includes/Category/CategoryTest.php b/tests/phpunit/includes/Category/CategoryTest.php
index f54008425c37..cad07b0abd07 100644
--- a/tests/phpunit/includes/Category/CategoryTest.php
+++ b/tests/phpunit/includes/Category/CategoryTest.php
@@ -5,7 +5,7 @@ use MediaWiki\MainConfigNames;
use MediaWiki\Title\Title;
/**
- * @covers MediaWiki\Category\Category
+ * @covers \MediaWiki\Category\Category
* @group Database
* @group Category
*/
diff --git a/tests/phpunit/includes/Category/TrackingCategoriesTest.php b/tests/phpunit/includes/Category/TrackingCategoriesTest.php
index 5d515c5f6e4b..6f36689a79ea 100644
--- a/tests/phpunit/includes/Category/TrackingCategoriesTest.php
+++ b/tests/phpunit/includes/Category/TrackingCategoriesTest.php
@@ -7,7 +7,7 @@ use MediaWiki\Page\PageReferenceValue;
/**
* @covers \MediaWiki\Parser\ParserOutput
- * @covers CacheTime
+ * @covers \CacheTime
* @group Database
* ^--- trigger DB shadowing because we are using Title magic
*/
diff --git a/tests/phpunit/includes/ExternalLinks/LinkFilterTest.php b/tests/phpunit/includes/ExternalLinks/LinkFilterTest.php
index 49de9cdeedbd..4c832c1f1723 100644
--- a/tests/phpunit/includes/ExternalLinks/LinkFilterTest.php
+++ b/tests/phpunit/includes/ExternalLinks/LinkFilterTest.php
@@ -7,7 +7,7 @@ use Wikimedia\Rdbms\IExpression;
use Wikimedia\Rdbms\LikeMatch;
/**
- * @covers MediaWiki\ExternalLinks\LinkFilter
+ * @covers \MediaWiki\ExternalLinks\LinkFilter
* @group Database
*/
class LinkFilterTest extends MediaWikiLangTestCase {
diff --git a/tests/phpunit/includes/Html/HtmlTest.php b/tests/phpunit/includes/Html/HtmlTest.php
index 574d1438000b..04c25f5b6a77 100644
--- a/tests/phpunit/includes/Html/HtmlTest.php
+++ b/tests/phpunit/includes/Html/HtmlTest.php
@@ -5,7 +5,7 @@ use MediaWiki\Html\HtmlJsCode;
use MediaWiki\MainConfigNames;
/**
- * @covers MediaWiki\Html\Html
+ * @covers \MediaWiki\Html\Html
*/
class HtmlTest extends MediaWikiIntegrationTestCase {
diff --git a/tests/phpunit/includes/MediaWikiServicesTest.php b/tests/phpunit/includes/MediaWikiServicesTest.php
index 82a9e11febc3..55a35984fb57 100644
--- a/tests/phpunit/includes/MediaWikiServicesTest.php
+++ b/tests/phpunit/includes/MediaWikiServicesTest.php
@@ -12,7 +12,7 @@ use Wikimedia\Services\DestructibleService;
use Wikimedia\Services\SalvageableService;
/**
- * @covers MediaWiki\MediaWikiServices
+ * @covers \MediaWiki\MediaWikiServices
* @group Database
* This test doesn't really make queries, but needs to be in the Database test to make sure
* that storage isn't disabled on the original instance.
diff --git a/tests/phpunit/includes/ParamValidator/TypeDef/TagsDefTest.php b/tests/phpunit/includes/ParamValidator/TypeDef/TagsDefTest.php
index 908ffa180104..ab13e3071164 100644
--- a/tests/phpunit/includes/ParamValidator/TypeDef/TagsDefTest.php
+++ b/tests/phpunit/includes/ParamValidator/TypeDef/TagsDefTest.php
@@ -13,7 +13,7 @@ use Wikimedia\ParamValidator\ValidationException;
/**
* @group Database
- * @covers MediaWiki\ParamValidator\TypeDef\TagsDef
+ * @covers \MediaWiki\ParamValidator\TypeDef\TagsDef
*/
class TagsDefTest extends MediaWikiIntegrationTestCase {
diff --git a/tests/phpunit/includes/Request/ContentSecurityPolicyTest.php b/tests/phpunit/includes/Request/ContentSecurityPolicyTest.php
index 8a83c408b47f..ac353e27682f 100644
--- a/tests/phpunit/includes/Request/ContentSecurityPolicyTest.php
+++ b/tests/phpunit/includes/Request/ContentSecurityPolicyTest.php
@@ -61,7 +61,7 @@ class ContentSecurityPolicyTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Request\ContentSecurityPolicy::getAdditionalSelfUrls
+ * @covers \MediaWiki\Request\ContentSecurityPolicy::getAdditionalSelfUrls
*/
public function testGetAdditionalSelfUrlsRespectsUrlSettings() {
$this->overrideConfigValues( [
@@ -86,7 +86,7 @@ class ContentSecurityPolicyTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider providerFalsePositiveBrowser
- * @covers MediaWiki\Request\ContentSecurityPolicy::falsePositiveBrowser
+ * @covers \MediaWiki\Request\ContentSecurityPolicy::falsePositiveBrowser
*/
public function testFalsePositiveBrowser( $ua, $expected ) {
$actual = ContentSecurityPolicy::falsePositiveBrowser( $ua );
@@ -108,8 +108,8 @@ class ContentSecurityPolicyTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Request\ContentSecurityPolicy::addScriptSrc
- * @covers MediaWiki\Request\ContentSecurityPolicy::makeCSPDirectives
+ * @covers \MediaWiki\Request\ContentSecurityPolicy::addScriptSrc
+ * @covers \MediaWiki\Request\ContentSecurityPolicy::makeCSPDirectives
*/
public function testAddScriptSrc() {
$this->csp->addScriptSrc( 'https://example.com:71' );
@@ -122,8 +122,8 @@ class ContentSecurityPolicyTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Request\ContentSecurityPolicy::addStyleSrc
- * @covers MediaWiki\Request\ContentSecurityPolicy::makeCSPDirectives
+ * @covers \MediaWiki\Request\ContentSecurityPolicy::addStyleSrc
+ * @covers \MediaWiki\Request\ContentSecurityPolicy::makeCSPDirectives
*/
public function testAddStyleSrc() {
$this->csp->addStyleSrc( 'style.example.com' );
@@ -136,8 +136,8 @@ class ContentSecurityPolicyTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Request\ContentSecurityPolicy::addDefaultSrc
- * @covers MediaWiki\Request\ContentSecurityPolicy::makeCSPDirectives
+ * @covers \MediaWiki\Request\ContentSecurityPolicy::addDefaultSrc
+ * @covers \MediaWiki\Request\ContentSecurityPolicy::makeCSPDirectives
*/
public function testAddDefaultSrc() {
$this->csp->addDefaultSrc( '*.example.com' );
@@ -151,7 +151,7 @@ class ContentSecurityPolicyTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider providerMakeCSPDirectives
- * @covers MediaWiki\Request\ContentSecurityPolicy::makeCSPDirectives
+ * @covers \MediaWiki\Request\ContentSecurityPolicy::makeCSPDirectives
*/
public function testMakeCSPDirectives(
$policy,
@@ -266,7 +266,7 @@ class ContentSecurityPolicyTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Request\ContentSecurityPolicy::makeCSPDirectives
+ * @covers \MediaWiki\Request\ContentSecurityPolicy::makeCSPDirectives
*/
public function testMakeCSPDirectivesReportUri() {
$actual = $this->csp->makeCSPDirectives(
@@ -278,7 +278,7 @@ class ContentSecurityPolicyTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Request\ContentSecurityPolicy::getHeaderName
+ * @covers \MediaWiki\Request\ContentSecurityPolicy::getHeaderName
*/
public function testGetHeaderName() {
$this->assertSame(
@@ -292,7 +292,7 @@ class ContentSecurityPolicyTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Request\ContentSecurityPolicy::getReportUri
+ * @covers \MediaWiki\Request\ContentSecurityPolicy::getReportUri
*/
public function testGetReportUri() {
$full = $this->csp->getReportUri( ContentSecurityPolicy::FULL_MODE );
@@ -313,7 +313,7 @@ class ContentSecurityPolicyTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider providerPrepareUrlForCSP
- * @covers MediaWiki\Request\ContentSecurityPolicy::prepareUrlForCSP
+ * @covers \MediaWiki\Request\ContentSecurityPolicy::prepareUrlForCSP
*/
public function testPrepareUrlForCSP( $url, $expected ) {
$actual = $this->csp->prepareUrlForCSP( $url );
@@ -344,7 +344,7 @@ class ContentSecurityPolicyTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Request\ContentSecurityPolicy::escapeUrlForCSP
+ * @covers \MediaWiki\Request\ContentSecurityPolicy::escapeUrlForCSP
*/
public function testEscapeUrlForCSP() {
$escaped = $this->csp->escapeUrlForCSP( ',;%2B' );
@@ -353,7 +353,7 @@ class ContentSecurityPolicyTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider provideIsNonceRequired
- * @covers MediaWiki\Request\ContentSecurityPolicy::isNonceRequired
+ * @covers \MediaWiki\Request\ContentSecurityPolicy::isNonceRequired
*/
public function testIsNonceRequired( $main, $reportOnly, $expected ) {
$this->overrideConfigValues( [
@@ -380,7 +380,7 @@ class ContentSecurityPolicyTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Request\ContentSecurityPolicy::getDirectives
+ * @covers \MediaWiki\Request\ContentSecurityPolicy::getDirectives
*/
public function testGetDirectives() {
$this->assertSame(
@@ -395,7 +395,7 @@ class ContentSecurityPolicyTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Request\ContentSecurityPolicy::sendHeaders
+ * @covers \MediaWiki\Request\ContentSecurityPolicy::sendHeaders
*/
public function testSendHeaders() {
$this->csp->sendHeaders();
diff --git a/tests/phpunit/includes/Request/FauxRequestTest.php b/tests/phpunit/includes/Request/FauxRequestTest.php
index fb04f7d2b3d7..d7baa9a809e4 100644
--- a/tests/phpunit/includes/Request/FauxRequestTest.php
+++ b/tests/phpunit/includes/Request/FauxRequestTest.php
@@ -13,7 +13,7 @@ class FauxRequestTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Request\FauxRequest::__construct
+ * @covers \MediaWiki\Request\FauxRequest::__construct
*/
public function testConstructInvalidSession() {
$this->expectException( InvalidArgumentException::class );
@@ -22,7 +22,7 @@ class FauxRequestTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Request\FauxRequest::__construct
+ * @covers \MediaWiki\Request\FauxRequest::__construct
*/
public function testConstructWithSession() {
$session = SessionManager::singleton()->getEmptySession( new FauxRequest( [] ) );
@@ -33,7 +33,7 @@ class FauxRequestTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Request\FauxRequest::getText
+ * @covers \MediaWiki\Request\FauxRequest::getText
*/
public function testGetText() {
$req = new FauxRequest( [ 'x' => 'Value' ] );
@@ -43,7 +43,7 @@ class FauxRequestTest extends MediaWikiIntegrationTestCase {
/**
* Integration test for parent method
- * @covers MediaWiki\Request\FauxRequest::getVal
+ * @covers \MediaWiki\Request\FauxRequest::getVal
*/
public function testGetVal() {
$req = new FauxRequest( [ 'crlf' => "A\r\nb" ] );
@@ -52,7 +52,7 @@ class FauxRequestTest extends MediaWikiIntegrationTestCase {
/**
* Integration test for parent method
- * @covers MediaWiki\Request\FauxRequest::getRawVal
+ * @covers \MediaWiki\Request\FauxRequest::getRawVal
*/
public function testGetRawVal() {
$req = new FauxRequest( [
@@ -67,7 +67,7 @@ class FauxRequestTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Request\FauxRequest::getValues
+ * @covers \MediaWiki\Request\FauxRequest::getValues
*/
public function testGetValues() {
$values = [ 'x' => 'Value', 'y' => '' ];
@@ -76,7 +76,7 @@ class FauxRequestTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Request\FauxRequest::getQueryValues
+ * @covers \MediaWiki\Request\FauxRequest::getQueryValues
*/
public function testGetQueryValues() {
$values = [ 'x' => 'Value', 'y' => '' ];
@@ -88,7 +88,7 @@ class FauxRequestTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Request\FauxRequest::getMethod
+ * @covers \MediaWiki\Request\FauxRequest::getMethod
*/
public function testGetMethod() {
$req = new FauxRequest( [] );
@@ -98,7 +98,7 @@ class FauxRequestTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Request\FauxRequest::wasPosted
+ * @covers \MediaWiki\Request\FauxRequest::wasPosted
*/
public function testWasPosted() {
$req = new FauxRequest( [] );
@@ -108,9 +108,9 @@ class FauxRequestTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Request\FauxRequest::getCookie
- * @covers MediaWiki\Request\FauxRequest::setCookie
- * @covers MediaWiki\Request\FauxRequest::setCookies
+ * @covers \MediaWiki\Request\FauxRequest::getCookie
+ * @covers \MediaWiki\Request\FauxRequest::setCookie
+ * @covers \MediaWiki\Request\FauxRequest::setCookies
*/
public function testCookies() {
$req = new FauxRequest();
@@ -125,9 +125,9 @@ class FauxRequestTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Request\FauxRequest::getCookie
- * @covers MediaWiki\Request\FauxRequest::setCookie
- * @covers MediaWiki\Request\FauxRequest::setCookies
+ * @covers \MediaWiki\Request\FauxRequest::getCookie
+ * @covers \MediaWiki\Request\FauxRequest::setCookie
+ * @covers \MediaWiki\Request\FauxRequest::setCookies
*/
public function testCookiesDefaultPrefix() {
global $wgCookiePrefix;
@@ -144,7 +144,7 @@ class FauxRequestTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Request\FauxRequest::getRequestURL
+ * @covers \MediaWiki\Request\FauxRequest::getRequestURL
*/
public function testGetRequestURL_disallowed() {
$req = new FauxRequest();
@@ -153,8 +153,8 @@ class FauxRequestTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Request\FauxRequest::setRequestURL
- * @covers MediaWiki\Request\FauxRequest::getRequestURL
+ * @covers \MediaWiki\Request\FauxRequest::setRequestURL
+ * @covers \MediaWiki\Request\FauxRequest::getRequestURL
*/
public function testSetRequestURL() {
$req = new FauxRequest();
@@ -163,7 +163,7 @@ class FauxRequestTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Request\FauxRequest::getFullRequestURL
+ * @covers \MediaWiki\Request\FauxRequest::getFullRequestURL
*/
public function testGetFullRequestURL_disallowed() {
$req = new FauxRequest();
@@ -173,7 +173,7 @@ class FauxRequestTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Request\FauxRequest::getFullRequestURL
+ * @covers \MediaWiki\Request\FauxRequest::getFullRequestURL
*/
public function testGetFullRequestURL_http() {
$req = new FauxRequest();
@@ -186,7 +186,7 @@ class FauxRequestTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Request\FauxRequest::getFullRequestURL
+ * @covers \MediaWiki\Request\FauxRequest::getFullRequestURL
*/
public function testGetFullRequestURL_https() {
$req = new FauxRequest( [], false, null, 'https' );
@@ -199,8 +199,8 @@ class FauxRequestTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Request\FauxRequest::__construct
- * @covers MediaWiki\Request\FauxRequest::getProtocol
+ * @covers \MediaWiki\Request\FauxRequest::__construct
+ * @covers \MediaWiki\Request\FauxRequest::getProtocol
*/
public function testProtocol() {
$req = new FauxRequest();
@@ -212,9 +212,9 @@ class FauxRequestTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Request\FauxRequest::setHeader
- * @covers MediaWiki\Request\FauxRequest::setHeaders
- * @covers MediaWiki\Request\FauxRequest::getHeader
+ * @covers \MediaWiki\Request\FauxRequest::setHeader
+ * @covers \MediaWiki\Request\FauxRequest::setHeaders
+ * @covers \MediaWiki\Request\FauxRequest::getHeader
*/
public function testGetSetHeader() {
$value = 'text/plain, text/html';
@@ -233,7 +233,7 @@ class FauxRequestTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Request\FauxRequest::initHeaders
+ * @covers \MediaWiki\Request\FauxRequest::initHeaders
*/
public function testGetAllHeaders() {
$_SERVER['HTTP_TEST'] = 'Example';
@@ -245,8 +245,8 @@ class FauxRequestTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Request\FauxRequest::__construct
- * @covers MediaWiki\Request\FauxRequest::getSessionArray
+ * @covers \MediaWiki\Request\FauxRequest::__construct
+ * @covers \MediaWiki\Request\FauxRequest::getSessionArray
*/
public function testSessionData() {
$values = [ 'x' => 'Value', 'y' => '' ];
@@ -259,7 +259,7 @@ class FauxRequestTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Request\FauxRequest::getPostValues
+ * @covers \MediaWiki\Request\FauxRequest::getPostValues
*/
public function testGetPostValues() {
$values = [ 'x' => 'Value', 'y' => '' ];
@@ -272,9 +272,9 @@ class FauxRequestTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Request\FauxRequest::getRawQueryString
- * @covers MediaWiki\Request\FauxRequest::getRawPostString
- * @covers MediaWiki\Request\FauxRequest::getRawInput
+ * @covers \MediaWiki\Request\FauxRequest::getRawQueryString
+ * @covers \MediaWiki\Request\FauxRequest::getRawPostString
+ * @covers \MediaWiki\Request\FauxRequest::getRawInput
*/
public function testDummies() {
$req = new FauxRequest();
diff --git a/tests/phpunit/includes/Request/WebResponseTest.php b/tests/phpunit/includes/Request/WebResponseTest.php
index 9eb60f6bba6f..473e6424b57e 100644
--- a/tests/phpunit/includes/Request/WebResponseTest.php
+++ b/tests/phpunit/includes/Request/WebResponseTest.php
@@ -3,7 +3,7 @@
use MediaWiki\Request\WebResponse;
/**
- * @covers MediaWiki\Request\WebResponse
+ * @covers \MediaWiki\Request\WebResponse
*
* @group WebRequest
*/
diff --git a/tests/phpunit/includes/SiteStats/SiteStatsTest.php b/tests/phpunit/includes/SiteStats/SiteStatsTest.php
index b211705830e0..f1f7533add6c 100644
--- a/tests/phpunit/includes/SiteStats/SiteStatsTest.php
+++ b/tests/phpunit/includes/SiteStats/SiteStatsTest.php
@@ -9,7 +9,7 @@ use Wikimedia\Rdbms\Platform\ISQLPlatform;
class SiteStatsTest extends MediaWikiIntegrationTestCase {
/**
- * @covers MediaWiki\SiteStats\SiteStats::jobs
+ * @covers \MediaWiki\SiteStats\SiteStats::jobs
*/
public function testJobsCountGetCached() {
$cache = new WANObjectCache( [ 'cache' => new HashBagOStuff() ] );
@@ -39,7 +39,7 @@ class SiteStatsTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\SiteStats\SiteStats
+ * @covers \MediaWiki\SiteStats\SiteStats
*/
public function testInit() {
$this->db->delete( 'site_stats', ISQLPlatform::ALL_ROWS, __METHOD__ );
diff --git a/tests/phpunit/includes/Status/StatusFormatterTest.php b/tests/phpunit/includes/Status/StatusFormatterTest.php
index 6438060587f0..61df4e2531f8 100644
--- a/tests/phpunit/includes/Status/StatusFormatterTest.php
+++ b/tests/phpunit/includes/Status/StatusFormatterTest.php
@@ -6,7 +6,7 @@ use Wikimedia\Message\MessageValue;
use Wikimedia\TestingAccessWrapper;
/**
- * @covers MediaWiki\Status\StatusFormatter
+ * @covers \MediaWiki\Status\StatusFormatter
*/
class StatusFormatterTest extends MediaWikiLangTestCase {
diff --git a/tests/phpunit/includes/Status/StatusTest.php b/tests/phpunit/includes/Status/StatusTest.php
index ab07bd99b0bc..a126c84235b6 100644
--- a/tests/phpunit/includes/Status/StatusTest.php
+++ b/tests/phpunit/includes/Status/StatusTest.php
@@ -724,7 +724,7 @@ class StatusTest extends MediaWikiLangTestCase {
/**
* @dataProvider provideErrorsWarningsOnly
* @covers \MediaWiki\Status\Status::splitByErrorType
- * @covers StatusValue::splitByErrorType
+ * @covers \StatusValue::splitByErrorType
*/
public function testGetErrorsWarningsOnlyStatus( $errorText, $warningText, $type, $errorResult,
$warningResult
diff --git a/tests/phpunit/includes/Storage/DerivedPageDataUpdaterTest.php b/tests/phpunit/includes/Storage/DerivedPageDataUpdaterTest.php
index 946db28edb37..8711b44b89f0 100644
--- a/tests/phpunit/includes/Storage/DerivedPageDataUpdaterTest.php
+++ b/tests/phpunit/includes/Storage/DerivedPageDataUpdaterTest.php
@@ -1279,7 +1279,7 @@ class DerivedPageDataUpdaterTest extends MediaWikiIntegrationTestCase {
/**
* @covers \MediaWiki\Storage\DerivedPageDataUpdater::doParserCacheUpdate()
- * @covers ParsoidCachePrewarmJob::doParsoidCacheUpdate()
+ * @covers \ParsoidCachePrewarmJob::doParsoidCacheUpdate()
*/
public function testDoParserCacheUpdate() {
$this->overrideConfigValue(
@@ -1374,7 +1374,7 @@ class DerivedPageDataUpdaterTest extends MediaWikiIntegrationTestCase {
/**
* @covers \MediaWiki\Storage\DerivedPageDataUpdater::doParserCacheUpdate()
- * @covers ParsoidCachePrewarmJob::doParsoidCacheUpdate()
+ * @covers \ParsoidCachePrewarmJob::doParsoidCacheUpdate()
*/
public function testDoParserCacheUpdateForJavaScriptContent() {
$this->overrideConfigValue(
diff --git a/tests/phpunit/includes/Storage/NameTableStoreFactoryTest.php b/tests/phpunit/includes/Storage/NameTableStoreFactoryTest.php
index c25e0a88ee2d..a7871562f6dd 100644
--- a/tests/phpunit/includes/Storage/NameTableStoreFactoryTest.php
+++ b/tests/phpunit/includes/Storage/NameTableStoreFactoryTest.php
@@ -11,7 +11,7 @@ use Wikimedia\Rdbms\ILBFactory;
use Wikimedia\Rdbms\ILoadBalancer;
/**
- * @covers MediaWiki\Storage\NameTableStoreFactory
+ * @covers \MediaWiki\Storage\NameTableStoreFactory
* @group Database
*/
class NameTableStoreFactoryTest extends MediaWikiIntegrationTestCase {
diff --git a/tests/phpunit/includes/Storage/PageUpdaterFactoryIntegrationTest.php b/tests/phpunit/includes/Storage/PageUpdaterFactoryIntegrationTest.php
index 80d71ce95d1f..1804b450b215 100644
--- a/tests/phpunit/includes/Storage/PageUpdaterFactoryIntegrationTest.php
+++ b/tests/phpunit/includes/Storage/PageUpdaterFactoryIntegrationTest.php
@@ -8,13 +8,13 @@ use MediaWikiIntegrationTestCase;
use TextContent;
/**
- * @covers MediaWiki\Storage\PageUpdaterFactory
+ * @covers \MediaWiki\Storage\PageUpdaterFactory
* @group Database
*/
class PageUpdaterFactoryIntegrationTest extends MediaWikiIntegrationTestCase {
/**
- * @covers WikiPage::newPageUpdater
+ * @covers \WikiPage::newPageUpdater
*/
public function testNewPageUpdater() {
$page = $this->getExistingTestPage();
diff --git a/tests/phpunit/includes/WikiMap/WikiMapTest.php b/tests/phpunit/includes/WikiMap/WikiMapTest.php
index 5ff0590f4ad9..82589c7088df 100644
--- a/tests/phpunit/includes/WikiMap/WikiMapTest.php
+++ b/tests/phpunit/includes/WikiMap/WikiMapTest.php
@@ -7,7 +7,7 @@ use MediaWiki\WikiMap\WikiReference;
use Wikimedia\Rdbms\DatabaseDomain;
/**
- * @covers MediaWiki\WikiMap\WikiMap
+ * @covers \MediaWiki\WikiMap\WikiMap
*
* @group Database
*/
@@ -187,7 +187,7 @@ class WikiMapTest extends MediaWikiLangTestCase {
}
/**
- * @covers MediaWiki\WikiMap\WikiMap::getCanonicalServerInfoForAllWikis()
+ * @covers \MediaWiki\WikiMap\WikiMap::getCanonicalServerInfoForAllWikis()
*/
public function testGetCanonicalServerInfoForAllWikis() {
$expected = [
@@ -234,7 +234,7 @@ class WikiMapTest extends MediaWikiLangTestCase {
/**
* @dataProvider provideGetWikiFromUrl
- * @covers MediaWiki\WikiMap\WikiMap::getWikiFromUrl()
+ * @covers \MediaWiki\WikiMap\WikiMap::getWikiFromUrl()
*/
public function testGetWikiFromUrl( $url, $wiki ) {
$this->assertEquals( $wiki, WikiMap::getWikiFromUrl( $url ) );
@@ -254,15 +254,15 @@ class WikiMapTest extends MediaWikiLangTestCase {
/**
* @dataProvider provideGetWikiIdFromDbDomain
- * @covers MediaWiki\WikiMap\WikiMap::getWikiIdFromDbDomain()
+ * @covers \MediaWiki\WikiMap\WikiMap::getWikiIdFromDbDomain()
*/
public function testGetWikiIdFromDbDomain( $domain, $wikiId ) {
$this->assertEquals( $wikiId, WikiMap::getWikiIdFromDbDomain( $domain ) );
}
/**
- * @covers MediaWiki\WikiMap\WikiMap::isCurrentWikiDbDomain()
- * @covers MediaWiki\WikiMap\WikiMap::getCurrentWikiDbDomain()
+ * @covers \MediaWiki\WikiMap\WikiMap::isCurrentWikiDbDomain()
+ * @covers \MediaWiki\WikiMap\WikiMap::getCurrentWikiDbDomain()
*/
public function testIsCurrentWikiDomain() {
$this->overrideConfigValue( MainConfigNames::DBmwschema, 'mediawiki' );
@@ -301,9 +301,9 @@ class WikiMapTest extends MediaWikiLangTestCase {
/**
* @dataProvider provideIsCurrentWikiId
- * @covers MediaWiki\WikiMap\WikiMap::isCurrentWikiId()
- * @covers MediaWiki\WikiMap\WikiMap::getCurrentWikiDbDomain()
- * @covers MediaWiki\WikiMap\WikiMap::getWikiIdFromDbDomain()
+ * @covers \MediaWiki\WikiMap\WikiMap::isCurrentWikiId()
+ * @covers \MediaWiki\WikiMap\WikiMap::getCurrentWikiDbDomain()
+ * @covers \MediaWiki\WikiMap\WikiMap::getWikiIdFromDbDomain()
*/
public function testIsCurrentWikiId( $wikiId, $db, $schema, $prefix ) {
$this->overrideConfigValues( [
diff --git a/tests/phpunit/includes/actions/ActionEntryPointTest.php b/tests/phpunit/includes/actions/ActionEntryPointTest.php
index 72f9f579373b..cdd52fa44bea 100644
--- a/tests/phpunit/includes/actions/ActionEntryPointTest.php
+++ b/tests/phpunit/includes/actions/ActionEntryPointTest.php
@@ -26,7 +26,7 @@ use WikiPage;
/**
* @group Database
- * @covers MediaWiki\Actions\ActionEntryPoint
+ * @covers \MediaWiki\Actions\ActionEntryPoint
*/
class ActionEntryPointTest extends MediaWikiIntegrationTestCase {
protected function setUp(): void {
diff --git a/tests/phpunit/includes/actions/ActionTest.php b/tests/phpunit/includes/actions/ActionTest.php
index 56eab99d62ba..afa461201437 100644
--- a/tests/phpunit/includes/actions/ActionTest.php
+++ b/tests/phpunit/includes/actions/ActionTest.php
@@ -12,7 +12,7 @@ use MediaWiki\Title\Title;
use MediaWiki\User\User;
/**
- * @covers Action
+ * @covers \Action
*
* @group Action
* @group Database
diff --git a/tests/phpunit/includes/actions/RollbackActionTest.php b/tests/phpunit/includes/actions/RollbackActionTest.php
index 69e0920507e1..e4bbc9c406a4 100644
--- a/tests/phpunit/includes/actions/RollbackActionTest.php
+++ b/tests/phpunit/includes/actions/RollbackActionTest.php
@@ -14,7 +14,7 @@ use MediaWikiIntegrationTestCase;
use RollbackAction;
/**
- * @covers RollbackAction
+ * @covers \RollbackAction
* @group Database
* @package MediaWiki\Tests\Action
*/
diff --git a/tests/phpunit/includes/actions/WatchActionTest.php b/tests/phpunit/includes/actions/WatchActionTest.php
index 5b69c0f64ab5..55392577e936 100644
--- a/tests/phpunit/includes/actions/WatchActionTest.php
+++ b/tests/phpunit/includes/actions/WatchActionTest.php
@@ -21,7 +21,7 @@ use Wikimedia\TestingAccessWrapper;
use Wikimedia\Timestamp\ConvertibleTimestamp;
/**
- * @covers WatchAction
+ * @covers \WatchAction
*
* @group Action
*/
@@ -73,28 +73,28 @@ class WatchActionTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers WatchAction::getName()
+ * @covers \WatchAction::getName()
*/
public function testGetName() {
$this->assertEquals( 'watch', $this->watchAction->getName() );
}
/**
- * @covers WatchAction::requiresUnblock()
+ * @covers \WatchAction::requiresUnblock()
*/
public function testRequiresUnlock() {
$this->assertFalse( $this->watchAction->requiresUnblock() );
}
/**
- * @covers WatchAction::doesWrites()
+ * @covers \WatchAction::doesWrites()
*/
public function testDoesWrites() {
$this->assertTrue( $this->watchAction->doesWrites() );
}
/**
- * @covers WatchAction::onSubmit()
+ * @covers \WatchAction::onSubmit()
*/
public function testOnSubmit() {
/** @var Status $actual */
@@ -104,7 +104,7 @@ class WatchActionTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers WatchAction::onSubmit()
+ * @covers \WatchAction::onSubmit()
*/
public function testOnSubmitHookAborted() {
// WatchlistExpiry feature flag.
@@ -149,7 +149,7 @@ class WatchActionTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers WatchAction::checkCanExecute()
+ * @covers \WatchAction::checkCanExecute()
*/
public function testShowUserNotLoggedIn() {
$notLoggedInUser = new User();
@@ -165,7 +165,7 @@ class WatchActionTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers WatchAction::checkCanExecute()
+ * @covers \WatchAction::checkCanExecute()
*/
public function testShowUserLoggedInNoException() {
$this->setService( 'PermissionManager', $this->createMock( PermissionManager::class ) );
@@ -190,7 +190,7 @@ class WatchActionTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers WatchAction::onSuccess()
+ * @covers \WatchAction::onSuccess()
*/
public function testOnSuccessMainNamespaceTitle() {
/** @var MockObject|IContextSource $testContext */
@@ -215,7 +215,7 @@ class WatchActionTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers WatchAction::onSuccess()
+ * @covers \WatchAction::onSuccess()
*/
public function testOnSuccessTalkPage() {
/** @var MockObject|IContextSource $testContext */
@@ -348,7 +348,7 @@ class WatchActionTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers WatchAction::getExpiryOptions()
+ * @covers \WatchAction::getExpiryOptions()
*/
public function testGetExpiryOptions() {
// Fake current time to be 2020-06-10T00:00:00Z
@@ -425,7 +425,7 @@ class WatchActionTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers WatchAction::getExpiryOptions()
+ * @covers \WatchAction::getExpiryOptions()
*/
public function testGetExpiryOptionsWithInvalidTranslations() {
$mockMessageLocalizer = $this->createMock( MockMessageLocalizer::class );
@@ -447,7 +447,7 @@ class WatchActionTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers WatchAction::getExpiryOptions()
+ * @covers \WatchAction::getExpiryOptions()
*/
public function testGetExpiryOptionsWithPartialInvalidTranslations() {
$mockMessageLocalizer = $this->createMock( MockMessageLocalizer::class );
diff --git a/tests/phpunit/includes/api/ApiAcquireTempUserNameTest.php b/tests/phpunit/includes/api/ApiAcquireTempUserNameTest.php
index dbba3612b591..72d29653fd5a 100644
--- a/tests/phpunit/includes/api/ApiAcquireTempUserNameTest.php
+++ b/tests/phpunit/includes/api/ApiAcquireTempUserNameTest.php
@@ -9,7 +9,7 @@ use MediaWiki\User\TempUser\TempUserCreator;
* @group Database
* @group medium
*
- * @covers ApiAcquireTempUserName
+ * @covers \ApiAcquireTempUserName
*/
class ApiAcquireTempUserNameTest extends ApiTestCase {
use MockAuthorityTrait;
diff --git a/tests/phpunit/includes/api/ApiBaseTest.php b/tests/phpunit/includes/api/ApiBaseTest.php
index f20565295231..a1e1f5b6da16 100644
--- a/tests/phpunit/includes/api/ApiBaseTest.php
+++ b/tests/phpunit/includes/api/ApiBaseTest.php
@@ -21,7 +21,7 @@ use Wikimedia\TestingAccessWrapper;
* @group Database
* @group medium
*
- * @covers ApiBase
+ * @covers \ApiBase
*/
class ApiBaseTest extends ApiTestCase {
@@ -1574,7 +1574,7 @@ class ApiBaseTest extends ApiTestCase {
}
/**
- * @covers ApiBase::extractRequestParams
+ * @covers \ApiBase::extractRequestParams
*/
public function testExtractRequestParams() {
$request = new FauxRequest( [
diff --git a/tests/phpunit/includes/api/ApiBlockInfoTraitTest.php b/tests/phpunit/includes/api/ApiBlockInfoTraitTest.php
index e82b15b5a034..51485e15e190 100644
--- a/tests/phpunit/includes/api/ApiBlockInfoTraitTest.php
+++ b/tests/phpunit/includes/api/ApiBlockInfoTraitTest.php
@@ -7,7 +7,7 @@ use MediaWiki\Tests\Unit\DummyServicesTrait;
use Wikimedia\TestingAccessWrapper;
/**
- * @covers ApiBlockInfoTrait
+ * @covers \ApiBlockInfoTrait
*/
class ApiBlockInfoTraitTest extends MediaWikiIntegrationTestCase {
use DummyServicesTrait;
diff --git a/tests/phpunit/includes/api/ApiBlockTest.php b/tests/phpunit/includes/api/ApiBlockTest.php
index b8464738a8c4..73aa11b57b46 100644
--- a/tests/phpunit/includes/api/ApiBlockTest.php
+++ b/tests/phpunit/includes/api/ApiBlockTest.php
@@ -16,7 +16,7 @@ use MediaWiki\Utils\MWTimestamp;
* @group Database
* @group medium
*
- * @covers ApiBlock
+ * @covers \ApiBlock
*/
class ApiBlockTest extends ApiTestCase {
use MockAuthorityTrait;
diff --git a/tests/phpunit/includes/api/ApiCSPReportTest.php b/tests/phpunit/includes/api/ApiCSPReportTest.php
index b5a7028b4b90..5dc4bbbe7f4c 100644
--- a/tests/phpunit/includes/api/ApiCSPReportTest.php
+++ b/tests/phpunit/includes/api/ApiCSPReportTest.php
@@ -6,7 +6,7 @@ use MediaWiki\Request\FauxRequest;
/**
* @group API
* @group medium
- * @covers ApiCSPReport
+ * @covers \ApiCSPReport
*/
class ApiCSPReportTest extends MediaWikiIntegrationTestCase {
diff --git a/tests/phpunit/includes/api/ApiChangeContentModelTest.php b/tests/phpunit/includes/api/ApiChangeContentModelTest.php
index 1fce12d3fe65..0b7702dbd079 100644
--- a/tests/phpunit/includes/api/ApiChangeContentModelTest.php
+++ b/tests/phpunit/includes/api/ApiChangeContentModelTest.php
@@ -12,7 +12,7 @@ use MediaWiki\Title\Title;
* @group Database
* @group medium
*
- * @covers ApiChangeContentModel
+ * @covers \ApiChangeContentModel
* @author DannyS712
*/
class ApiChangeContentModelTest extends ApiTestCase {
diff --git a/tests/phpunit/includes/api/ApiCheckTokenTest.php b/tests/phpunit/includes/api/ApiCheckTokenTest.php
index f1d95d03d657..da90f56df5c5 100644
--- a/tests/phpunit/includes/api/ApiCheckTokenTest.php
+++ b/tests/phpunit/includes/api/ApiCheckTokenTest.php
@@ -5,7 +5,7 @@ use MediaWiki\Session\Token;
/**
* @group API
* @group medium
- * @covers ApiCheckToken
+ * @covers \ApiCheckToken
*/
class ApiCheckTokenTest extends ApiTestCase {
diff --git a/tests/phpunit/includes/api/ApiClearHasMsgTest.php b/tests/phpunit/includes/api/ApiClearHasMsgTest.php
index d8f6759b90da..fb2a2d371da4 100644
--- a/tests/phpunit/includes/api/ApiClearHasMsgTest.php
+++ b/tests/phpunit/includes/api/ApiClearHasMsgTest.php
@@ -7,7 +7,7 @@ use MediaWiki\User\UserIdentityValue;
* @group API
* @group medium
* @group Database
- * @covers ApiClearHasMsg
+ * @covers \ApiClearHasMsg
*/
class ApiClearHasMsgTest extends ApiTestCase {
diff --git a/tests/phpunit/includes/api/ApiComparePagesTest.php b/tests/phpunit/includes/api/ApiComparePagesTest.php
index 64979198b94a..c645642d23e1 100644
--- a/tests/phpunit/includes/api/ApiComparePagesTest.php
+++ b/tests/phpunit/includes/api/ApiComparePagesTest.php
@@ -10,7 +10,7 @@ use MediaWiki\Title\TitleValue;
* @group API
* @group Database
* @group medium
- * @covers ApiComparePages
+ * @covers \ApiComparePages
*/
class ApiComparePagesTest extends ApiTestCase {
diff --git a/tests/phpunit/includes/api/ApiContinuationManagerTest.php b/tests/phpunit/includes/api/ApiContinuationManagerTest.php
index 31decabb76af..3f6e882170c8 100644
--- a/tests/phpunit/includes/api/ApiContinuationManagerTest.php
+++ b/tests/phpunit/includes/api/ApiContinuationManagerTest.php
@@ -5,7 +5,7 @@ use MediaWiki\Context\RequestContext;
use MediaWiki\Request\FauxRequest;
/**
- * @covers ApiContinuationManager
+ * @covers \ApiContinuationManager
* @group API
*/
class ApiContinuationManagerTest extends ApiTestCase {
diff --git a/tests/phpunit/includes/api/ApiCreateTempUserTraitTest.php b/tests/phpunit/includes/api/ApiCreateTempUserTraitTest.php
index 68ebf905e782..ed955786a81f 100644
--- a/tests/phpunit/includes/api/ApiCreateTempUserTraitTest.php
+++ b/tests/phpunit/includes/api/ApiCreateTempUserTraitTest.php
@@ -6,7 +6,7 @@ use MediaWiki\User\User;
use Wikimedia\TestingAccessWrapper;
/**
- * @covers ApiCreateTempUserTrait
+ * @covers \ApiCreateTempUserTrait
*/
class ApiCreateTempUserTraitTest extends MediaWikiIntegrationTestCase {
diff --git a/tests/phpunit/includes/api/ApiDeleteTest.php b/tests/phpunit/includes/api/ApiDeleteTest.php
index 13dd278260a7..3c943cdbdebc 100644
--- a/tests/phpunit/includes/api/ApiDeleteTest.php
+++ b/tests/phpunit/includes/api/ApiDeleteTest.php
@@ -13,7 +13,7 @@ use MediaWiki\User\User;
* @group Database
* @group medium
*
- * @covers ApiDelete
+ * @covers \ApiDelete
*/
class ApiDeleteTest extends ApiTestCase {
diff --git a/tests/phpunit/includes/api/ApiDisabledTest.php b/tests/phpunit/includes/api/ApiDisabledTest.php
index aaa555759995..99e83f594975 100644
--- a/tests/phpunit/includes/api/ApiDisabledTest.php
+++ b/tests/phpunit/includes/api/ApiDisabledTest.php
@@ -4,7 +4,7 @@
* @group API
* @group medium
*
- * @covers ApiDisabled
+ * @covers \ApiDisabled
*/
class ApiDisabledTest extends ApiTestCase {
public function testDisabled() {
diff --git a/tests/phpunit/includes/api/ApiEditPageTest.php b/tests/phpunit/includes/api/ApiEditPageTest.php
index 300929d1e6d6..ebce8f2f196f 100644
--- a/tests/phpunit/includes/api/ApiEditPageTest.php
+++ b/tests/phpunit/includes/api/ApiEditPageTest.php
@@ -20,7 +20,7 @@ use MediaWiki\Utils\MWTimestamp;
* @group Database
* @group medium
*
- * @covers ApiEditPage
+ * @covers \ApiEditPage
*/
class ApiEditPageTest extends ApiTestCase {
diff --git a/tests/phpunit/includes/api/ApiErrorFormatterTest.php b/tests/phpunit/includes/api/ApiErrorFormatterTest.php
index 88bd44617869..75abd600f344 100644
--- a/tests/phpunit/includes/api/ApiErrorFormatterTest.php
+++ b/tests/phpunit/includes/api/ApiErrorFormatterTest.php
@@ -10,7 +10,7 @@ use Wikimedia\TestingAccessWrapper;
class ApiErrorFormatterTest extends MediaWikiLangTestCase {
/**
- * @covers ApiErrorFormatter
+ * @covers \ApiErrorFormatter
*/
public function testErrorFormatterBasics() {
$result = new ApiResult( 8_388_608 );
@@ -37,8 +37,8 @@ class ApiErrorFormatterTest extends MediaWikiLangTestCase {
}
/**
- * @covers ApiErrorFormatter
- * @covers ApiErrorFormatter_BackCompat
+ * @covers \ApiErrorFormatter
+ * @covers \ApiErrorFormatter_BackCompat
*/
public function testNewWithFormat() {
$result = new ApiResult( 8_388_608 );
@@ -58,7 +58,7 @@ class ApiErrorFormatterTest extends MediaWikiLangTestCase {
}
/**
- * @covers ApiErrorFormatter
+ * @covers \ApiErrorFormatter
* @dataProvider provideErrorFormatter
*/
public function testErrorFormatter( $format, $lang, $useDB,
@@ -398,7 +398,7 @@ class ApiErrorFormatterTest extends MediaWikiLangTestCase {
}
/**
- * @covers ApiErrorFormatter_BackCompat
+ * @covers \ApiErrorFormatter_BackCompat
*/
public function testErrorFormatterBC() {
$aboutpage = wfMessage( 'aboutpage' );
@@ -594,8 +594,8 @@ class ApiErrorFormatterTest extends MediaWikiLangTestCase {
/**
* @dataProvider provideGetMessageFromException
- * @covers ApiErrorFormatter::getMessageFromException
- * @covers ApiErrorFormatter::formatException
+ * @covers \ApiErrorFormatter::getMessageFromException
+ * @covers \ApiErrorFormatter::formatException
* @param Exception $exception
* @param array $options
* @param array $expect
@@ -622,7 +622,7 @@ class ApiErrorFormatterTest extends MediaWikiLangTestCase {
/**
* @dataProvider provideGetMessageFromException
- * @covers ApiErrorFormatter_BackCompat::formatException
+ * @covers \ApiErrorFormatter_BackCompat::formatException
* @param Exception $exception
* @param array $options
* @param array $expect
@@ -691,9 +691,9 @@ class ApiErrorFormatterTest extends MediaWikiLangTestCase {
}
/**
- * @covers ApiErrorFormatter::addMessagesFromStatus
- * @covers ApiErrorFormatter::addWarningOrError
- * @covers ApiErrorFormatter::formatMessageInternal
+ * @covers \ApiErrorFormatter::addMessagesFromStatus
+ * @covers \ApiErrorFormatter::addWarningOrError
+ * @covers \ApiErrorFormatter::formatMessageInternal
*/
public function testAddMessagesFromStatus_filter() {
$result = new ApiResult( 8_388_608 );
@@ -733,7 +733,7 @@ class ApiErrorFormatterTest extends MediaWikiLangTestCase {
/**
* @dataProvider provideIsValidApiCode
- * @covers ApiErrorFormatter::isValidApiCode
+ * @covers \ApiErrorFormatter::isValidApiCode
* @param string $code
* @param bool $expect
*/
diff --git a/tests/phpunit/includes/api/ApiLoginTest.php b/tests/phpunit/includes/api/ApiLoginTest.php
index 4cc62d538d5d..3211ab8a2665 100644
--- a/tests/phpunit/includes/api/ApiLoginTest.php
+++ b/tests/phpunit/includes/api/ApiLoginTest.php
@@ -12,7 +12,7 @@ use Wikimedia\TestingAccessWrapper;
* @group Database
* @group medium
*
- * @covers ApiLogin
+ * @covers \ApiLogin
*/
class ApiLoginTest extends ApiTestCase {
diff --git a/tests/phpunit/includes/api/ApiLogoutTest.php b/tests/phpunit/includes/api/ApiLogoutTest.php
index c5a38e9e0fdc..5523e9afa4d7 100644
--- a/tests/phpunit/includes/api/ApiLogoutTest.php
+++ b/tests/phpunit/includes/api/ApiLogoutTest.php
@@ -7,7 +7,7 @@ use MediaWiki\User\User;
* @group Database
* @group medium
*
- * @covers ApiLogout
+ * @covers \ApiLogout
*/
class ApiLogoutTest extends ApiTestCase {
diff --git a/tests/phpunit/includes/api/ApiMainTest.php b/tests/phpunit/includes/api/ApiMainTest.php
index 6195d4744f4f..67d646db3ce8 100644
--- a/tests/phpunit/includes/api/ApiMainTest.php
+++ b/tests/phpunit/includes/api/ApiMainTest.php
@@ -25,7 +25,7 @@ use Wikimedia\Timestamp\ConvertibleTimestamp;
* @group Database
* @group medium
*
- * @covers ApiMain
+ * @covers \ApiMain
*/
class ApiMainTest extends ApiTestCase {
use MockAuthorityTrait;
diff --git a/tests/phpunit/includes/api/ApiMessageTest.php b/tests/phpunit/includes/api/ApiMessageTest.php
index 1ba4427ac8c3..83355dd8825b 100644
--- a/tests/phpunit/includes/api/ApiMessageTest.php
+++ b/tests/phpunit/includes/api/ApiMessageTest.php
@@ -27,7 +27,7 @@ class ApiMessageTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers ApiMessageTrait
+ * @covers \ApiMessageTrait
* @dataProvider provideCodeDefaults
*/
public function testCodeDefaults( $msg, $expectedCode ) {
@@ -46,7 +46,7 @@ class ApiMessageTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers ApiMessageTrait
+ * @covers \ApiMessageTrait
* @dataProvider provideInvalidCode
*/
public function testInvalidCode( $code ) {
@@ -77,8 +77,8 @@ class ApiMessageTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers ApiMessage
- * @covers ApiMessageTrait
+ * @covers \ApiMessage
+ * @covers \ApiMessageTrait
*/
public function testApiMessage() {
$msg = new Message( [ 'foo', 'bar' ], [ 'baz' ] );
@@ -119,8 +119,8 @@ class ApiMessageTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers ApiRawMessage
- * @covers ApiMessageTrait
+ * @covers \ApiRawMessage
+ * @covers \ApiMessageTrait
*/
public function testApiRawMessage() {
$msg = new RawMessage( 'foo', [ 'baz' ] );
@@ -160,7 +160,7 @@ class ApiMessageTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers ApiMessage::create
+ * @covers \ApiMessage::create
*/
public function testApiMessageCreate() {
$this->assertInstanceOf( ApiMessage::class, ApiMessage::create( new Message( 'mainpage' ) ) );
diff --git a/tests/phpunit/includes/api/ApiMoveTest.php b/tests/phpunit/includes/api/ApiMoveTest.php
index 61ab6f7b7fc0..494c5ded7fcf 100644
--- a/tests/phpunit/includes/api/ApiMoveTest.php
+++ b/tests/phpunit/includes/api/ApiMoveTest.php
@@ -11,7 +11,7 @@ use MediaWiki\User\User;
* @group Database
* @group medium
*
- * @covers ApiMove
+ * @covers \ApiMove
*/
class ApiMoveTest extends ApiTestCase {
diff --git a/tests/phpunit/includes/api/ApiOpenSearchTest.php b/tests/phpunit/includes/api/ApiOpenSearchTest.php
index 4d65fb328eb5..67de632b1d2e 100644
--- a/tests/phpunit/includes/api/ApiOpenSearchTest.php
+++ b/tests/phpunit/includes/api/ApiOpenSearchTest.php
@@ -6,7 +6,7 @@ use Wikimedia\ParamValidator\ParamValidator;
/**
* TODO convert to unit test, no integration is needed
*
- * @covers ApiOpenSearch
+ * @covers \ApiOpenSearch
*/
class ApiOpenSearchTest extends MediaWikiIntegrationTestCase {
public function testGetAllowedParams() {
diff --git a/tests/phpunit/includes/api/ApiOptionsTest.php b/tests/phpunit/includes/api/ApiOptionsTest.php
index 9a99ac6b14ae..eed6e6f8ed23 100644
--- a/tests/phpunit/includes/api/ApiOptionsTest.php
+++ b/tests/phpunit/includes/api/ApiOptionsTest.php
@@ -16,7 +16,7 @@ use PHPUnit\Framework\MockObject\MockObject;
* @group Database
* @group medium
*
- * @covers ApiOptions
+ * @covers \ApiOptions
*/
class ApiOptionsTest extends ApiTestCase {
use MockAuthorityTrait;
diff --git a/tests/phpunit/includes/api/ApiPageSetTest.php b/tests/phpunit/includes/api/ApiPageSetTest.php
index fd5378aba5ed..2df9355c11d9 100644
--- a/tests/phpunit/includes/api/ApiPageSetTest.php
+++ b/tests/phpunit/includes/api/ApiPageSetTest.php
@@ -15,7 +15,7 @@ use Wikimedia\TestingAccessWrapper;
* @group API
* @group medium
* @group Database
- * @covers ApiPageSet
+ * @covers \ApiPageSet
*/
class ApiPageSetTest extends ApiTestCase {
use DummyServicesTrait;
diff --git a/tests/phpunit/includes/api/ApiParseTest.php b/tests/phpunit/includes/api/ApiParseTest.php
index 2c8bcb4ee7ad..9c900f7b494a 100644
--- a/tests/phpunit/includes/api/ApiParseTest.php
+++ b/tests/phpunit/includes/api/ApiParseTest.php
@@ -30,7 +30,7 @@ use MediaWiki\Title\TitleValue;
* @group Database
* @group medium
*
- * @covers ApiParse
+ * @covers \ApiParse
*/
class ApiParseTest extends ApiTestCase {
use DummyServicesTrait;
diff --git a/tests/phpunit/includes/api/ApiProtectTest.php b/tests/phpunit/includes/api/ApiProtectTest.php
index d6fdebed4098..55fc76c813df 100644
--- a/tests/phpunit/includes/api/ApiProtectTest.php
+++ b/tests/phpunit/includes/api/ApiProtectTest.php
@@ -10,7 +10,7 @@ use MediaWiki\Title\Title;
* @group Database
* @group medium
*
- * @covers ApiProtect
+ * @covers \ApiProtect
*/
class ApiProtectTest extends ApiTestCase {
@@ -21,7 +21,7 @@ class ApiProtectTest extends ApiTestCase {
}
/**
- * @covers ApiProtect::execute()
+ * @covers \ApiProtect::execute()
*/
public function testProtectWithWatch(): void {
$title = Title::makeTitle( NS_MAIN, 'TestProtectWithWatch' );
diff --git a/tests/phpunit/includes/api/ApiPurgeTest.php b/tests/phpunit/includes/api/ApiPurgeTest.php
index 3ab42316e81f..e65e8f0a31c6 100644
--- a/tests/phpunit/includes/api/ApiPurgeTest.php
+++ b/tests/phpunit/includes/api/ApiPurgeTest.php
@@ -9,7 +9,7 @@ use MediaWiki\Permissions\PermissionStatus;
* @group Database
* @group medium
*
- * @covers ApiPurge
+ * @covers \ApiPurge
*/
class ApiPurgeTest extends ApiTestCase {
diff --git a/tests/phpunit/includes/api/ApiResultTest.php b/tests/phpunit/includes/api/ApiResultTest.php
index 62f15d72073d..cf55a75f2b2c 100644
--- a/tests/phpunit/includes/api/ApiResultTest.php
+++ b/tests/phpunit/includes/api/ApiResultTest.php
@@ -3,13 +3,13 @@
use MediaWiki\Title\Title;
/**
- * @covers ApiResult
+ * @covers \ApiResult
* @group API
*/
class ApiResultTest extends MediaWikiIntegrationTestCase {
/**
- * @covers ApiResult
+ * @covers \ApiResult
*/
public function testStaticDataMethods() {
$arr = [];
@@ -234,7 +234,7 @@ class ApiResultTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers ApiResult
+ * @covers \ApiResult
*/
public function testInstanceDataMethods() {
$result = new ApiResult( 8_388_608 );
@@ -537,7 +537,7 @@ class ApiResultTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers ApiResult
+ * @covers \ApiResult
*/
public function testMetadata() {
$arr = [ 'foo' => [ 'bar' => [] ] ];
@@ -602,7 +602,7 @@ class ApiResultTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers ApiResult
+ * @covers \ApiResult
*/
public function testUtilityFunctions() {
$arr = [
@@ -691,7 +691,7 @@ class ApiResultTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers ApiResult
+ * @covers \ApiResult
* @dataProvider provideTransformations
* @param string $label
* @param array $input
@@ -1257,7 +1257,7 @@ class ApiResultTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers ApiResult
+ * @covers \ApiResult
*/
public function testAddMetadataToResultVars() {
$arr = [
diff --git a/tests/phpunit/includes/api/ApiRevisionDeleteTest.php b/tests/phpunit/includes/api/ApiRevisionDeleteTest.php
index d08110818603..b126f376b291 100644
--- a/tests/phpunit/includes/api/ApiRevisionDeleteTest.php
+++ b/tests/phpunit/includes/api/ApiRevisionDeleteTest.php
@@ -9,7 +9,7 @@ use MediaWiki\Title\Title;
/**
* Tests for action=revisiondelete
- * @covers APIRevisionDelete
+ * @covers \APIRevisionDelete
* @group API
* @group medium
* @group Database
diff --git a/tests/phpunit/includes/api/ApiRollbackTest.php b/tests/phpunit/includes/api/ApiRollbackTest.php
index 2fa2ff5c6392..f28eacb962cb 100644
--- a/tests/phpunit/includes/api/ApiRollbackTest.php
+++ b/tests/phpunit/includes/api/ApiRollbackTest.php
@@ -10,7 +10,7 @@ use MediaWiki\Title\Title;
* @group Database
* @group medium
*
- * @covers ApiRollback
+ * @covers \ApiRollback
*/
class ApiRollbackTest extends ApiTestCase {
diff --git a/tests/phpunit/includes/api/ApiSetNotificationTimestampIntegrationTest.php b/tests/phpunit/includes/api/ApiSetNotificationTimestampIntegrationTest.php
index 340f0c2c8bfe..d1b8fadd3d18 100644
--- a/tests/phpunit/includes/api/ApiSetNotificationTimestampIntegrationTest.php
+++ b/tests/phpunit/includes/api/ApiSetNotificationTimestampIntegrationTest.php
@@ -2,7 +2,7 @@
/**
* @author Addshore
- * @covers ApiSetNotificationTimestamp
+ * @covers \ApiSetNotificationTimestamp
* @group API
* @group medium
* @group Database
diff --git a/tests/phpunit/includes/api/ApiStashEditTest.php b/tests/phpunit/includes/api/ApiStashEditTest.php
index 7ade3def88a9..0cf282faa274 100644
--- a/tests/phpunit/includes/api/ApiStashEditTest.php
+++ b/tests/phpunit/includes/api/ApiStashEditTest.php
@@ -11,7 +11,7 @@ use Wikimedia\TestingAccessWrapper;
use Wikimedia\Timestamp\ConvertibleTimestamp;
/**
- * @covers ApiStashEdit
+ * @covers \ApiStashEdit
* @covers \MediaWiki\Storage\PageEditStash
* @group API
* @group medium
diff --git a/tests/phpunit/includes/api/ApiUnblockTest.php b/tests/phpunit/includes/api/ApiUnblockTest.php
index f37302123378..182324f87cd4 100644
--- a/tests/phpunit/includes/api/ApiUnblockTest.php
+++ b/tests/phpunit/includes/api/ApiUnblockTest.php
@@ -9,7 +9,7 @@ use MediaWiki\User\User;
* @group Database
* @group medium
*
- * @covers ApiUnblock
+ * @covers \ApiUnblock
*/
class ApiUnblockTest extends ApiTestCase {
/** @var User */
diff --git a/tests/phpunit/includes/api/ApiUndeleteTest.php b/tests/phpunit/includes/api/ApiUndeleteTest.php
index 8487bbb1c4cf..a3dbc5968782 100644
--- a/tests/phpunit/includes/api/ApiUndeleteTest.php
+++ b/tests/phpunit/includes/api/ApiUndeleteTest.php
@@ -10,7 +10,7 @@ use MediaWiki\Title\Title;
* @group Database
* @group medium
*
- * @covers ApiUndelete
+ * @covers \ApiUndelete
*/
class ApiUndeleteTest extends ApiTestCase {
@@ -21,7 +21,7 @@ class ApiUndeleteTest extends ApiTestCase {
}
/**
- * @covers ApiUndelete::execute()
+ * @covers \ApiUndelete::execute()
*/
public function testUndeleteWithWatch(): void {
$title = Title::makeTitle( NS_MAIN, 'TestUndeleteWithWatch' );
diff --git a/tests/phpunit/includes/api/ApiUploadTest.php b/tests/phpunit/includes/api/ApiUploadTest.php
index 0e6e6d6aca3b..8333f3acb17f 100644
--- a/tests/phpunit/includes/api/ApiUploadTest.php
+++ b/tests/phpunit/includes/api/ApiUploadTest.php
@@ -10,7 +10,7 @@ use MediaWiki\WikiMap\WikiMap;
* @group Database
* @group medium
*
- * @covers ApiUpload
+ * @covers \ApiUpload
*/
class ApiUploadTest extends ApiUploadTestCase {
private ?Authority $uploader = null;
diff --git a/tests/phpunit/includes/api/ApiUsageExceptionTest.php b/tests/phpunit/includes/api/ApiUsageExceptionTest.php
index bb9454c13c05..fad33b8fa52a 100644
--- a/tests/phpunit/includes/api/ApiUsageExceptionTest.php
+++ b/tests/phpunit/includes/api/ApiUsageExceptionTest.php
@@ -1,7 +1,7 @@
<?php
/**
- * @covers ApiUsageException
+ * @covers \ApiUsageException
*/
class ApiUsageExceptionTest extends MediaWikiIntegrationTestCase {
diff --git a/tests/phpunit/includes/api/ApiUserrightsTest.php b/tests/phpunit/includes/api/ApiUserrightsTest.php
index 087e433d7d61..fbc8dcf2232f 100644
--- a/tests/phpunit/includes/api/ApiUserrightsTest.php
+++ b/tests/phpunit/includes/api/ApiUserrightsTest.php
@@ -11,7 +11,7 @@ use MediaWiki\User\User;
* @group Database
* @group medium
*
- * @covers ApiUserrights
+ * @covers \ApiUserrights
*/
class ApiUserrightsTest extends ApiTestCase {
diff --git a/tests/phpunit/includes/api/ApiWatchTest.php b/tests/phpunit/includes/api/ApiWatchTest.php
index 8e43d34813f9..1ae817ab4093 100644
--- a/tests/phpunit/includes/api/ApiWatchTest.php
+++ b/tests/phpunit/includes/api/ApiWatchTest.php
@@ -8,7 +8,7 @@ use Wikimedia\Timestamp\ConvertibleTimestamp;
* @group API
* @group Database
* @group medium
- * @covers ApiWatch
+ * @covers \ApiWatch
*/
class ApiWatchTest extends ApiTestCase {
protected function setUp(): void {
diff --git a/tests/phpunit/includes/api/format/ApiFormatBaseTest.php b/tests/phpunit/includes/api/format/ApiFormatBaseTest.php
index 8d0a1eaa6113..9d1a3528d05c 100644
--- a/tests/phpunit/includes/api/format/ApiFormatBaseTest.php
+++ b/tests/phpunit/includes/api/format/ApiFormatBaseTest.php
@@ -9,7 +9,7 @@ use Wikimedia\TestingAccessWrapper;
/**
* @group API
* @group Database
- * @covers ApiFormatBase
+ * @covers \ApiFormatBase
*/
class ApiFormatBaseTest extends ApiFormatTestBase {
diff --git a/tests/phpunit/includes/api/format/ApiFormatJsonTest.php b/tests/phpunit/includes/api/format/ApiFormatJsonTest.php
index e82d3c2ce090..5ad6475539b6 100644
--- a/tests/phpunit/includes/api/format/ApiFormatJsonTest.php
+++ b/tests/phpunit/includes/api/format/ApiFormatJsonTest.php
@@ -2,7 +2,7 @@
/**
* @group API
- * @covers ApiFormatJson
+ * @covers \ApiFormatJson
*/
class ApiFormatJsonTest extends ApiFormatTestBase {
diff --git a/tests/phpunit/includes/api/format/ApiFormatNoneTest.php b/tests/phpunit/includes/api/format/ApiFormatNoneTest.php
index 87e36703c475..fc9d889dc29f 100644
--- a/tests/phpunit/includes/api/format/ApiFormatNoneTest.php
+++ b/tests/phpunit/includes/api/format/ApiFormatNoneTest.php
@@ -2,7 +2,7 @@
/**
* @group API
- * @covers ApiFormatNone
+ * @covers \ApiFormatNone
*/
class ApiFormatNoneTest extends ApiFormatTestBase {
diff --git a/tests/phpunit/includes/api/format/ApiFormatPhpTest.php b/tests/phpunit/includes/api/format/ApiFormatPhpTest.php
index 392fe7781542..c3d41a105929 100644
--- a/tests/phpunit/includes/api/format/ApiFormatPhpTest.php
+++ b/tests/phpunit/includes/api/format/ApiFormatPhpTest.php
@@ -2,7 +2,7 @@
/**
* @group API
- * @covers ApiFormatPhp
+ * @covers \ApiFormatPhp
*/
class ApiFormatPhpTest extends ApiFormatTestBase {
diff --git a/tests/phpunit/includes/api/format/ApiFormatRawTest.php b/tests/phpunit/includes/api/format/ApiFormatRawTest.php
index a5d9d3f6f2c1..a8d17caabbf0 100644
--- a/tests/phpunit/includes/api/format/ApiFormatRawTest.php
+++ b/tests/phpunit/includes/api/format/ApiFormatRawTest.php
@@ -2,7 +2,7 @@
/**
* @group API
- * @covers ApiFormatRaw
+ * @covers \ApiFormatRaw
*/
class ApiFormatRawTest extends ApiFormatTestBase {
diff --git a/tests/phpunit/includes/api/format/ApiFormatXmlTest.php b/tests/phpunit/includes/api/format/ApiFormatXmlTest.php
index cb364f0c6dbd..2e3e16ae5f1c 100644
--- a/tests/phpunit/includes/api/format/ApiFormatXmlTest.php
+++ b/tests/phpunit/includes/api/format/ApiFormatXmlTest.php
@@ -5,7 +5,7 @@ use MediaWiki\Title\Title;
/**
* @group API
* @group Database
- * @covers ApiFormatXml
+ * @covers \ApiFormatXml
*/
class ApiFormatXmlTest extends ApiFormatTestBase {
diff --git a/tests/phpunit/includes/api/query/ApiQueryAllPagesTest.php b/tests/phpunit/includes/api/query/ApiQueryAllPagesTest.php
index 808af63afa3e..2d474f2b2b8a 100644
--- a/tests/phpunit/includes/api/query/ApiQueryAllPagesTest.php
+++ b/tests/phpunit/includes/api/query/ApiQueryAllPagesTest.php
@@ -7,7 +7,7 @@ use MediaWiki\Title\Title;
* @group Database
* @group medium
*
- * @covers ApiQueryAllPages
+ * @covers \ApiQueryAllPages
*/
class ApiQueryAllPagesTest extends ApiTestCase {
/**
diff --git a/tests/phpunit/includes/api/query/ApiQueryAllRevisionsTest.php b/tests/phpunit/includes/api/query/ApiQueryAllRevisionsTest.php
index 8959654c30a6..9948498274e3 100644
--- a/tests/phpunit/includes/api/query/ApiQueryAllRevisionsTest.php
+++ b/tests/phpunit/includes/api/query/ApiQueryAllRevisionsTest.php
@@ -6,7 +6,7 @@ use MediaWiki\Title\Title;
* @group API
* @group Database
* @group medium
- * @covers ApiQueryAllRevisions
+ * @covers \ApiQueryAllRevisions
*/
class ApiQueryAllRevisionsTest extends ApiTestCase {
diff --git a/tests/phpunit/includes/api/query/ApiQueryAllUsersTest.php b/tests/phpunit/includes/api/query/ApiQueryAllUsersTest.php
index e07b8faef9e2..f4008d3b97c9 100644
--- a/tests/phpunit/includes/api/query/ApiQueryAllUsersTest.php
+++ b/tests/phpunit/includes/api/query/ApiQueryAllUsersTest.php
@@ -8,7 +8,7 @@ use MediaWiki\Tests\Unit\Permissions\MockAuthorityTrait;
* @group Database
* @group medium
*
- * @covers ApiQueryAllUsers
+ * @covers \ApiQueryAllUsers
*/
class ApiQueryAllUsersTest extends ApiTestCase {
use MockAuthorityTrait;
diff --git a/tests/phpunit/includes/api/query/ApiQueryBasicTest.php b/tests/phpunit/includes/api/query/ApiQueryBasicTest.php
index cb712da188ee..01b1ccc0def1 100644
--- a/tests/phpunit/includes/api/query/ApiQueryBasicTest.php
+++ b/tests/phpunit/includes/api/query/ApiQueryBasicTest.php
@@ -28,7 +28,7 @@ use MediaWiki\Title\Title;
* @group API
* @group Database
* @group medium
- * @covers ApiQuery
+ * @covers \ApiQuery
*/
class ApiQueryBasicTest extends ApiQueryTestBase {
protected $exceptionFromAddDBData;
diff --git a/tests/phpunit/includes/api/query/ApiQueryBlockInfoTraitTest.php b/tests/phpunit/includes/api/query/ApiQueryBlockInfoTraitTest.php
index 3f6ea3f37a57..4a681f8a4963 100644
--- a/tests/phpunit/includes/api/query/ApiQueryBlockInfoTraitTest.php
+++ b/tests/phpunit/includes/api/query/ApiQueryBlockInfoTraitTest.php
@@ -7,7 +7,7 @@ use Wikimedia\TestingAccessWrapper;
use Wikimedia\Timestamp\ConvertibleTimestamp;
/**
- * @covers ApiQueryBlockInfoTrait
+ * @covers \ApiQueryBlockInfoTrait
*/
class ApiQueryBlockInfoTraitTest extends MediaWikiIntegrationTestCase {
use MockAuthorityTrait;
diff --git a/tests/phpunit/includes/api/query/ApiQueryBlocksTest.php b/tests/phpunit/includes/api/query/ApiQueryBlocksTest.php
index 3065893f3388..517a02a2d906 100644
--- a/tests/phpunit/includes/api/query/ApiQueryBlocksTest.php
+++ b/tests/phpunit/includes/api/query/ApiQueryBlocksTest.php
@@ -12,7 +12,7 @@ use MediaWiki\MainConfigNames;
* @group Database
* @group medium
*
- * @covers ApiQueryBlocks
+ * @covers \ApiQueryBlocks
*/
class ApiQueryBlocksTest extends ApiTestCase {
diff --git a/tests/phpunit/includes/api/query/ApiQueryContinue2Test.php b/tests/phpunit/includes/api/query/ApiQueryContinue2Test.php
index a3fcc633cc5c..e2bf0f56ee70 100644
--- a/tests/phpunit/includes/api/query/ApiQueryContinue2Test.php
+++ b/tests/phpunit/includes/api/query/ApiQueryContinue2Test.php
@@ -22,7 +22,7 @@
* @group API
* @group Database
* @group medium
- * @covers ApiQuery
+ * @covers \ApiQuery
*/
class ApiQueryContinue2Test extends ApiQueryContinueTestBase {
protected $exceptionFromAddDBData;
diff --git a/tests/phpunit/includes/api/query/ApiQueryContinueTest.php b/tests/phpunit/includes/api/query/ApiQueryContinueTest.php
index 67ef055041c3..75703743dfaf 100644
--- a/tests/phpunit/includes/api/query/ApiQueryContinueTest.php
+++ b/tests/phpunit/includes/api/query/ApiQueryContinueTest.php
@@ -26,7 +26,7 @@
* @group API
* @group Database
* @group medium
- * @covers ApiQuery
+ * @covers \ApiQuery
*/
class ApiQueryContinueTest extends ApiQueryContinueTestBase {
protected $exceptionFromAddDBData;
diff --git a/tests/phpunit/includes/api/query/ApiQueryDisabledTest.php b/tests/phpunit/includes/api/query/ApiQueryDisabledTest.php
index 52f1fdf7e0ae..dc8cb0a78420 100644
--- a/tests/phpunit/includes/api/query/ApiQueryDisabledTest.php
+++ b/tests/phpunit/includes/api/query/ApiQueryDisabledTest.php
@@ -4,7 +4,7 @@
* @group API
* @group medium
*
- * @covers ApiQueryDisabled
+ * @covers \ApiQueryDisabled
*/
class ApiQueryDisabledTest extends ApiTestCase {
public function testDisabled() {
diff --git a/tests/phpunit/includes/api/query/ApiQueryImageInfoTest.php b/tests/phpunit/includes/api/query/ApiQueryImageInfoTest.php
index 0c11255e142a..57c13482be0b 100644
--- a/tests/phpunit/includes/api/query/ApiQueryImageInfoTest.php
+++ b/tests/phpunit/includes/api/query/ApiQueryImageInfoTest.php
@@ -6,7 +6,7 @@ use MediaWiki\User\UserIdentityValue;
use MediaWiki\Utils\MWTimestamp;
/**
- * @covers ApiQueryImageInfo
+ * @covers \ApiQueryImageInfo
* @group API
* @group medium
* @group Database
diff --git a/tests/phpunit/includes/api/query/ApiQueryInfoTest.php b/tests/phpunit/includes/api/query/ApiQueryInfoTest.php
index cc61197d8e28..55253ec54e78 100644
--- a/tests/phpunit/includes/api/query/ApiQueryInfoTest.php
+++ b/tests/phpunit/includes/api/query/ApiQueryInfoTest.php
@@ -12,7 +12,7 @@ use Wikimedia\Timestamp\ConvertibleTimestamp;
* @group medium
* @group Database
*
- * @covers ApiQueryInfo
+ * @covers \ApiQueryInfo
*/
class ApiQueryInfoTest extends ApiTestCase {
diff --git a/tests/phpunit/includes/api/query/ApiQueryLanguageinfoTest.php b/tests/phpunit/includes/api/query/ApiQueryLanguageinfoTest.php
index 599b2b314664..294ecdde0bc2 100644
--- a/tests/phpunit/includes/api/query/ApiQueryLanguageinfoTest.php
+++ b/tests/phpunit/includes/api/query/ApiQueryLanguageinfoTest.php
@@ -6,7 +6,7 @@ use Wikimedia\Timestamp\ConvertibleTimestamp;
* @group API
* @group medium
*
- * @covers ApiQueryLanguageinfo
+ * @covers \ApiQueryLanguageinfo
*/
class ApiQueryLanguageinfoTest extends ApiTestCase {
diff --git a/tests/phpunit/includes/api/query/ApiQueryLogEventsTest.php b/tests/phpunit/includes/api/query/ApiQueryLogEventsTest.php
index b376c414ac07..f83815cab2e9 100644
--- a/tests/phpunit/includes/api/query/ApiQueryLogEventsTest.php
+++ b/tests/phpunit/includes/api/query/ApiQueryLogEventsTest.php
@@ -5,7 +5,7 @@ use MediaWiki\Tests\User\TempUser\TempUserTestTrait;
use MediaWiki\User\UserIdentityValue;
/**
- * @covers ApiQueryLogEvents
+ * @covers \ApiQueryLogEvents
* @group API
* @group Database
* @group medium
diff --git a/tests/phpunit/includes/api/query/ApiQueryPrefixSearchTest.php b/tests/phpunit/includes/api/query/ApiQueryPrefixSearchTest.php
index 9c6ca1d37d93..77c133e061e6 100644
--- a/tests/phpunit/includes/api/query/ApiQueryPrefixSearchTest.php
+++ b/tests/phpunit/includes/api/query/ApiQueryPrefixSearchTest.php
@@ -7,7 +7,7 @@ use MediaWiki\MainConfigNames;
* @group medium
* @group Database
*
- * @covers ApiQueryPrefixSearch
+ * @covers \ApiQueryPrefixSearch
*/
class ApiQueryPrefixSearchTest extends ApiTestCase {
private const TEST_QUERY = 'unittest';
diff --git a/tests/phpunit/includes/api/query/ApiQueryRecentChangesIntegrationTest.php b/tests/phpunit/includes/api/query/ApiQueryRecentChangesIntegrationTest.php
index 955540326edb..39084956f295 100644
--- a/tests/phpunit/includes/api/query/ApiQueryRecentChangesIntegrationTest.php
+++ b/tests/phpunit/includes/api/query/ApiQueryRecentChangesIntegrationTest.php
@@ -12,7 +12,7 @@ use MediaWiki\User\UserIdentityValue;
* @group Database
* @group medium
*
- * @covers ApiQueryRecentChanges
+ * @covers \ApiQueryRecentChanges
*/
class ApiQueryRecentChangesIntegrationTest extends ApiTestCase {
diff --git a/tests/phpunit/includes/api/query/ApiQueryRevisionsTest.php b/tests/phpunit/includes/api/query/ApiQueryRevisionsTest.php
index 4fe544959688..4b6e8d025ddb 100644
--- a/tests/phpunit/includes/api/query/ApiQueryRevisionsTest.php
+++ b/tests/phpunit/includes/api/query/ApiQueryRevisionsTest.php
@@ -10,7 +10,7 @@ use MediaWiki\User\UserIdentityValue;
* @group API
* @group Database
* @group medium
- * @covers ApiQueryRevisions
+ * @covers \ApiQueryRevisions
*/
class ApiQueryRevisionsTest extends ApiTestCase {
use TempUserTestTrait;
diff --git a/tests/phpunit/includes/api/query/ApiQuerySearchTest.php b/tests/phpunit/includes/api/query/ApiQuerySearchTest.php
index 6637678629c6..e41c0e381c50 100644
--- a/tests/phpunit/includes/api/query/ApiQuerySearchTest.php
+++ b/tests/phpunit/includes/api/query/ApiQuerySearchTest.php
@@ -6,7 +6,7 @@ use MediaWiki\Title\Title;
/**
* @group medium
- * @covers ApiQuerySearch
+ * @covers \ApiQuerySearch
*/
class ApiQuerySearchTest extends ApiTestCase {
diff --git a/tests/phpunit/includes/api/query/ApiQuerySiteinfoTest.php b/tests/phpunit/includes/api/query/ApiQuerySiteinfoTest.php
index e327415a35e1..d1c84f5739b6 100644
--- a/tests/phpunit/includes/api/query/ApiQuerySiteinfoTest.php
+++ b/tests/phpunit/includes/api/query/ApiQuerySiteinfoTest.php
@@ -13,7 +13,7 @@ use Wikimedia\TestingAccessWrapper;
* @group medium
* @group Database
*
- * @covers ApiQuerySiteinfo
+ * @covers \ApiQuerySiteinfo
*/
class ApiQuerySiteinfoTest extends ApiTestCase {
private $originalRegistryLoaded = null;
diff --git a/tests/phpunit/includes/api/query/ApiQueryTest.php b/tests/phpunit/includes/api/query/ApiQueryTest.php
index 632476049012..429ae7f3d66b 100644
--- a/tests/phpunit/includes/api/query/ApiQueryTest.php
+++ b/tests/phpunit/includes/api/query/ApiQueryTest.php
@@ -9,7 +9,7 @@ use MediaWiki\Title\Title;
* @group API
* @group Database
* @group medium
- * @covers ApiQuery
+ * @covers \ApiQuery
*/
class ApiQueryTest extends ApiTestCase {
use DummyServicesTrait;
diff --git a/tests/phpunit/includes/api/query/ApiQueryTokensTest.php b/tests/phpunit/includes/api/query/ApiQueryTokensTest.php
index d7196237b631..feb6f3032800 100644
--- a/tests/phpunit/includes/api/query/ApiQueryTokensTest.php
+++ b/tests/phpunit/includes/api/query/ApiQueryTokensTest.php
@@ -5,7 +5,7 @@ use MediaWiki\MainConfigNames;
/**
* @group API
* @group medium
- * @covers ApiQueryTokens
+ * @covers \ApiQueryTokens
*/
class ApiQueryTokensTest extends ApiTestCase {
diff --git a/tests/phpunit/includes/api/query/ApiQueryUserContribsTest.php b/tests/phpunit/includes/api/query/ApiQueryUserContribsTest.php
index bc1d99eda6d5..0a5ac6788f11 100644
--- a/tests/phpunit/includes/api/query/ApiQueryUserContribsTest.php
+++ b/tests/phpunit/includes/api/query/ApiQueryUserContribsTest.php
@@ -8,7 +8,7 @@ use MediaWiki\User\UserRigorOptions;
* @group API
* @group Database
* @group medium
- * @covers ApiQueryUserContribs
+ * @covers \ApiQueryUserContribs
*/
class ApiQueryUserContribsTest extends ApiTestCase {
public function addDBDataOnce() {
diff --git a/tests/phpunit/includes/api/query/ApiQueryUserInfoTest.php b/tests/phpunit/includes/api/query/ApiQueryUserInfoTest.php
index d8bcfeaf297a..31fc0d21b587 100644
--- a/tests/phpunit/includes/api/query/ApiQueryUserInfoTest.php
+++ b/tests/phpunit/includes/api/query/ApiQueryUserInfoTest.php
@@ -6,12 +6,12 @@ use MediaWiki\Utils\MWTimestamp;
* @group API
* @group Database
* @group medium
- * @covers ApiQueryUserInfo
+ * @covers \ApiQueryUserInfo
*/
class ApiQueryUserInfoTest extends ApiTestCase {
/**
- * @covers ApiQueryUserInfo::getLatestContributionTime
+ * @covers \ApiQueryUserInfo::getLatestContributionTime
*/
public function testTimestamp() {
$clock = MWTimestamp::convert( TS_UNIX, '20100101000000' );
diff --git a/tests/phpunit/includes/api/query/ApiQueryWatchlistIntegrationTest.php b/tests/phpunit/includes/api/query/ApiQueryWatchlistIntegrationTest.php
index e393d800c805..801a414a6c04 100644
--- a/tests/phpunit/includes/api/query/ApiQueryWatchlistIntegrationTest.php
+++ b/tests/phpunit/includes/api/query/ApiQueryWatchlistIntegrationTest.php
@@ -12,7 +12,7 @@ use MediaWiki\User\User;
* @group API
* @group Database
*
- * @covers ApiQueryWatchlist
+ * @covers \ApiQueryWatchlist
*/
class ApiQueryWatchlistIntegrationTest extends ApiTestCase {
// TODO: This test should use Authority, but can't due to User::saveSettings
diff --git a/tests/phpunit/includes/api/query/ApiQueryWatchlistRawIntegrationTest.php b/tests/phpunit/includes/api/query/ApiQueryWatchlistRawIntegrationTest.php
index 82e1ea4f29ed..b5248de8c18a 100644
--- a/tests/phpunit/includes/api/query/ApiQueryWatchlistRawIntegrationTest.php
+++ b/tests/phpunit/includes/api/query/ApiQueryWatchlistRawIntegrationTest.php
@@ -8,7 +8,7 @@ use MediaWiki\User\User;
* @group Database
* @group medium
*
- * @covers ApiQueryWatchlistRaw
+ * @covers \ApiQueryWatchlistRaw
*/
class ApiQueryWatchlistRawIntegrationTest extends ApiTestCase {
// TODO: This test should use Authority, but can't due to User::saveSettings
diff --git a/tests/phpunit/includes/cache/BacklinkCacheTest.php b/tests/phpunit/includes/cache/BacklinkCacheTest.php
index 46e662965ada..0c509def0f62 100644
--- a/tests/phpunit/includes/cache/BacklinkCacheTest.php
+++ b/tests/phpunit/includes/cache/BacklinkCacheTest.php
@@ -5,7 +5,7 @@ use MediaWiki\Title\Title;
/**
* @group Database
* @group Cache
- * @covers BacklinkCache
+ * @covers \BacklinkCache
*/
class BacklinkCacheTest extends MediaWikiIntegrationTestCase {
private static $backlinkCacheTest;
@@ -40,7 +40,7 @@ class BacklinkCacheTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider provideCasesForHasLink
- * @covers BacklinkCache::hasLinks
+ * @covers \BacklinkCache::hasLinks
*/
public function testHasLink( bool $expected, string $title, string $table, string $msg = '' ) {
$blcFactory = $this->getServiceContainer()->getBacklinkCacheFactory();
@@ -59,7 +59,7 @@ class BacklinkCacheTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider provideCasesForGetNumLinks
- * @covers BacklinkCache::getNumLinks
+ * @covers \BacklinkCache::getNumLinks
*/
public function testGetNumLinks( int $numLinks, string $title, string $table, $max = INF ) {
$blcFactory = $this->getServiceContainer()->getBacklinkCacheFactory();
@@ -102,7 +102,7 @@ class BacklinkCacheTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider provideCasesForGetLinks
- * @covers BacklinkCache::getLinkPages
+ * @covers \BacklinkCache::getLinkPages
*/
public function testGetLinkPages(
array $expectedTitles, string $title, string $table, $startId = false, $endId = false, $max = INF
@@ -120,7 +120,7 @@ class BacklinkCacheTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers BacklinkCache::partition
+ * @covers \BacklinkCache::partition
*/
public function testPartition() {
$targetId = $this->getServiceContainer()->getLinkTargetLookup()->acquireLinkTargetId(
diff --git a/tests/phpunit/includes/cache/GenderCacheTest.php b/tests/phpunit/includes/cache/GenderCacheTest.php
index 508d80d00bae..d12115608d9a 100644
--- a/tests/phpunit/includes/cache/GenderCacheTest.php
+++ b/tests/phpunit/includes/cache/GenderCacheTest.php
@@ -38,7 +38,7 @@ class GenderCacheTest extends MediaWikiLangTestCase {
* test usernames
*
* @dataProvider provideUserGenders
- * @covers GenderCache::getGenderOf
+ * @covers \GenderCache::getGenderOf
*/
public function testUserName( $userKey, $expectedGender ) {
$genderCache = $this->getServiceContainer()->getGenderCache();
@@ -51,7 +51,7 @@ class GenderCacheTest extends MediaWikiLangTestCase {
* genderCache should work with user objects, too
*
* @dataProvider provideUserGenders
- * @covers GenderCache::getGenderOf
+ * @covers \GenderCache::getGenderOf
*/
public function testUserObjects( $userKey, $expectedGender ) {
$username = self::$nameMap[$userKey] ?? $userKey;
@@ -77,7 +77,7 @@ class GenderCacheTest extends MediaWikiLangTestCase {
* against the never existing username
*
* @dataProvider provideUserGenders
- * @covers GenderCache::getGenderOf
+ * @covers \GenderCache::getGenderOf
*/
public function testStripSubpages( $userKey, $expectedGender ) {
$username = self::$nameMap[$userKey] ?? $userKey;
diff --git a/tests/phpunit/includes/cache/LinkBatchTest.php b/tests/phpunit/includes/cache/LinkBatchTest.php
index f205770f6c26..65b3f5bf74ce 100644
--- a/tests/phpunit/includes/cache/LinkBatchTest.php
+++ b/tests/phpunit/includes/cache/LinkBatchTest.php
@@ -14,14 +14,14 @@ use Wikimedia\Rdbms\IConnectionProvider;
/**
* @group Database
* @group Cache
- * @covers LinkBatch
+ * @covers \LinkBatch
*/
class LinkBatchTest extends MediaWikiIntegrationTestCase {
/**
- * @covers LinkBatch::__construct()
- * @covers LinkBatch::getSize()
- * @covers LinkBatch::isEmpty()
+ * @covers \LinkBatch::__construct()
+ * @covers \LinkBatch::getSize()
+ * @covers \LinkBatch::isEmpty()
*/
public function testConstructEmptyWithServices() {
$batch = new LinkBatch(
@@ -40,9 +40,9 @@ class LinkBatchTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers LinkBatch::__construct()
- * @covers LinkBatch::getSize()
- * @covers LinkBatch::isEmpty()
+ * @covers \LinkBatch::__construct()
+ * @covers \LinkBatch::getSize()
+ * @covers \LinkBatch::isEmpty()
*/
public function testConstructWithServices() {
$batch = new LinkBatch(
@@ -83,8 +83,8 @@ class LinkBatchTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers LinkBatch::addObj()
- * @covers LinkBatch::getSize()
+ * @covers \LinkBatch::addObj()
+ * @covers \LinkBatch::getSize()
*/
public function testAddObj() {
$batch = $this->newLinkBatch(
@@ -102,8 +102,8 @@ class LinkBatchTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers LinkBatch::add()
- * @covers LinkBatch::getSize()
+ * @covers \LinkBatch::add()
+ * @covers \LinkBatch::getSize()
*/
public function testAdd() {
$batch = $this->newLinkBatch(
diff --git a/tests/phpunit/includes/cache/LinkCacheTest.php b/tests/phpunit/includes/cache/LinkCacheTest.php
index 09c1a8553893..68bba5e6b062 100644
--- a/tests/phpunit/includes/cache/LinkCacheTest.php
+++ b/tests/phpunit/includes/cache/LinkCacheTest.php
@@ -8,7 +8,7 @@ use MediaWiki\Title\TitleValue;
/**
* @group Database
* @group Cache
- * @covers LinkCache
+ * @covers \LinkCache
*/
class LinkCacheTest extends MediaWikiIntegrationTestCase {
use LinkCacheTestTrait;
@@ -58,11 +58,11 @@ class LinkCacheTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider providePageAndLinkAndArray
- * @covers LinkCache::addGoodLinkObjFromRow()
- * @covers LinkCache::getGoodLinkRow()
- * @covers LinkCache::getGoodLinkID()
- * @covers LinkCache::getGoodLinkFieldObj()
- * @covers LinkCache::clearLink()
+ * @covers \LinkCache::addGoodLinkObjFromRow()
+ * @covers \LinkCache::getGoodLinkRow()
+ * @covers \LinkCache::getGoodLinkID()
+ * @covers \LinkCache::getGoodLinkFieldObj()
+ * @covers \LinkCache::clearLink()
*/
public function testAddGoodLinkObjFromRow( $page ) {
$linkCache = $this->newLinkCache();
@@ -124,10 +124,10 @@ class LinkCacheTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers LinkCache::addGoodLinkObjFromRow()
- * @covers LinkCache::getGoodLinkRow()
- * @covers LinkCache::getGoodLinkID()
- * @covers LinkCache::getGoodLinkFieldObj()
+ * @covers \LinkCache::addGoodLinkObjFromRow()
+ * @covers \LinkCache::getGoodLinkRow()
+ * @covers \LinkCache::getGoodLinkID()
+ * @covers \LinkCache::getGoodLinkFieldObj()
*/
public function testAddGoodLinkObjWithAllParameters() {
$linkCache = $this->getServiceContainer()->getLinkCache();
@@ -163,10 +163,10 @@ class LinkCacheTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers LinkCache::addGoodLinkObjFromRow()
- * @covers LinkCache::getGoodLinkRow()
- * @covers LinkCache::getGoodLinkID()
- * @covers LinkCache::getGoodLinkFieldObj()
+ * @covers \LinkCache::addGoodLinkObjFromRow()
+ * @covers \LinkCache::getGoodLinkRow()
+ * @covers \LinkCache::getGoodLinkID()
+ * @covers \LinkCache::getGoodLinkFieldObj()
*/
public function testAddGoodLinkObjFromRowWithMinimalParameters() {
$linkCache = $this->getServiceContainer()->getLinkCache();
@@ -215,7 +215,7 @@ class LinkCacheTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers LinkCache::addGoodLinkObjFromRow()
+ * @covers \LinkCache::addGoodLinkObjFromRow()
*/
public function testAddGoodLinkObjFromRowWithInterwikiLink() {
$linkCache = $this->getServiceContainer()->getLinkCache();
@@ -229,9 +229,9 @@ class LinkCacheTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider providePageAndLink
- * @covers LinkCache::addBadLinkObj()
- * @covers LinkCache::isBadLink()
- * @covers LinkCache::clearLink()
+ * @covers \LinkCache::addBadLinkObj()
+ * @covers \LinkCache::isBadLink()
+ * @covers \LinkCache::clearLink()
*/
public function testAddBadLinkObj( $key ) {
$linkCache = $this->getServiceContainer()->getLinkCache();
@@ -248,7 +248,7 @@ class LinkCacheTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers LinkCache::addBadLinkObj()
+ * @covers \LinkCache::addBadLinkObj()
*/
public function testAddBadLinkObjWithInterwikiLink() {
$linkCache = $this->newLinkCache();
@@ -260,8 +260,8 @@ class LinkCacheTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers LinkCache::addLinkObj()
- * @covers LinkCache::getGoodLinkFieldObj
+ * @covers \LinkCache::addLinkObj()
+ * @covers \LinkCache::getGoodLinkFieldObj
*/
public function testAddLinkObj() {
$existing = $this->getExistingTestPage();
@@ -283,7 +283,7 @@ class LinkCacheTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers LinkCache::addLinkObj()
+ * @covers \LinkCache::addLinkObj()
*/
public function testAddLinkObjUsesCachedInfo() {
$existing = $this->getExistingTestPage();
@@ -308,7 +308,7 @@ class LinkCacheTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers LinkCache::addLinkObj()
+ * @covers \LinkCache::addLinkObj()
*/
public function testAddLinkObjUsesWANCache() {
// For some namespaces we cache data (Template, File, etc)
@@ -375,7 +375,7 @@ class LinkCacheTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider provideInvalidPageParams
- * @covers LinkCache::getGoodLinkRow()
+ * @covers \LinkCache::getGoodLinkRow()
*/
public function testGetGoodLinkRowWithBadParams( $ns, $dbkey ) {
$linkCache = $this->newLinkCache();
@@ -391,8 +391,8 @@ class LinkCacheTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers LinkCache::getGoodLinkRow()
- * @covers LinkCache::getGoodLinkFieldObj
+ * @covers \LinkCache::getGoodLinkRow()
+ * @covers \LinkCache::getGoodLinkFieldObj
*/
public function testGetGoodLinkRow() {
$existing = new TitleValue( NS_MAIN, 'Existing' );
@@ -415,7 +415,7 @@ class LinkCacheTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers LinkCache::getGoodLinkRow()
+ * @covers \LinkCache::getGoodLinkRow()
*/
public function testGetGoodLinkRowUsesCachedInfo() {
$existing = new TitleValue( NS_MAIN, 'Existing' );
diff --git a/tests/phpunit/includes/changes/CategoryMembershipChangeTest.php b/tests/phpunit/includes/changes/CategoryMembershipChangeTest.php
index d0b0e9c8d3f3..3d3562b511f9 100644
--- a/tests/phpunit/includes/changes/CategoryMembershipChangeTest.php
+++ b/tests/phpunit/includes/changes/CategoryMembershipChangeTest.php
@@ -6,7 +6,7 @@ use MediaWiki\User\User;
use MediaWiki\User\UserIdentity;
/**
- * @covers CategoryMembershipChange
+ * @covers \CategoryMembershipChange
*
* @group Database
*
diff --git a/tests/phpunit/includes/changes/EnhancedChangesListTest.php b/tests/phpunit/includes/changes/EnhancedChangesListTest.php
index a7b53f283726..e3811626680d 100644
--- a/tests/phpunit/includes/changes/EnhancedChangesListTest.php
+++ b/tests/phpunit/includes/changes/EnhancedChangesListTest.php
@@ -6,7 +6,7 @@ use MediaWiki\User\User;
use MediaWiki\Utils\MWTimestamp;
/**
- * @covers EnhancedChangesList
+ * @covers \EnhancedChangesList
*
* @group Database
*
diff --git a/tests/phpunit/includes/changes/OldChangesListTest.php b/tests/phpunit/includes/changes/OldChangesListTest.php
index 051b1fd330cc..144998ee33f4 100644
--- a/tests/phpunit/includes/changes/OldChangesListTest.php
+++ b/tests/phpunit/includes/changes/OldChangesListTest.php
@@ -5,7 +5,7 @@ use MediaWiki\MainConfigNames;
use MediaWiki\Title\Title;
/**
- * @covers OldChangesList
+ * @covers \OldChangesList
*
* @todo add tests to cover article link, timestamp, character difference,
* log entry, user tool links, direction marks, tags, rollback,
diff --git a/tests/phpunit/includes/changes/RCCacheEntryFactoryTest.php b/tests/phpunit/includes/changes/RCCacheEntryFactoryTest.php
index 9ed6b2fcb0ad..6d17ee5d093c 100644
--- a/tests/phpunit/includes/changes/RCCacheEntryFactoryTest.php
+++ b/tests/phpunit/includes/changes/RCCacheEntryFactoryTest.php
@@ -5,7 +5,7 @@ use MediaWiki\MainConfigNames;
use MediaWiki\Title\Title;
/**
- * @covers RCCacheEntryFactory
+ * @covers \RCCacheEntryFactory
*
* @group Database
*
diff --git a/tests/phpunit/includes/changes/RecentChangeTest.php b/tests/phpunit/includes/changes/RecentChangeTest.php
index 874f0a0c6fe2..aa5dfd6fd05e 100644
--- a/tests/phpunit/includes/changes/RecentChangeTest.php
+++ b/tests/phpunit/includes/changes/RecentChangeTest.php
@@ -118,10 +118,10 @@ class RecentChangeTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers RecentChange::save
- * @covers RecentChange::newFromId
- * @covers RecentChange::getTitle
- * @covers RecentChange::getPerformerIdentity
+ * @covers \RecentChange::save
+ * @covers \RecentChange::newFromId
+ * @covers \RecentChange::getTitle
+ * @covers \RecentChange::getPerformerIdentity
* @dataProvider provideAttribs
*/
public function testDatabaseRoundTrip( $attribs ) {
@@ -151,10 +151,10 @@ class RecentChangeTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers RecentChange::newFromRow
- * @covers RecentChange::loadFromRow
- * @covers RecentChange::getAttributes
- * @covers RecentChange::getPerformerIdentity
+ * @covers \RecentChange::newFromRow
+ * @covers \RecentChange::loadFromRow
+ * @covers \RecentChange::getAttributes
+ * @covers \RecentChange::getPerformerIdentity
*/
public function testNewFromRow() {
$user = $this->getTestUser()->getUser();
@@ -208,10 +208,10 @@ class RecentChangeTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers RecentChange::notifyNew
- * @covers RecentChange::newFromId
- * @covers RecentChange::getAttributes
- * @covers RecentChange::getPerformerIdentity
+ * @covers \RecentChange::notifyNew
+ * @covers \RecentChange::newFromId
+ * @covers \RecentChange::getAttributes
+ * @covers \RecentChange::getPerformerIdentity
*/
public function testNotifyNew() {
$now = MWTimestamp::now();
@@ -246,10 +246,10 @@ class RecentChangeTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers RecentChange::notifyNew
- * @covers RecentChange::newFromId
- * @covers RecentChange::getAttributes
- * @covers RecentChange::getPerformerIdentity
+ * @covers \RecentChange::notifyNew
+ * @covers \RecentChange::newFromId
+ * @covers \RecentChange::getAttributes
+ * @covers \RecentChange::getPerformerIdentity
*/
public function testNotifyEdit() {
$now = MWTimestamp::now();
@@ -286,10 +286,10 @@ class RecentChangeTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers RecentChange::notifyNew
- * @covers RecentChange::newFromId
- * @covers RecentChange::getAttributes
- * @covers RecentChange::getPerformerIdentity
+ * @covers \RecentChange::notifyNew
+ * @covers \RecentChange::newFromId
+ * @covers \RecentChange::getAttributes
+ * @covers \RecentChange::getPerformerIdentity
*/
public function testNewLogEntry() {
$now = MWTimestamp::now();
@@ -353,7 +353,7 @@ class RecentChangeTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers RecentChange::parseParams
+ * @covers \RecentChange::parseParams
* @dataProvider provideParseParams
* @param array $expectedParseParams
* @param string|null $rawRcParams
@@ -368,7 +368,7 @@ class RecentChangeTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers RecentChange::getNotifyUrl
+ * @covers \RecentChange::getNotifyUrl
*/
public function testGetNotifyUrlForEdit() {
$rc = new RecentChange;
@@ -396,7 +396,7 @@ class RecentChangeTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers RecentChange::getNotifyUrl
+ * @covers \RecentChange::getNotifyUrl
*/
public function testGetNotifyUrlForCreate() {
$rc = new RecentChange;
@@ -424,7 +424,7 @@ class RecentChangeTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers RecentChange::getNotifyUrl
+ * @covers \RecentChange::getNotifyUrl
*/
public function testGetNotifyUrlForLog() {
$rc = new RecentChange;
@@ -458,7 +458,7 @@ class RecentChangeTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers RecentChange::isInRCLifespan
+ * @covers \RecentChange::isInRCLifespan
* @dataProvider provideIsInRCLifespan
*/
public function testIsInRCLifespan( $maxAge, $offset, $tolerance, $expected ) {
@@ -482,7 +482,7 @@ class RecentChangeTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider provideRCTypes
- * @covers RecentChange::parseFromRCType
+ * @covers \RecentChange::parseFromRCType
*/
public function testParseFromRCType( $rcType, $type ) {
$this->assertEquals( $type, RecentChange::parseFromRCType( $rcType ) );
@@ -490,7 +490,7 @@ class RecentChangeTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider provideRCTypes
- * @covers RecentChange::parseToRCType
+ * @covers \RecentChange::parseToRCType
*/
public function testParseToRCType( $rcType, $type ) {
$this->assertEquals( $rcType, RecentChange::parseToRCType( $type ) );
@@ -505,7 +505,7 @@ class RecentChangeTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider provideCategoryContent
- * @covers RecentChange::newForCategorization
+ * @covers \RecentChange::newForCategorization
*/
public function testHiddenCategoryChange( $isHidden ) {
$categoryTitle = Title::makeTitle( NS_CATEGORY, 'CategoryPage' );
@@ -547,7 +547,7 @@ class RecentChangeTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers RecentChange::doMarkPatrolled
+ * @covers \RecentChange::doMarkPatrolled
*/
public function testDoMarkPatrolledPermissions() {
$rc = $this->getDummyEditRecentChange();
@@ -570,7 +570,7 @@ class RecentChangeTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers RecentChange::doMarkPatrolled
+ * @covers \RecentChange::doMarkPatrolled
*/
public function testDoMarkPatrolledPermissions_Hook() {
$rc = $this->getDummyEditRecentChange();
@@ -582,7 +582,7 @@ class RecentChangeTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers RecentChange::doMarkPatrolled
+ * @covers \RecentChange::doMarkPatrolled
*/
public function testDoMarkPatrolledPermissions_Self() {
$rc = $this->getDummyEditRecentChange();
@@ -593,7 +593,7 @@ class RecentChangeTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers RecentChange::doMarkPatrolled
+ * @covers \RecentChange::doMarkPatrolled
*/
public function testDoMarkPatrolledPermissions_NoRcPatrol() {
$rc = $this->getDummyEditRecentChange();
@@ -602,7 +602,7 @@ class RecentChangeTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers RecentChange::doMarkPatrolled
+ * @covers \RecentChange::doMarkPatrolled
*/
public function testDoMarkPatrolled() {
$this->overrideConfigValue( MainConfigNames::UseRCPatrol, true );
diff --git a/tests/phpunit/includes/changetags/ChangeTagsTest.php b/tests/phpunit/includes/changetags/ChangeTagsTest.php
index 2c5b39d4e98f..6058c3269308 100644
--- a/tests/phpunit/includes/changetags/ChangeTagsTest.php
+++ b/tests/phpunit/includes/changetags/ChangeTagsTest.php
@@ -5,7 +5,7 @@ use MediaWiki\MainConfigNames;
use Wikimedia\Rdbms\Platform\ISQLPlatform;
/**
- * @covers ChangeTags
+ * @covers \ChangeTags
* @group Database
*/
class ChangeTagsTest extends MediaWikiIntegrationTestCase {
@@ -460,7 +460,7 @@ class ChangeTagsTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider dataGetSoftwareTags
- * @covers ChangeTags::getSoftwareTags
+ * @covers \ChangeTags::getSoftwareTags
*/
public function testGetSoftwareTags( $softwareTags, $expected ) {
$this->overrideConfigValue( MainConfigNames::SoftwareTags, $softwareTags );
diff --git a/tests/phpunit/includes/collation/CollationTest.php b/tests/phpunit/includes/collation/CollationTest.php
index 5eecb15c70e8..34ee4b63debd 100644
--- a/tests/phpunit/includes/collation/CollationTest.php
+++ b/tests/phpunit/includes/collation/CollationTest.php
@@ -2,10 +2,10 @@
/**
* Class CollationTest
- * @covers Collation
- * @covers IcuCollation
- * @covers IdentityCollation
- * @covers UppercaseCollation
+ * @covers \Collation
+ * @covers \IcuCollation
+ * @covers \IdentityCollation
+ * @covers \UppercaseCollation
*/
class CollationTest extends MediaWikiLangTestCase {
@@ -20,10 +20,10 @@ class CollationTest extends MediaWikiLangTestCase {
* @param string $base
* @param string $extended String containing base as a prefix.
*
- * @covers Collation::getSortKey()
- * @covers IcuCollation::getSortKey()
- * @covers IdentityCollation::getSortKey()
- * @covers UppercaseCollation::getSortKey()
+ * @covers \Collation::getSortKey()
+ * @covers \IcuCollation::getSortKey()
+ * @covers \IdentityCollation::getSortKey()
+ * @covers \UppercaseCollation::getSortKey()
* @dataProvider prefixDataProvider
*/
public function testIsPrefix( $lang, $base, $extended ) {
@@ -55,10 +55,10 @@ class CollationTest extends MediaWikiLangTestCase {
/**
* Opposite of testIsPrefix
*
- * @covers Collation::getSortKey()
- * @covers IcuCollation::getSortKey()
- * @covers IdentityCollation::getSortKey()
- * @covers UppercaseCollation::getSortKey()
+ * @covers \Collation::getSortKey()
+ * @covers \IcuCollation::getSortKey()
+ * @covers \IdentityCollation::getSortKey()
+ * @covers \UppercaseCollation::getSortKey()
* @dataProvider notPrefixDataProvider
*/
public function testNotIsPrefix( $lang, $base, $extended ) {
@@ -85,10 +85,10 @@ class CollationTest extends MediaWikiLangTestCase {
* @param string $string String to get first letter of
* @param string $firstLetter Expected first letter.
*
- * @covers Collation::getFirstLetter()
- * @covers IcuCollation::getFirstLetter()
- * @covers IdentityCollation::getFirstLetter()
- * @covers UppercaseCollation::getFirstLetter()
+ * @covers \Collation::getFirstLetter()
+ * @covers \IcuCollation::getFirstLetter()
+ * @covers \IdentityCollation::getFirstLetter()
+ * @covers \UppercaseCollation::getFirstLetter()
* @dataProvider firstLetterProvider
*/
public function testGetFirstLetter( $collation, $string, $firstLetter ) {
diff --git a/tests/phpunit/includes/collation/CustomUppercaseCollationTest.php b/tests/phpunit/includes/collation/CustomUppercaseCollationTest.php
index 3ff21132fac7..5428153294f3 100644
--- a/tests/phpunit/includes/collation/CustomUppercaseCollationTest.php
+++ b/tests/phpunit/includes/collation/CustomUppercaseCollationTest.php
@@ -3,7 +3,7 @@
/**
* TODO convert to a Unit test
*
- * @covers CustomUppercaseCollation
+ * @covers \CustomUppercaseCollation
*/
class CustomUppercaseCollationTest extends MediaWikiIntegrationTestCase {
diff --git a/tests/phpunit/includes/collation/RemoteIcuCollationTest.php b/tests/phpunit/includes/collation/RemoteIcuCollationTest.php
index e75a8153183f..7f4d86eaf7b3 100644
--- a/tests/phpunit/includes/collation/RemoteIcuCollationTest.php
+++ b/tests/phpunit/includes/collation/RemoteIcuCollationTest.php
@@ -3,7 +3,7 @@
use Wikimedia\TestingAccessWrapper;
/**
- * @covers RemoteIcuCollation
+ * @covers \RemoteIcuCollation
*/
class RemoteIcuCollationTest extends MediaWikiLangTestCase {
public static function provideEncode() {
diff --git a/tests/phpunit/includes/composer/MediaWikiVersionFetcherTest.php b/tests/phpunit/includes/composer/MediaWikiVersionFetcherTest.php
index 2f3320620ae7..b28b8d6d8228 100644
--- a/tests/phpunit/includes/composer/MediaWikiVersionFetcherTest.php
+++ b/tests/phpunit/includes/composer/MediaWikiVersionFetcherTest.php
@@ -4,7 +4,7 @@
* Note: this is not a unit test, as it touches the file system and reads an actual file.
* If unit tests are added for MediaWikiVersionFetcher, this should be done in a distinct test case.
*
- * @covers MediaWikiVersionFetcher
+ * @covers \MediaWikiVersionFetcher
*
* @group ComposerHooks
*
diff --git a/tests/phpunit/includes/content/ContentHandlerTest.php b/tests/phpunit/includes/content/ContentHandlerTest.php
index aef7ef09ad0c..287f9098aa97 100644
--- a/tests/phpunit/includes/content/ContentHandlerTest.php
+++ b/tests/phpunit/includes/content/ContentHandlerTest.php
@@ -94,7 +94,7 @@ class ContentHandlerTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider dataGetDefaultModelFor
- * @covers ContentHandler::getDefaultModelFor
+ * @covers \ContentHandler::getDefaultModelFor
*/
public function testGetDefaultModelFor( $title, $expectedModelId ) {
$title = Title::newFromText( $title );
@@ -113,7 +113,7 @@ class ContentHandlerTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider dataGetLocalizedName
- * @covers ContentHandler::getLocalizedName
+ * @covers \ContentHandler::getLocalizedName
*/
public function testGetLocalizedName( $id, $expected ) {
$name = ContentHandler::getLocalizedName( $id );
@@ -146,7 +146,7 @@ class ContentHandlerTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider dataGetPageLanguage
- * @covers ContentHandler::getPageLanguage
+ * @covers \ContentHandler::getPageLanguage
*/
public function testGetPageLanguage( $title, $expected ) {
$title = Title::newFromText( $title );
@@ -162,7 +162,7 @@ class ContentHandlerTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers ContentHandler::getContentText
+ * @covers \ContentHandler::getContentText
*/
public function testGetContentText_Null() {
$content = null;
@@ -171,7 +171,7 @@ class ContentHandlerTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers ContentHandler::getContentText
+ * @covers \ContentHandler::getContentText
*/
public function testGetContentText_TextContent() {
$content = new WikitextContent( "hello world" );
@@ -180,7 +180,7 @@ class ContentHandlerTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers ContentHandler::getContentText
+ * @covers \ContentHandler::getContentText
*/
public function testGetContentText_NonTextContent() {
$content = new DummyContentForTesting( "hello world" );
@@ -238,7 +238,7 @@ class ContentHandlerTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider dataMakeContent
- * @covers ContentHandler::makeContent
+ * @covers \ContentHandler::makeContent
*/
public function testMakeContent( $data, $title, $modelId, $format,
$expectedModelId, $shouldFail
@@ -265,7 +265,7 @@ class ContentHandlerTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers ContentHandler::getAutosummary
+ * @covers \ContentHandler::getAutosummary
*
* Test if we become a "Created blank page" summary from getAutoSummary if no Content added to
* page.
@@ -290,7 +290,7 @@ class ContentHandlerTest extends MediaWikiIntegrationTestCase {
/**
* Test software tag that is added when content model of the page changes
- * @covers ContentHandler::getChangeTag
+ * @covers \ContentHandler::getChangeTag
*/
public function testGetChangeTag() {
$this->overrideConfigValue( MainConfigNames::SoftwareTags, [ 'mw-contentmodelchange' => true ] );
@@ -305,7 +305,7 @@ class ContentHandlerTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers ContentHandler::supportsCategories
+ * @covers \ContentHandler::supportsCategories
*/
public function testSupportsCategories() {
$handler = new DummyContentHandlerForTesting( CONTENT_MODEL_WIKITEXT );
@@ -313,7 +313,7 @@ class ContentHandlerTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers ContentHandler::supportsDirectEditing
+ * @covers \ContentHandler::supportsDirectEditing
*/
public function testSupportsDirectEditing() {
$handler = new DummyContentHandlerForTesting( CONTENT_MODEL_JSON );
@@ -343,7 +343,7 @@ class ContentHandlerTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers ContentHandler::getForModelID
+ * @covers \ContentHandler::getForModelID
* @dataProvider provideGetModelForID
*/
public function testGetModelForID( $modelId, $handlerClass ) {
@@ -353,7 +353,7 @@ class ContentHandlerTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers ContentHandler::getFieldsForSearchIndex
+ * @covers \ContentHandler::getFieldsForSearchIndex
*/
public function testGetFieldsForSearchIndex() {
$searchEngine = $this->newSearchEngine();
@@ -381,7 +381,7 @@ class ContentHandlerTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers ContentHandler::getDataForSearchIndex
+ * @covers \ContentHandler::getDataForSearchIndex
*/
public function testDataIndexFields() {
$mockEngine = $this->createMock( SearchEngine::class );
@@ -411,7 +411,7 @@ class ContentHandlerTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers ContentHandler::getParserOutputForIndexing
+ * @covers \ContentHandler::getParserOutputForIndexing
*/
public function testParserOutputForIndexing() {
$opportunisticUpdateHook =
@@ -433,7 +433,7 @@ class ContentHandlerTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers ContentHandler::getContentModels
+ * @covers \ContentHandler::getContentModels
*/
public function testGetContentModelsHook() {
$this->setTemporaryHook( 'GetContentModels', static function ( &$models ) {
@@ -443,7 +443,7 @@ class ContentHandlerTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers ContentHandler::getSlotDiffRenderer
+ * @covers \ContentHandler::getSlotDiffRenderer
*/
public function testGetSlotDiffRenderer_default() {
$this->mergeMwGlobalArrayValue( 'wgHooks', [
@@ -466,7 +466,7 @@ class ContentHandlerTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers ContentHandler::getSlotDiffRenderer
+ * @covers \ContentHandler::getSlotDiffRenderer
*/
public function testGetSlotDiffRenderer_bc() {
$this->mergeMwGlobalArrayValue( 'wgHooks', [
@@ -493,7 +493,7 @@ class ContentHandlerTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers ContentHandler::getSlotDiffRenderer
+ * @covers \ContentHandler::getSlotDiffRenderer
*/
public function testGetSlotDiffRenderer_nobc() {
$this->mergeMwGlobalArrayValue( 'wgHooks', [
@@ -520,7 +520,7 @@ class ContentHandlerTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers ContentHandler::getSlotDiffRenderer
+ * @covers \ContentHandler::getSlotDiffRenderer
*/
public function testGetSlotDiffRenderer_hook() {
$this->mergeMwGlobalArrayValue( 'wgHooks', [
@@ -578,7 +578,7 @@ class ContentHandlerTest extends MediaWikiIntegrationTestCase {
* Superseded by OutputPageTest::testGetJsVarsAboutPageLang
*
* @dataProvider providerGetPageViewLanguage
- * @covers ContentHandler::getPageViewLanguage
+ * @covers \ContentHandler::getPageViewLanguage
*/
public function testGetPageViewLanguage( $namespace, $lang, $variant, $expected ) {
$contentHandler = $this->getMockBuilder( ContentHandler::class )
@@ -615,7 +615,7 @@ class ContentHandlerTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider provideValidateSave
- * @covers ContentHandler::validateSave
+ * @covers \ContentHandler::validateSave
*/
public function testValidateSave( $content, $expectedResult ) {
$page = new PageIdentityValue( 0, 1, 'Foo', PageIdentity::LOCAL );
diff --git a/tests/phpunit/includes/content/ContentModelChangeTest.php b/tests/phpunit/includes/content/ContentModelChangeTest.php
index 6263cee2cf08..c2556269b10a 100644
--- a/tests/phpunit/includes/content/ContentModelChangeTest.php
+++ b/tests/phpunit/includes/content/ContentModelChangeTest.php
@@ -44,7 +44,7 @@ class ContentModelChangeTest extends MediaWikiIntegrationTestCase {
/**
* Test that the content model needs to change
*
- * @covers ContentModelChange::doContentModelChange
+ * @covers \ContentModelChange::doContentModelChange
*/
public function testChangeNeeded() {
$wikipage = $this->getExistingTestPage( 'ExistingPage' );
@@ -73,7 +73,7 @@ class ContentModelChangeTest extends MediaWikiIntegrationTestCase {
/**
* Test that the content needs to be valid for the requested model
*
- * @covers ContentModelChange::doContentModelChange
+ * @covers \ContentModelChange::doContentModelChange
*/
public function testInvalidContent() {
$invalidJSON = 'Foo\nBar\nEaster egg\nT22281';
@@ -106,7 +106,7 @@ class ContentModelChangeTest extends MediaWikiIntegrationTestCase {
/**
* Test the EditFilterMergedContent hook can be intercepted
*
- * @covers ContentModelChange::doContentModelChange
+ * @covers \ContentModelChange::doContentModelChange
*
* @dataProvider provideTestEditFilterMergedContent
* @param string|bool $customMessage Hook message, or false
@@ -155,7 +155,7 @@ class ContentModelChangeTest extends MediaWikiIntegrationTestCase {
/**
* Test the ContentModelCanBeUsedOn hook can be intercepted
*
- * @covers ContentModelChange::doContentModelChange
+ * @covers \ContentModelChange::doContentModelChange
*/
public function testContentModelCanBeUsedOn() {
$wikipage = $this->getExistingTestPage( 'ExistingPage' );
@@ -201,7 +201,7 @@ class ContentModelChangeTest extends MediaWikiIntegrationTestCase {
/**
* Test that content handler must support direct editing
*
- * @covers ContentModelChange::doContentModelChange
+ * @covers \ContentModelChange::doContentModelChange
*/
public function testNoDirectEditing() {
$title = Title::newFromText( 'Dummy:NoDirectEditing' );
@@ -240,7 +240,7 @@ class ContentModelChangeTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers ContentModelChange::setTags
+ * @covers \ContentModelChange::setTags
*/
public function testCannotApplyTags() {
ChangeTags::defineTag( 'edit content model tag' );
@@ -258,8 +258,8 @@ class ContentModelChangeTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers ContentModelChange::authorizeChange
- * @covers ContentModelChange::probablyCanChange
+ * @covers \ContentModelChange::authorizeChange
+ * @covers \ContentModelChange::probablyCanChange
*/
public function testCheckPermissions() {
$wikipage = $this->getExistingTestPage( 'ExistingPage' );
@@ -322,7 +322,7 @@ class ContentModelChangeTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers ContentModelChange::doContentModelChange
+ * @covers \ContentModelChange::doContentModelChange
*/
public function testCheckPermissionsThrottle() {
$user = $this->getTestUser()->getUser();
diff --git a/tests/phpunit/includes/content/CssContentHandlerTest.php b/tests/phpunit/includes/content/CssContentHandlerTest.php
index ba024a0b8644..d2c3b2d7240c 100644
--- a/tests/phpunit/includes/content/CssContentHandlerTest.php
+++ b/tests/phpunit/includes/content/CssContentHandlerTest.php
@@ -7,7 +7,7 @@ class CssContentHandlerTest extends MediaWikiLangTestCase {
/**
* @dataProvider provideMakeRedirectContent
- * @covers CssContentHandler::makeRedirectContent
+ * @covers \CssContentHandler::makeRedirectContent
*/
public function testMakeRedirectContent( int $namespace, string $title, $expected ) {
$this->overrideConfigValues( [
diff --git a/tests/phpunit/includes/content/CssContentTest.php b/tests/phpunit/includes/content/CssContentTest.php
index fd88414480ae..c9636b47ddb3 100644
--- a/tests/phpunit/includes/content/CssContentTest.php
+++ b/tests/phpunit/includes/content/CssContentTest.php
@@ -40,7 +40,7 @@ class CssContentTest extends TextContentTest {
}
/**
- * @covers CssContent::getModel
+ * @covers \CssContent::getModel
*/
public function testGetModel() {
$content = $this->newContent( 'hello world.' );
@@ -49,7 +49,7 @@ class CssContentTest extends TextContentTest {
}
/**
- * @covers CssContent::getContentHandler
+ * @covers \CssContent::getContentHandler
*/
public function testGetContentHandler() {
$content = $this->newContent( 'hello world.' );
@@ -70,7 +70,7 @@ class CssContentTest extends TextContentTest {
}
/**
- * @covers CssContent::getRedirectTarget
+ * @covers \CssContent::getRedirectTarget
* @dataProvider provideGetRedirectTarget
*/
public function testGetRedirectTarget( $title, $text ) {
@@ -114,7 +114,7 @@ class CssContentTest extends TextContentTest {
/**
* @dataProvider dataEquals
- * @covers CssContent::equals
+ * @covers \CssContent::equals
*/
public function testEquals( Content $a, Content $b = null, $equal = false ) {
$this->assertEquals( $equal, $a->equals( $b ) );
diff --git a/tests/phpunit/includes/content/FallbackContentHandlerTest.php b/tests/phpunit/includes/content/FallbackContentHandlerTest.php
index 692bcb869060..88d5a8183e92 100644
--- a/tests/phpunit/includes/content/FallbackContentHandlerTest.php
+++ b/tests/phpunit/includes/content/FallbackContentHandlerTest.php
@@ -34,7 +34,7 @@ class FallbackContentHandlerTest extends MediaWikiLangTestCase {
}
/**
- * @covers ContentHandler::getSlotDiffRenderer
+ * @covers \ContentHandler::getSlotDiffRenderer
*/
public function testGetSlotDiffRenderer() {
$context = new RequestContext();
@@ -52,7 +52,7 @@ class FallbackContentHandlerTest extends MediaWikiLangTestCase {
}
/**
- * @covers FallbackContentHandler::fillParserOutput
+ * @covers \FallbackContentHandler::fillParserOutput
*/
public function testGetParserOutput() {
$this->setUserLang( 'en' );
diff --git a/tests/phpunit/includes/content/FallbackContentTest.php b/tests/phpunit/includes/content/FallbackContentTest.php
index cb5265dc469c..d33439425467 100644
--- a/tests/phpunit/includes/content/FallbackContentTest.php
+++ b/tests/phpunit/includes/content/FallbackContentTest.php
@@ -26,7 +26,7 @@ class FallbackContentTest extends MediaWikiLangTestCase {
}
/**
- * @covers FallbackContent::getRedirectTarget
+ * @covers \FallbackContent::getRedirectTarget
*/
public function testGetRedirectTarget() {
$content = $this->newContent( '#REDIRECT [[Horkyporky]]' );
@@ -34,7 +34,7 @@ class FallbackContentTest extends MediaWikiLangTestCase {
}
/**
- * @covers FallbackContent::isRedirect
+ * @covers \FallbackContent::isRedirect
*/
public function testIsRedirect() {
$content = $this->newContent( '#REDIRECT [[Horkyporky]]' );
@@ -42,7 +42,7 @@ class FallbackContentTest extends MediaWikiLangTestCase {
}
/**
- * @covers FallbackContent::isCountable
+ * @covers \FallbackContent::isCountable
*/
public function testIsCountable() {
$content = $this->newContent( '[[Horkyporky]]' );
@@ -50,7 +50,7 @@ class FallbackContentTest extends MediaWikiLangTestCase {
}
/**
- * @covers FallbackContent::getTextForSummary
+ * @covers \FallbackContent::getTextForSummary
*/
public function testGetTextForSummary() {
$content = $this->newContent( 'Horkyporky' );
@@ -58,7 +58,7 @@ class FallbackContentTest extends MediaWikiLangTestCase {
}
/**
- * @covers FallbackContent::getTextForSearchIndex
+ * @covers \FallbackContent::getTextForSearchIndex
*/
public function testGetTextForSearchIndex() {
$content = $this->newContent( 'Horkyporky' );
@@ -66,7 +66,7 @@ class FallbackContentTest extends MediaWikiLangTestCase {
}
/**
- * @covers FallbackContent::copy
+ * @covers \FallbackContent::copy
*/
public function testCopy() {
$content = $this->newContent( 'hello world.' );
@@ -76,7 +76,7 @@ class FallbackContentTest extends MediaWikiLangTestCase {
}
/**
- * @covers FallbackContent::getSize
+ * @covers \FallbackContent::getSize
*/
public function testGetSize() {
$content = $this->newContent( 'hello world.' );
@@ -85,7 +85,7 @@ class FallbackContentTest extends MediaWikiLangTestCase {
}
/**
- * @covers FallbackContent::getData
+ * @covers \FallbackContent::getData
*/
public function testGetData() {
$content = $this->newContent( 'hello world.' );
@@ -94,7 +94,7 @@ class FallbackContentTest extends MediaWikiLangTestCase {
}
/**
- * @covers FallbackContent::getNativeData
+ * @covers \FallbackContent::getNativeData
*/
public function testGetNativeData() {
$content = $this->newContent( 'hello world.' );
@@ -103,7 +103,7 @@ class FallbackContentTest extends MediaWikiLangTestCase {
}
/**
- * @covers FallbackContent::getWikitextForTransclusion
+ * @covers \FallbackContent::getWikitextForTransclusion
*/
public function testGetWikitextForTransclusion() {
$content = $this->newContent( 'hello world.' );
@@ -112,7 +112,7 @@ class FallbackContentTest extends MediaWikiLangTestCase {
}
/**
- * @covers FallbackContent::getModel
+ * @covers \FallbackContent::getModel
*/
public function testGetModel() {
$content = $this->newContent( "hello world.", 'horkyporky' );
@@ -121,7 +121,7 @@ class FallbackContentTest extends MediaWikiLangTestCase {
}
/**
- * @covers FallbackContent::getContentHandler
+ * @covers \FallbackContent::getContentHandler
*/
public function testGetContentHandler() {
$this->mergeMwGlobalArrayValue(
@@ -146,7 +146,7 @@ class FallbackContentTest extends MediaWikiLangTestCase {
/**
* @dataProvider dataIsEmpty
- * @covers FallbackContent::isEmpty
+ * @covers \FallbackContent::isEmpty
*/
public function testIsEmpty( $text, $empty ) {
$content = $this->newContent( $text );
@@ -166,7 +166,7 @@ class FallbackContentTest extends MediaWikiLangTestCase {
/**
* @dataProvider provideEquals
- * @covers FallbackContent::equals
+ * @covers \FallbackContent::equals
*/
public function testEquals( Content $a, Content $b = null, $equal = false ) {
$this->assertEquals( $equal, $a->equals( $b ) );
@@ -202,7 +202,7 @@ class FallbackContentTest extends MediaWikiLangTestCase {
}
/**
- * @covers FallbackContent::convert
+ * @covers \FallbackContent::convert
*/
public function testConvert() {
$content = $this->newContent( 'More horkyporky?' );
@@ -211,8 +211,8 @@ class FallbackContentTest extends MediaWikiLangTestCase {
}
/**
- * @covers FallbackContent::__construct
- * @covers FallbackContentHandler::serializeContent
+ * @covers \FallbackContent::__construct
+ * @covers \FallbackContentHandler::serializeContent
*/
public function testSerialize() {
$content = $this->newContent( 'Hörkypörky', 'horkyporky' );
diff --git a/tests/phpunit/includes/content/JavaScriptContentHandlerTest.php b/tests/phpunit/includes/content/JavaScriptContentHandlerTest.php
index e8d4231087b4..109e368d47a0 100644
--- a/tests/phpunit/includes/content/JavaScriptContentHandlerTest.php
+++ b/tests/phpunit/includes/content/JavaScriptContentHandlerTest.php
@@ -7,7 +7,7 @@ class JavaScriptContentHandlerTest extends MediaWikiLangTestCase {
/**
* @dataProvider provideMakeRedirectContent
- * @covers JavaScriptContentHandler::makeRedirectContent
+ * @covers \JavaScriptContentHandler::makeRedirectContent
*/
public function testMakeRedirectContent( $title, $expected ) {
$this->overrideConfigValues( [
diff --git a/tests/phpunit/includes/content/JavaScriptContentTest.php b/tests/phpunit/includes/content/JavaScriptContentTest.php
index 4399b21f9506..c33b5bcde9cd 100644
--- a/tests/phpunit/includes/content/JavaScriptContentTest.php
+++ b/tests/phpunit/includes/content/JavaScriptContentTest.php
@@ -69,7 +69,7 @@ class JavaScriptContentTest extends TextContentTest {
}
/**
- * @covers JavaScriptContent::addSectionHeader
+ * @covers \JavaScriptContent::addSectionHeader
*/
public function testAddSectionHeader() {
$content = $this->newContent( 'hello world' );
@@ -170,7 +170,7 @@ class JavaScriptContentTest extends TextContentTest {
}
/**
- * @covers JavaScriptContent::matchMagicWord
+ * @covers \JavaScriptContent::matchMagicWord
*/
public function testMatchMagicWord() {
$mw = $this->getServiceContainer()->getMagicWordFactory()->get( "staticredirect" );
@@ -183,7 +183,7 @@ class JavaScriptContentTest extends TextContentTest {
}
/**
- * @covers JavaScriptContent::updateRedirect
+ * @covers \JavaScriptContent::updateRedirect
* @dataProvider provideUpdateRedirect
*/
public function testUpdateRedirect( $oldText, $expectedText ) {
@@ -216,7 +216,7 @@ class JavaScriptContentTest extends TextContentTest {
}
/**
- * @covers JavaScriptContent::getModel
+ * @covers \JavaScriptContent::getModel
*/
public function testGetModel() {
$content = $this->newContent( "hello world." );
@@ -225,7 +225,7 @@ class JavaScriptContentTest extends TextContentTest {
}
/**
- * @covers JavaScriptContent::getContentHandler
+ * @covers \JavaScriptContent::getContentHandler
*/
public function testGetContentHandler() {
$content = $this->newContent( "hello world." );
@@ -243,7 +243,7 @@ class JavaScriptContentTest extends TextContentTest {
}
/**
- * @covers JavaScriptContent::getRedirectTarget
+ * @covers \JavaScriptContent::getRedirectTarget
* @dataProvider provideGetRedirectTarget
*/
public function testGetRedirectTarget( $title, $text ) {
diff --git a/tests/phpunit/includes/content/JsonContentHandlerIntegrationTest.php b/tests/phpunit/includes/content/JsonContentHandlerIntegrationTest.php
index 9b91214e1721..64aff22243b2 100644
--- a/tests/phpunit/includes/content/JsonContentHandlerIntegrationTest.php
+++ b/tests/phpunit/includes/content/JsonContentHandlerIntegrationTest.php
@@ -58,7 +58,7 @@ class JsonContentHandlerIntegrationTest extends MediaWikiLangTestCase {
/**
* @dataProvider provideDataAndParserText
- * @covers JsonContentHandler::fillParserOutput
+ * @covers \JsonContentHandler::fillParserOutput
*/
public function testFillParserOutput( $data, $expected ) {
if ( !is_string( $data ) ) {
@@ -79,7 +79,7 @@ class JsonContentHandlerIntegrationTest extends MediaWikiLangTestCase {
}
/**
- * @covers JsonContentHandler::validateSave
+ * @covers \JsonContentHandler::validateSave
*/
public function testValidateSave() {
$handler = new JsonContentHandler();
diff --git a/tests/phpunit/includes/content/MessageContentTest.php b/tests/phpunit/includes/content/MessageContentTest.php
index 94cd88eac8dc..bb32ba247079 100644
--- a/tests/phpunit/includes/content/MessageContentTest.php
+++ b/tests/phpunit/includes/content/MessageContentTest.php
@@ -4,7 +4,7 @@ use MediaWiki\Language\RawMessage;
/**
* @group ContentHandler
- * @covers MessageContent
+ * @covers \MessageContent
*/
class MessageContentTest extends MediaWikiLangTestCase {
diff --git a/tests/phpunit/includes/content/TextContentHandlerIntegrationTest.php b/tests/phpunit/includes/content/TextContentHandlerIntegrationTest.php
index 8d13f4b3a6f8..25148db47710 100644
--- a/tests/phpunit/includes/content/TextContentHandlerIntegrationTest.php
+++ b/tests/phpunit/includes/content/TextContentHandlerIntegrationTest.php
@@ -28,7 +28,7 @@ class TextContentHandlerIntegrationTest extends MediaWikiLangTestCase {
/**
* @dataProvider provideGetParserOutput
- * @covers TextContentHandler::fillParserOutput
+ * @covers \TextContentHandler::fillParserOutput
*/
public function testGetParserOutput( $title, $model, $text, $expectedHtml,
$expectedFields = null, $parserOptions = null
diff --git a/tests/phpunit/includes/content/TextContentTest.php b/tests/phpunit/includes/content/TextContentTest.php
index eca9ce9af243..f2b0e1a68fc9 100644
--- a/tests/phpunit/includes/content/TextContentTest.php
+++ b/tests/phpunit/includes/content/TextContentTest.php
@@ -55,7 +55,7 @@ class TextContentTest extends MediaWikiLangTestCase {
/**
* @dataProvider dataGetRedirectTarget
- * @covers TextContent::getRedirectTarget
+ * @covers \TextContent::getRedirectTarget
*/
public function testGetRedirectTarget( $text, $expected ) {
$content = $this->newContent( $text );
@@ -70,7 +70,7 @@ class TextContentTest extends MediaWikiLangTestCase {
/**
* @dataProvider dataGetRedirectTarget
- * @covers TextContent::isRedirect
+ * @covers \TextContent::isRedirect
*/
public function testIsRedirect( $text, $expected ) {
$content = $this->newContent( $text );
@@ -95,7 +95,7 @@ class TextContentTest extends MediaWikiLangTestCase {
/**
* @dataProvider dataIsCountable
- * @covers TextContent::isCountable
+ * @covers \TextContent::isCountable
*/
public function testIsCountable( $text, $hasLinks, $mode, $expected ) {
$this->overrideConfigValue( MainConfigNames::ArticleCountMethod, $mode );
@@ -132,7 +132,7 @@ class TextContentTest extends MediaWikiLangTestCase {
/**
* @dataProvider dataGetTextForSummary
- * @covers TextContent::getTextForSummary
+ * @covers \TextContent::getTextForSummary
*/
public function testGetTextForSummary( $text, $maxlength, $expected ) {
$content = $this->newContent( $text );
@@ -141,7 +141,7 @@ class TextContentTest extends MediaWikiLangTestCase {
}
/**
- * @covers TextContent::getTextForSearchIndex
+ * @covers \TextContent::getTextForSearchIndex
*/
public function testGetTextForSearchIndex() {
$content = $this->newContent( 'hello world.' );
@@ -150,7 +150,7 @@ class TextContentTest extends MediaWikiLangTestCase {
}
/**
- * @covers TextContent::copy
+ * @covers \TextContent::copy
*/
public function testCopy() {
$content = $this->newContent( 'hello world.' );
@@ -161,7 +161,7 @@ class TextContentTest extends MediaWikiLangTestCase {
}
/**
- * @covers TextContent::getSize
+ * @covers \TextContent::getSize
*/
public function testGetSize() {
$content = $this->newContent( 'hello world.' );
@@ -170,7 +170,7 @@ class TextContentTest extends MediaWikiLangTestCase {
}
/**
- * @covers TextContent::getText
+ * @covers \TextContent::getText
*/
public function testGetText() {
$content = $this->newContent( 'hello world.' );
@@ -179,7 +179,7 @@ class TextContentTest extends MediaWikiLangTestCase {
}
/**
- * @covers TextContent::getNativeData
+ * @covers \TextContent::getNativeData
*/
public function testGetNativeData() {
$content = $this->newContent( 'hello world.' );
@@ -188,7 +188,7 @@ class TextContentTest extends MediaWikiLangTestCase {
}
/**
- * @covers TextContent::getWikitextForTransclusion
+ * @covers \TextContent::getWikitextForTransclusion
*/
public function testGetWikitextForTransclusion() {
$content = $this->newContent( 'hello world.' );
@@ -197,7 +197,7 @@ class TextContentTest extends MediaWikiLangTestCase {
}
/**
- * @covers TextContent::getModel
+ * @covers \TextContent::getModel
*/
public function testGetModel() {
$content = $this->newContent( "hello world." );
@@ -206,7 +206,7 @@ class TextContentTest extends MediaWikiLangTestCase {
}
/**
- * @covers TextContent::getContentHandler
+ * @covers \TextContent::getContentHandler
*/
public function testGetContentHandler() {
$content = $this->newContent( "hello world." );
@@ -225,7 +225,7 @@ class TextContentTest extends MediaWikiLangTestCase {
/**
* @dataProvider dataIsEmpty
- * @covers TextContent::isEmpty
+ * @covers \TextContent::isEmpty
*/
public function testIsEmpty( $text, $empty ) {
$content = $this->newContent( $text );
@@ -245,7 +245,7 @@ class TextContentTest extends MediaWikiLangTestCase {
/**
* @dataProvider dataEquals
- * @covers TextContent::equals
+ * @covers \TextContent::equals
*/
public function testEquals( Content $a, Content $b = null, $equal = false ) {
$this->assertEquals( $equal, $a->equals( $b ) );
@@ -282,7 +282,7 @@ class TextContentTest extends MediaWikiLangTestCase {
/**
* @dataProvider provideConvert
- * @covers TextContent::convert
+ * @covers \TextContent::convert
*/
public function testConvert( $text, $model, $lossy, $expectedNative ) {
$content = $this->newContent( $text );
@@ -299,7 +299,7 @@ class TextContentTest extends MediaWikiLangTestCase {
}
/**
- * @covers TextContent::normalizeLineEndings
+ * @covers \TextContent::normalizeLineEndings
* @dataProvider provideNormalizeLineEndings
*/
public function testNormalizeLineEndings( $input, $expected ) {
@@ -324,8 +324,8 @@ class TextContentTest extends MediaWikiLangTestCase {
}
/**
- * @covers TextContent::__construct
- * @covers TextContentHandler::serializeContent
+ * @covers \TextContent::__construct
+ * @covers \TextContentHandler::serializeContent
*/
public function testSerialize() {
$cnt = $this->newContent( 'testing text' );
diff --git a/tests/phpunit/includes/content/Transform/ContentTransformerTest.php b/tests/phpunit/includes/content/Transform/ContentTransformerTest.php
index 3abcf1cc0711..ce04550f7602 100644
--- a/tests/phpunit/includes/content/Transform/ContentTransformerTest.php
+++ b/tests/phpunit/includes/content/Transform/ContentTransformerTest.php
@@ -16,7 +16,7 @@ class ContentTransformerTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Content\Transform\ContentTransformer::preSaveTransform
+ * @covers \MediaWiki\Content\Transform\ContentTransformer::preSaveTransform
*
* @dataProvider preSaveTransformProvider
*/
@@ -42,7 +42,7 @@ class ContentTransformerTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Content\Transform\ContentTransformer::preloadTransform
+ * @covers \MediaWiki\Content\Transform\ContentTransformer::preloadTransform
*
* @dataProvider preloadTransformProvider
*/
diff --git a/tests/phpunit/includes/content/WikitextContentHandlerIntegrationTest.php b/tests/phpunit/includes/content/WikitextContentHandlerIntegrationTest.php
index 7f1f948bdd8a..a6f9118cab3a 100644
--- a/tests/phpunit/includes/content/WikitextContentHandlerIntegrationTest.php
+++ b/tests/phpunit/includes/content/WikitextContentHandlerIntegrationTest.php
@@ -213,7 +213,7 @@ class WikitextContentHandlerIntegrationTest extends TextContentHandlerIntegratio
/**
* @dataProvider provideGetParserOutput
- * @covers WikitextContentHandler::fillParserOutput
+ * @covers \WikitextContentHandler::fillParserOutput
*/
public function testGetParserOutput( $title, $model, $text, $expectedHtml,
$expectedFields = null, $options = null
@@ -241,8 +241,8 @@ class WikitextContentHandlerIntegrationTest extends TextContentHandlerIntegratio
* @param LinkTarget $target
* @param string $expectedWT Serialized wikitext form of the content object built
* @param string $expectedTarget Expected target string in the HTML redirect
- * @covers WikitextContentHandler::makeRedirectContent
- * @covers WikitextContentHandler::getParserOutput
+ * @covers \WikitextContentHandler::makeRedirectContent
+ * @covers \WikitextContentHandler::getParserOutput
*/
public function testMakeRedirectContent( LinkTarget $target, string $expectedWT, string $expectedTarget ) {
$this->getServiceContainer()->resetServiceForTesting( 'ContentLanguage' );
diff --git a/tests/phpunit/includes/content/WikitextContentHandlerTest.php b/tests/phpunit/includes/content/WikitextContentHandlerTest.php
index 76fc56c9cce2..b14f6c9ab8f7 100644
--- a/tests/phpunit/includes/content/WikitextContentHandlerTest.php
+++ b/tests/phpunit/includes/content/WikitextContentHandlerTest.php
@@ -58,7 +58,7 @@ class WikitextContentHandlerTest extends MediaWikiLangTestCase {
/**
* @dataProvider dataMerge3
- * @covers WikitextContentHandler::merge3
+ * @covers \WikitextContentHandler::merge3
*/
public function testMerge3( $old, $mine, $yours, $expected ) {
$this->markTestSkippedIfNoDiff3();
@@ -124,7 +124,7 @@ class WikitextContentHandlerTest extends MediaWikiLangTestCase {
/**
* @dataProvider dataGetAutosummary
- * @covers WikitextContentHandler::getAutosummary
+ * @covers \WikitextContentHandler::getAutosummary
*/
public function testGetAutosummary( $old, $new, $flags, $expected ) {
$oldContent = $old === null ? null : new WikitextContent( $old );
@@ -216,7 +216,7 @@ class WikitextContentHandlerTest extends MediaWikiLangTestCase {
/**
* @dataProvider dataGetChangeTag
- * @covers WikitextContentHandler::getChangeTag
+ * @covers \WikitextContentHandler::getChangeTag
*/
public function testGetChangeTag( $old, $new, $flags, $expected ) {
$this->overrideConfigValue( MainConfigNames::SoftwareTags, [
@@ -237,7 +237,7 @@ class WikitextContentHandlerTest extends MediaWikiLangTestCase {
}
/**
- * @covers WikitextContentHandler::getDataForSearchIndex
+ * @covers \WikitextContentHandler::getDataForSearchIndex
*/
public function testDataIndexFieldsFile() {
$mockEngine = $this->createMock( SearchEngine::class );
@@ -270,7 +270,7 @@ class WikitextContentHandlerTest extends MediaWikiLangTestCase {
}
/**
- * @covers WikitextContentHandler::fillParserOutput
+ * @covers \WikitextContentHandler::fillParserOutput
*/
public function testHadSignature() {
$services = $this->getServiceContainer();
diff --git a/tests/phpunit/includes/content/WikitextContentTest.php b/tests/phpunit/includes/content/WikitextContentTest.php
index 2dba1b2166c8..1b445fbaae0c 100644
--- a/tests/phpunit/includes/content/WikitextContentTest.php
+++ b/tests/phpunit/includes/content/WikitextContentTest.php
@@ -47,7 +47,7 @@ just a test"
/**
* @dataProvider dataGetSection
- * @covers WikitextContent::getSection
+ * @covers \WikitextContent::getSection
*/
public function testGetSection( $text, $sectionId, $expectedText ) {
$content = $this->newContent( $text );
@@ -102,7 +102,7 @@ just a test"
/**
* @dataProvider dataReplaceSection
- * @covers WikitextContent::replaceSection
+ * @covers \WikitextContent::replaceSection
*/
public function testReplaceSection( $text, $section, $with, $sectionTitle, $expected ) {
$content = $this->newContent( $text );
@@ -113,7 +113,7 @@ just a test"
}
/**
- * @covers WikitextContent::addSectionHeader
+ * @covers \WikitextContent::addSectionHeader
*/
public function testAddSectionHeader() {
$content = $this->newContent( 'hello world' );
@@ -217,7 +217,7 @@ just a test"
}
/**
- * @covers WikitextContent::matchMagicWord
+ * @covers \WikitextContent::matchMagicWord
*/
public function testMatchMagicWord() {
$mw = $this->getServiceContainer()->getMagicWordFactory()->get( "staticredirect" );
@@ -233,7 +233,7 @@ just a test"
}
/**
- * @covers WikitextContent::updateRedirect
+ * @covers \WikitextContent::updateRedirect
*/
public function testUpdateRedirect() {
$target = Title::makeTitle( NS_MAIN, 'TestUpdateRedirect_target' );
@@ -258,7 +258,7 @@ just a test"
}
/**
- * @covers WikitextContent::getModel
+ * @covers \WikitextContent::getModel
*/
public function testGetModel() {
$content = $this->newContent( "hello world." );
@@ -267,7 +267,7 @@ just a test"
}
/**
- * @covers WikitextContent::getContentHandler
+ * @covers \WikitextContent::getContentHandler
*/
public function testGetContentHandler() {
$content = $this->newContent( "hello world." );
@@ -276,8 +276,8 @@ just a test"
}
/**
- * @covers ParserOptions::getRedirectTarget
- * @covers ParserOptions::setRedirectTarget
+ * @covers \ParserOptions::getRedirectTarget
+ * @covers \ParserOptions::setRedirectTarget
*/
public function testRedirectParserOption() {
$title = Title::makeTitle( NS_MAIN, 'TestRedirectParserOption' );
diff --git a/tests/phpunit/includes/content/WikitextStructureTest.php b/tests/phpunit/includes/content/WikitextStructureTest.php
index 53ee9128cbff..5eec758392e2 100644
--- a/tests/phpunit/includes/content/WikitextStructureTest.php
+++ b/tests/phpunit/includes/content/WikitextStructureTest.php
@@ -4,7 +4,7 @@ use MediaWiki\Title\Title;
/**
* @group Database
- * @covers WikiTextStructure
+ * @covers \WikiTextStructure
*/
class WikitextStructureTest extends MediaWikiLangTestCase {
diff --git a/tests/phpunit/includes/debug/DeprecationHelperTest.php b/tests/phpunit/includes/debug/DeprecationHelperTest.php
index 847719517d62..0923030fef71 100644
--- a/tests/phpunit/includes/debug/DeprecationHelperTest.php
+++ b/tests/phpunit/includes/debug/DeprecationHelperTest.php
@@ -4,7 +4,7 @@ use MediaWiki\MainConfigNames;
use Wikimedia\TestingAccessWrapper;
/**
- * @covers DeprecationHelper
+ * @covers \DeprecationHelper
*/
class DeprecationHelperTest extends MediaWikiIntegrationTestCase {
diff --git a/tests/phpunit/includes/debug/MWDebugTest.php b/tests/phpunit/includes/debug/MWDebugTest.php
index 92aae4fb6f0e..79e5481f9bf4 100644
--- a/tests/phpunit/includes/debug/MWDebugTest.php
+++ b/tests/phpunit/includes/debug/MWDebugTest.php
@@ -8,7 +8,7 @@ use MediaWiki\Title\TitleValue;
use Psr\Log\LoggerInterface;
/**
- * @covers MWDebug
+ * @covers \MWDebug
*/
class MWDebugTest extends MediaWikiIntegrationTestCase {
diff --git a/tests/phpunit/includes/deferred/LinksUpdateTest.php b/tests/phpunit/includes/deferred/LinksUpdateTest.php
index c808762acff2..a586f5f13f4d 100644
--- a/tests/phpunit/includes/deferred/LinksUpdateTest.php
+++ b/tests/phpunit/includes/deferred/LinksUpdateTest.php
@@ -12,19 +12,19 @@ use PHPUnit\Framework\MockObject\MockObject;
use Wikimedia\TestingAccessWrapper;
/**
- * @covers MediaWiki\Deferred\LinksUpdate\LinksUpdate
- * @covers MediaWiki\Deferred\LinksUpdate\CategoryLinksTable
- * @covers MediaWiki\Deferred\LinksUpdate\ExternalLinksTable
- * @covers MediaWiki\Deferred\LinksUpdate\GenericPageLinksTable
- * @covers MediaWiki\Deferred\LinksUpdate\ImageLinksTable
- * @covers MediaWiki\Deferred\LinksUpdate\InterwikiLinksTable
- * @covers MediaWiki\Deferred\LinksUpdate\LangLinksTable
- * @covers MediaWiki\Deferred\LinksUpdate\LinksTable
- * @covers MediaWiki\Deferred\LinksUpdate\LinksTableGroup
- * @covers MediaWiki\Deferred\LinksUpdate\PageLinksTable
- * @covers MediaWiki\Deferred\LinksUpdate\PagePropsTable
- * @covers MediaWiki\Deferred\LinksUpdate\TemplateLinksTable
- * @covers MediaWiki\Deferred\LinksUpdate\TitleLinksTable
+ * @covers \MediaWiki\Deferred\LinksUpdate\LinksUpdate
+ * @covers \MediaWiki\Deferred\LinksUpdate\CategoryLinksTable
+ * @covers \MediaWiki\Deferred\LinksUpdate\ExternalLinksTable
+ * @covers \MediaWiki\Deferred\LinksUpdate\GenericPageLinksTable
+ * @covers \MediaWiki\Deferred\LinksUpdate\ImageLinksTable
+ * @covers \MediaWiki\Deferred\LinksUpdate\InterwikiLinksTable
+ * @covers \MediaWiki\Deferred\LinksUpdate\LangLinksTable
+ * @covers \MediaWiki\Deferred\LinksUpdate\LinksTable
+ * @covers \MediaWiki\Deferred\LinksUpdate\LinksTableGroup
+ * @covers \MediaWiki\Deferred\LinksUpdate\PageLinksTable
+ * @covers \MediaWiki\Deferred\LinksUpdate\PagePropsTable
+ * @covers \MediaWiki\Deferred\LinksUpdate\TemplateLinksTable
+ * @covers \MediaWiki\Deferred\LinksUpdate\TitleLinksTable
*
* @group LinksUpdate
* @group Database
diff --git a/tests/phpunit/includes/deferred/RefreshSecondaryDataUpdateTest.php b/tests/phpunit/includes/deferred/RefreshSecondaryDataUpdateTest.php
index 99149abfe9d5..b063f59511a4 100644
--- a/tests/phpunit/includes/deferred/RefreshSecondaryDataUpdateTest.php
+++ b/tests/phpunit/includes/deferred/RefreshSecondaryDataUpdateTest.php
@@ -9,7 +9,7 @@ use Psr\Log\NullLogger;
use Wikimedia\ScopedCallback;
/**
- * @covers RefreshSecondaryDataUpdate
+ * @covers \RefreshSecondaryDataUpdate
* @group Database
*/
class RefreshSecondaryDataUpdateTest extends MediaWikiIntegrationTestCase {
diff --git a/tests/phpunit/includes/deferred/SiteStatsUpdateTest.php b/tests/phpunit/includes/deferred/SiteStatsUpdateTest.php
index 8aa0984011f0..ada8a7b5d13e 100644
--- a/tests/phpunit/includes/deferred/SiteStatsUpdateTest.php
+++ b/tests/phpunit/includes/deferred/SiteStatsUpdateTest.php
@@ -9,8 +9,8 @@ use Wikimedia\TestingAccessWrapper;
/**
* @group Database
* @covers \MediaWiki\Deferred\SiteStatsUpdate
- * @covers MediaWiki\SiteStats\SiteStats
- * @covers MediaWiki\SiteStats\SiteStatsInit
+ * @covers \MediaWiki\SiteStats\SiteStats
+ * @covers \MediaWiki\SiteStats\SiteStatsInit
*/
class SiteStatsUpdateTest extends MediaWikiIntegrationTestCase {
public function testFactoryAndMerge() {
diff --git a/tests/phpunit/includes/diff/DifferenceEngineSlotDiffRendererTest.php b/tests/phpunit/includes/diff/DifferenceEngineSlotDiffRendererTest.php
index c76f9f96ff91..156558cf28dd 100644
--- a/tests/phpunit/includes/diff/DifferenceEngineSlotDiffRendererTest.php
+++ b/tests/phpunit/includes/diff/DifferenceEngineSlotDiffRendererTest.php
@@ -3,7 +3,7 @@
use MediaWiki\Output\OutputPage;
/**
- * @covers DifferenceEngineSlotDiffRenderer
+ * @covers \DifferenceEngineSlotDiffRenderer
*/
class DifferenceEngineSlotDiffRendererTest extends MediaWikiIntegrationTestCase {
diff --git a/tests/phpunit/includes/diff/DifferenceEngineTest.php b/tests/phpunit/includes/diff/DifferenceEngineTest.php
index 1f90d696a434..0e6fc35e9fb0 100644
--- a/tests/phpunit/includes/diff/DifferenceEngineTest.php
+++ b/tests/phpunit/includes/diff/DifferenceEngineTest.php
@@ -14,7 +14,7 @@ use MediaWiki\Title\Title;
use MediaWiki\User\UserIdentityValue;
/**
- * @covers DifferenceEngine
+ * @covers \DifferenceEngine
*
* @todo tests for the rest of DifferenceEngine!
*
diff --git a/tests/phpunit/includes/diff/SlotDiffRendererTest.php b/tests/phpunit/includes/diff/SlotDiffRendererTest.php
index 3da093d93109..cb75a0e92cd2 100644
--- a/tests/phpunit/includes/diff/SlotDiffRendererTest.php
+++ b/tests/phpunit/includes/diff/SlotDiffRendererTest.php
@@ -4,7 +4,7 @@ use Wikimedia\Assert\ParameterTypeException;
use Wikimedia\TestingAccessWrapper;
/**
- * @covers SlotDiffRenderer
+ * @covers \SlotDiffRenderer
*/
class SlotDiffRendererTest extends \MediaWikiIntegrationTestCase {
diff --git a/tests/phpunit/includes/diff/TextSlotDiffRendererTest.php b/tests/phpunit/includes/diff/TextSlotDiffRendererTest.php
index 490ece22930c..cad736e2ad7a 100644
--- a/tests/phpunit/includes/diff/TextSlotDiffRendererTest.php
+++ b/tests/phpunit/includes/diff/TextSlotDiffRendererTest.php
@@ -7,7 +7,7 @@ use MediaWiki\Tests\Diff\TextDiffer\TextDifferData;
use Wikimedia\Assert\ParameterTypeException;
/**
- * @covers TextSlotDiffRenderer
+ * @covers \TextSlotDiffRenderer
*/
class TextSlotDiffRendererTest extends MediaWikiIntegrationTestCase {
diff --git a/tests/phpunit/includes/editpage/EditPageConstraintsTest.php b/tests/phpunit/includes/editpage/EditPageConstraintsTest.php
index 04fdf75ce16a..a1885b939e21 100644
--- a/tests/phpunit/includes/editpage/EditPageConstraintsTest.php
+++ b/tests/phpunit/includes/editpage/EditPageConstraintsTest.php
@@ -14,7 +14,7 @@ use Wikimedia\Rdbms\ReadOnlyMode;
* Integration tests for the various edit constraints, ensuring
* that they result in failures as expected
*
- * @covers MediaWiki\EditPage\EditPage::internalAttemptSave
+ * @covers \MediaWiki\EditPage\EditPage::internalAttemptSave
*
* @group Editing
* @group Database
diff --git a/tests/phpunit/includes/editpage/EditPageTest.php b/tests/phpunit/includes/editpage/EditPageTest.php
index 600143c67839..ccc7fa76c0bc 100644
--- a/tests/phpunit/includes/editpage/EditPageTest.php
+++ b/tests/phpunit/includes/editpage/EditPageTest.php
@@ -66,7 +66,7 @@ class EditPageTest extends MediaWikiLangTestCase {
/**
* @dataProvider provideExtractSectionTitle
- * @covers MediaWiki\EditPage\EditPage::extractSectionTitle
+ * @covers \MediaWiki\EditPage\EditPage::extractSectionTitle
*/
public function testExtractSectionTitle( $section, $title ) {
$this->assertEquals(
@@ -303,7 +303,7 @@ class EditPageTest extends MediaWikiLangTestCase {
/**
* @dataProvider provideCreatePages
- * @covers MediaWiki\EditPage\EditPage
+ * @covers \MediaWiki\EditPage\EditPage
*/
public function testCreatePage(
$desc, $pageTitle, $user, $editText, $expectedCode, $expectedText, $ignoreBlank = false
@@ -339,7 +339,7 @@ class EditPageTest extends MediaWikiLangTestCase {
/**
* @dataProvider provideCreatePages
- * @covers MediaWiki\EditPage\EditPage
+ * @covers \MediaWiki\EditPage\EditPage
*/
public function testCreatePageTrx(
$desc, $pageTitle, $user, $editText, $expectedCode, $expectedText, $ignoreBlank = false
@@ -390,7 +390,7 @@ class EditPageTest extends MediaWikiLangTestCase {
}
/**
- * @covers MediaWiki\EditPage\EditPage
+ * @covers \MediaWiki\EditPage\EditPage
*/
public function testUpdatePage() {
$checkIds = [];
@@ -432,7 +432,7 @@ class EditPageTest extends MediaWikiLangTestCase {
}
/**
- * @covers MediaWiki\EditPage\EditPage
+ * @covers \MediaWiki\EditPage\EditPage
*/
public function testUpdateNoMinor() {
// Test that page creation can never be minor
@@ -486,7 +486,7 @@ class EditPageTest extends MediaWikiLangTestCase {
}
/**
- * @covers MediaWiki\EditPage\EditPage
+ * @covers \MediaWiki\EditPage\EditPage
*/
public function testUpdatePageTrx() {
$text = "one";
@@ -612,7 +612,7 @@ hello
/**
* @dataProvider provideSectionEdit
- * @covers MediaWiki\EditPage\EditPage
+ * @covers \MediaWiki\EditPage\EditPage
*/
public function testSectionEdit( $title, $base, $section, $text, $summary, $expected ) {
$edit = [
@@ -681,7 +681,7 @@ hello
/**
* @dataProvider provideConflictDetection
- * @covers MediaWiki\EditPage\EditPage
+ * @covers \MediaWiki\EditPage\EditPage
*/
public function testConflictDetection( $editUser, $newEdit, $expectedCode, $message ) {
// create page
@@ -807,7 +807,7 @@ hello
/**
* @dataProvider provideAutoMerge
- * @covers MediaWiki\EditPage\EditPage
+ * @covers \MediaWiki\EditPage\EditPage
*/
public function testAutoMerge( $baseUser, $text, $adamsEdit, $bertasEdit,
$expectedCode, $expectedText, $message = null
@@ -856,7 +856,7 @@ hello
/**
* @depends testAutoMerge
- * @covers MediaWiki\EditPage\EditPage
+ * @covers \MediaWiki\EditPage\EditPage
*/
public function testCheckDirectEditingDisallowed_forNonTextContent() {
$user = self::$editUsers['user'];
@@ -950,7 +950,7 @@ hello
/**
* The watchlist expiry field should select the entered value on preview, rather than the
* calculated number of days till the expiry (as it shows on edit).
- * @covers MediaWiki\EditPage\EditPage::getCheckboxesDefinition()
+ * @covers \MediaWiki\EditPage\EditPage::getCheckboxesDefinition()
* @dataProvider provideWatchlistExpiry()
*/
public function testWatchlistExpiry( $existingExpiry, $postVal, $selected, $options ) {
@@ -1020,7 +1020,7 @@ hello
/**
* T277204
- * @covers MediaWiki\EditPage\EditPage
+ * @covers \MediaWiki\EditPage\EditPage
*/
public function testFalseyEditRevId() {
$elmosEdit['wpTextbox1'] = 'Elmo\'s text';
diff --git a/tests/phpunit/includes/exception/BadTitleErrorTest.php b/tests/phpunit/includes/exception/BadTitleErrorTest.php
index a38a8f9a245b..f7efc356dccb 100644
--- a/tests/phpunit/includes/exception/BadTitleErrorTest.php
+++ b/tests/phpunit/includes/exception/BadTitleErrorTest.php
@@ -3,7 +3,7 @@
use MediaWiki\Output\OutputPage;
/**
- * @covers BadTitleError
+ * @covers \BadTitleError
* @author Addshore
*/
class BadTitleErrorTest extends MediaWikiIntegrationTestCase {
diff --git a/tests/phpunit/includes/exception/MWExceptionTest.php b/tests/phpunit/includes/exception/MWExceptionTest.php
index c848bbe1f2ea..75e382c99cca 100644
--- a/tests/phpunit/includes/exception/MWExceptionTest.php
+++ b/tests/phpunit/includes/exception/MWExceptionTest.php
@@ -3,7 +3,7 @@
use Wikimedia\TestingAccessWrapper;
/**
- * @covers MWException
+ * @covers \MWException
* @author Antoine Musso
*/
class MWExceptionTest extends MediaWikiIntegrationTestCase {
@@ -75,7 +75,7 @@ class MWExceptionTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MWException::report
+ * @covers \MWException::report
*/
public function testReport() {
// Turn off to keep mw-error.log file empty in CI (and thus avoid build failure)
@@ -97,7 +97,7 @@ class MWExceptionTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MWException::report
+ * @covers \MWException::report
*/
public function testReportDeprecated() {
// Turn off to keep mw-error.log file empty in CI (and thus avoid build failure)
diff --git a/tests/phpunit/includes/exception/PermissionsErrorTest.php b/tests/phpunit/includes/exception/PermissionsErrorTest.php
index b5b40da2bdfb..b10cdfce320b 100644
--- a/tests/phpunit/includes/exception/PermissionsErrorTest.php
+++ b/tests/phpunit/includes/exception/PermissionsErrorTest.php
@@ -3,7 +3,7 @@
use MediaWiki\Permissions\PermissionStatus;
/**
- * @covers PermissionsError
+ * @covers \PermissionsError
*/
class PermissionsErrorTest extends MediaWikiIntegrationTestCase {
diff --git a/tests/phpunit/includes/exception/ReadOnlyErrorTest.php b/tests/phpunit/includes/exception/ReadOnlyErrorTest.php
index e0a4999c35f5..734d45e4534d 100644
--- a/tests/phpunit/includes/exception/ReadOnlyErrorTest.php
+++ b/tests/phpunit/includes/exception/ReadOnlyErrorTest.php
@@ -3,7 +3,7 @@
use MediaWiki\Tests\Unit\DummyServicesTrait;
/**
- * @covers ReadOnlyError
+ * @covers \ReadOnlyError
* @author Addshore
*/
class ReadOnlyErrorTest extends MediaWikiIntegrationTestCase {
diff --git a/tests/phpunit/includes/exception/ThrottledErrorTest.php b/tests/phpunit/includes/exception/ThrottledErrorTest.php
index 6f853f11c013..7c770dbf6b31 100644
--- a/tests/phpunit/includes/exception/ThrottledErrorTest.php
+++ b/tests/phpunit/includes/exception/ThrottledErrorTest.php
@@ -3,7 +3,7 @@
use MediaWiki\Output\OutputPage;
/**
- * @covers ThrottledError
+ * @covers \ThrottledError
* @author Addshore
*/
class ThrottledErrorTest extends MediaWikiIntegrationTestCase {
diff --git a/tests/phpunit/includes/exception/UserBlockedErrorTest.php b/tests/phpunit/includes/exception/UserBlockedErrorTest.php
index 59bc1a05e629..b7459920ee28 100644
--- a/tests/phpunit/includes/exception/UserBlockedErrorTest.php
+++ b/tests/phpunit/includes/exception/UserBlockedErrorTest.php
@@ -8,7 +8,7 @@ use MediaWiki\Language\RawMessage;
use MediaWiki\User\UserIdentity;
/**
- * @covers UserBlockedError
+ * @covers \UserBlockedError
*/
class UserBlockedErrorTest extends MediaWikiIntegrationTestCase {
diff --git a/tests/phpunit/includes/exception/UserNotLoggedInTest.php b/tests/phpunit/includes/exception/UserNotLoggedInTest.php
index 2f0f34f61bdb..3e71b6997d16 100644
--- a/tests/phpunit/includes/exception/UserNotLoggedInTest.php
+++ b/tests/phpunit/includes/exception/UserNotLoggedInTest.php
@@ -1,7 +1,7 @@
<?php
/**
- * @covers UserNotLoggedIn
+ * @covers \UserNotLoggedIn
* @author Addshore
*/
class UserNotLoggedInTest extends MediaWikiIntegrationTestCase {
diff --git a/tests/phpunit/includes/export/ExportTest.php b/tests/phpunit/includes/export/ExportTest.php
index c527c6c4dce3..3c4ee10312fd 100644
--- a/tests/phpunit/includes/export/ExportTest.php
+++ b/tests/phpunit/includes/export/ExportTest.php
@@ -19,7 +19,7 @@ class ExportTest extends MediaWikiLangTestCase {
}
/**
- * @covers WikiExporter::pageByTitle
+ * @covers \WikiExporter::pageByTitle
*/
public function testPageByTitle() {
$services = $this->getServiceContainer();
@@ -54,7 +54,7 @@ class ExportTest extends MediaWikiLangTestCase {
* Regression test for T328503 to verify that custom content types
* with a getNativeData() override that returns a non-string value export correctly.
*
- * @covers XmlDumpWriter::writeText
+ * @covers \XmlDumpWriter::writeText
*/
public function testShouldExportContentWithNonStringNativeData(): void {
// Make a mock ContentHandler for a Content that has a getNativeData() method
diff --git a/tests/phpunit/includes/externalstore/ExternalStoreAccessTest.php b/tests/phpunit/includes/externalstore/ExternalStoreAccessTest.php
index d0a6b16c7fa5..b00dc48fad10 100644
--- a/tests/phpunit/includes/externalstore/ExternalStoreAccessTest.php
+++ b/tests/phpunit/includes/externalstore/ExternalStoreAccessTest.php
@@ -4,7 +4,7 @@ use MediaWiki\Tests\Unit\DummyServicesTrait;
use PHPUnit\Framework\MockObject\MockObject;
/**
- * @covers ExternalStoreAccess
+ * @covers \ExternalStoreAccess
*/
class ExternalStoreAccessTest extends MediaWikiIntegrationTestCase {
use DummyServicesTrait;
@@ -26,7 +26,7 @@ class ExternalStoreAccessTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers ExternalStoreAccess::isReadOnly
+ * @covers \ExternalStoreAccess::isReadOnly
*/
public function testReadOnly() {
/** @var ExternalStoreMedium|MockObject $medium */
@@ -50,9 +50,9 @@ class ExternalStoreAccessTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers ExternalStoreAccess::fetchFromURL
- * @covers ExternalStoreAccess::fetchFromURLs
- * @covers ExternalStoreAccess::insert
+ * @covers \ExternalStoreAccess::fetchFromURL
+ * @covers \ExternalStoreAccess::fetchFromURLs
+ * @covers \ExternalStoreAccess::insert
*/
public function testReadWrite() {
$active = [ 'memory' ]; // active store types
diff --git a/tests/phpunit/includes/externalstore/ExternalStoreFactoryTest.php b/tests/phpunit/includes/externalstore/ExternalStoreFactoryTest.php
index 9111d71f6dac..bd58b6f31897 100644
--- a/tests/phpunit/includes/externalstore/ExternalStoreFactoryTest.php
+++ b/tests/phpunit/includes/externalstore/ExternalStoreFactoryTest.php
@@ -4,8 +4,8 @@ use MediaWiki\MainConfigNames;
use Wikimedia\Rdbms\LBFactory;
/**
- * @covers ExternalStoreFactory
- * @covers ExternalStoreAccess
+ * @covers \ExternalStoreFactory
+ * @covers \ExternalStoreAccess
*/
class ExternalStoreFactoryTest extends MediaWikiIntegrationTestCase {
@@ -47,9 +47,9 @@ class ExternalStoreFactoryTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers ExternalStoreFactory::getProtocols
- * @covers ExternalStoreFactory::getWriteBaseUrls
- * @covers ExternalStoreFactory::getStore
+ * @covers \ExternalStoreFactory::getProtocols
+ * @covers \ExternalStoreFactory::getWriteBaseUrls
+ * @covers \ExternalStoreFactory::getStore
*/
public function testStoreFactoryBasic() {
$active = [ 'memory', 'mwstore' ];
@@ -94,8 +94,8 @@ class ExternalStoreFactoryTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers ExternalStoreFactory::getStoreForUrl
- * @covers ExternalStoreFactory::getStoreLocationFromUrl
+ * @covers \ExternalStoreFactory::getStoreForUrl
+ * @covers \ExternalStoreFactory::getStoreLocationFromUrl
*/
public function testStoreFactoryReadWrite() {
$active = [ 'memory' ]; // active store types
diff --git a/tests/phpunit/includes/externalstore/ExternalStoreTest.php b/tests/phpunit/includes/externalstore/ExternalStoreTest.php
index 001ccb05c372..13d7c57b1e86 100644
--- a/tests/phpunit/includes/externalstore/ExternalStoreTest.php
+++ b/tests/phpunit/includes/externalstore/ExternalStoreTest.php
@@ -3,7 +3,7 @@
class ExternalStoreTest extends MediaWikiIntegrationTestCase {
/**
- * @covers ExternalStore::fetchFromURL
+ * @covers \ExternalStore::fetchFromURL
*/
public function testExternalFetchFromURL_noExternalStores() {
$this->setService(
@@ -28,7 +28,7 @@ class ExternalStoreTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers ExternalStore::fetchFromURL
+ * @covers \ExternalStore::fetchFromURL
* @dataProvider provideFetchFromURLWithStore
*/
public function testExternalFetchFromURL_someExternalStore( $expect, $url, $msg ) {
diff --git a/tests/phpunit/includes/filebackend/FileBackendGroupIntegrationTest.php b/tests/phpunit/includes/filebackend/FileBackendGroupIntegrationTest.php
index 5a985258330a..bc90bccda3f9 100644
--- a/tests/phpunit/includes/filebackend/FileBackendGroupIntegrationTest.php
+++ b/tests/phpunit/includes/filebackend/FileBackendGroupIntegrationTest.php
@@ -6,7 +6,7 @@ use MediaWiki\Tests\Unit\DummyServicesTrait;
use MediaWiki\WikiMap\WikiMap;
/**
- * @coversDefaultClass FileBackendGroup
+ * @coversDefaultClass \FileBackendGroup
*/
class FileBackendGroupIntegrationTest extends MediaWikiIntegrationTestCase {
use FileBackendGroupTestTrait;
diff --git a/tests/phpunit/includes/filebackend/FileBackendIntegrationTest.php b/tests/phpunit/includes/filebackend/FileBackendIntegrationTest.php
index 612d8f379299..c292a8dd0c9f 100644
--- a/tests/phpunit/includes/filebackend/FileBackendIntegrationTest.php
+++ b/tests/phpunit/includes/filebackend/FileBackendIntegrationTest.php
@@ -12,40 +12,40 @@ use Wikimedia\TestingAccessWrapper;
* @group FileBackend
* @group medium
*
- * @covers FileBackend
+ * @covers \FileBackend
*
- * @covers CopyFileOp
- * @covers CreateFileOp
- * @covers DeleteFileOp
- * @covers DescribeFileOp
- * @covers FSFile
- * @covers FSFileBackend
- * @covers FSFileBackendDirList
- * @covers FSFileBackendFileList
- * @covers FSFileBackendList
- * @covers FSFileOpHandle
- * @covers FileBackendDBRepoWrapper
- * @covers FileBackendError
- * @covers FileBackendGroup
- * @covers FileBackendMultiWrite
- * @covers FileBackendStore
- * @covers FileBackendStoreOpHandle
- * @covers FileBackendStoreShardDirIterator
- * @covers FileBackendStoreShardFileIterator
- * @covers FileBackendStoreShardListIterator
- * @covers FileOp
- * @covers FileOpBatch
- * @covers HTTPFileStreamer
- * @covers LockManagerGroup
- * @covers MemoryFileBackend
- * @covers MoveFileOp
- * @covers NullFileOp
- * @covers StoreFileOp
- * @covers TempFSFile
+ * @covers \CopyFileOp
+ * @covers \CreateFileOp
+ * @covers \DeleteFileOp
+ * @covers \DescribeFileOp
+ * @covers \FSFile
+ * @covers \FSFileBackend
+ * @covers \FSFileBackendDirList
+ * @covers \FSFileBackendFileList
+ * @covers \FSFileBackendList
+ * @covers \FSFileOpHandle
+ * @covers \FileBackendDBRepoWrapper
+ * @covers \FileBackendError
+ * @covers \FileBackendGroup
+ * @covers \FileBackendMultiWrite
+ * @covers \FileBackendStore
+ * @covers \FileBackendStoreOpHandle
+ * @covers \FileBackendStoreShardDirIterator
+ * @covers \FileBackendStoreShardFileIterator
+ * @covers \FileBackendStoreShardListIterator
+ * @covers \FileOp
+ * @covers \FileOpBatch
+ * @covers \HTTPFileStreamer
+ * @covers \LockManagerGroup
+ * @covers \MemoryFileBackend
+ * @covers \MoveFileOp
+ * @covers \NullFileOp
+ * @covers \StoreFileOp
+ * @covers \TempFSFile
*
- * @covers FSLockManager
- * @covers LockManager
- * @covers NullLockManager
+ * @covers \FSLockManager
+ * @covers \LockManager
+ * @covers \NullLockManager
*/
class FileBackendIntegrationTest extends MediaWikiIntegrationTestCase {
diff --git a/tests/phpunit/includes/filebackend/SwiftFileBackendTest.php b/tests/phpunit/includes/filebackend/SwiftFileBackendTest.php
index b373fd36bcfe..8baf6bce3f46 100644
--- a/tests/phpunit/includes/filebackend/SwiftFileBackendTest.php
+++ b/tests/phpunit/includes/filebackend/SwiftFileBackendTest.php
@@ -7,10 +7,10 @@ use Wikimedia\TestingAccessWrapper;
* @group FileBackend
* @group medium
*
- * @covers SwiftFileBackend
- * @covers SwiftFileBackendDirList
- * @covers SwiftFileBackendFileList
- * @covers SwiftFileBackendList
+ * @covers \SwiftFileBackend
+ * @covers \SwiftFileBackendDirList
+ * @covers \SwiftFileBackendFileList
+ * @covers \SwiftFileBackendList
*/
class SwiftFileBackendTest extends MediaWikiIntegrationTestCase {
/** @var TestingAccessWrapper|SwiftFileBackend */
diff --git a/tests/phpunit/includes/filebackend/lockmanager/LockManagerGroupIntegrationTest.php b/tests/phpunit/includes/filebackend/lockmanager/LockManagerGroupIntegrationTest.php
index 6eec15c4e4b9..1ffad97759e0 100644
--- a/tests/phpunit/includes/filebackend/lockmanager/LockManagerGroupIntegrationTest.php
+++ b/tests/phpunit/includes/filebackend/lockmanager/LockManagerGroupIntegrationTest.php
@@ -7,7 +7,7 @@ use MediaWiki\WikiMap\WikiMap;
* Most of the file is covered by the unit test and/or FileBackendTest. Here we fill in the missing
* bits that don't work with unit tests yet.
*
- * @covers LockManagerGroup
+ * @covers \LockManagerGroup
*/
class LockManagerGroupIntegrationTest extends MediaWikiIntegrationTestCase {
public function testWgLockManagers() {
diff --git a/tests/phpunit/includes/filerepo/FileBackendDBRepoWrapperTest.php b/tests/phpunit/includes/filerepo/FileBackendDBRepoWrapperTest.php
index 652c7cf53cf7..1aee776c5ed5 100644
--- a/tests/phpunit/includes/filerepo/FileBackendDBRepoWrapperTest.php
+++ b/tests/phpunit/includes/filerepo/FileBackendDBRepoWrapperTest.php
@@ -10,7 +10,7 @@ class FileBackendDBRepoWrapperTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider getBackendPathsProvider
- * @covers FileBackendDBRepoWrapper::getBackendPaths
+ * @covers \FileBackendDBRepoWrapper::getBackendPaths
*/
public function testGetBackendPaths(
$mocks,
@@ -89,7 +89,7 @@ class FileBackendDBRepoWrapperTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers FileBackendDBRepoWrapper::getFileContentsMulti
+ * @covers \FileBackendDBRepoWrapper::getFileContentsMulti
*/
public function testGetFileContentsMulti() {
[ $dbMock, $backendMock, $wrapperMock ] = $this->getMocks();
diff --git a/tests/phpunit/includes/filerepo/FileRepoTest.php b/tests/phpunit/includes/filerepo/FileRepoTest.php
index e5e9823844fb..b9a60df1be6d 100644
--- a/tests/phpunit/includes/filerepo/FileRepoTest.php
+++ b/tests/phpunit/includes/filerepo/FileRepoTest.php
@@ -3,7 +3,7 @@
use MediaWiki\MainConfigNames;
/**
- * @covers FileRepo
+ * @covers \FileRepo
*/
class FileRepoTest extends MediaWikiIntegrationTestCase {
diff --git a/tests/phpunit/includes/filerepo/LocalRepoTest.php b/tests/phpunit/includes/filerepo/LocalRepoTest.php
index 74bdfed14e3f..f4667256ec0c 100644
--- a/tests/phpunit/includes/filerepo/LocalRepoTest.php
+++ b/tests/phpunit/includes/filerepo/LocalRepoTest.php
@@ -7,8 +7,8 @@ use MediaWiki\WikiMap\WikiMap;
/**
* @group Database
- * @covers FileRepo
- * @covers LocalRepo
+ * @covers \FileRepo
+ * @covers \LocalRepo
*/
class LocalRepoTest extends MediaWikiIntegrationTestCase {
/**
diff --git a/tests/phpunit/includes/filerepo/MigrateFileRepoLayoutTest.php b/tests/phpunit/includes/filerepo/MigrateFileRepoLayoutTest.php
index 070a636b0bf4..14fe32b3e8b3 100644
--- a/tests/phpunit/includes/filerepo/MigrateFileRepoLayoutTest.php
+++ b/tests/phpunit/includes/filerepo/MigrateFileRepoLayoutTest.php
@@ -6,7 +6,7 @@ use Wikimedia\Rdbms\IDatabase;
use Wikimedia\Rdbms\SelectQueryBuilder;
/**
- * @covers MigrateFileRepoLayout
+ * @covers \MigrateFileRepoLayout
*/
class MigrateFileRepoLayoutTest extends MediaWikiIntegrationTestCase {
protected $tmpPrefix;
diff --git a/tests/phpunit/includes/filerepo/RepoGroupTest.php b/tests/phpunit/includes/filerepo/RepoGroupTest.php
index 81b8eff68d25..2a4be9467164 100644
--- a/tests/phpunit/includes/filerepo/RepoGroupTest.php
+++ b/tests/phpunit/includes/filerepo/RepoGroupTest.php
@@ -3,7 +3,7 @@
use MediaWiki\MainConfigNames;
/**
- * @covers RepoGroup
+ * @covers \RepoGroup
*/
class RepoGroupTest extends MediaWikiIntegrationTestCase {
diff --git a/tests/phpunit/includes/filerepo/StoreBatchTest.php b/tests/phpunit/includes/filerepo/StoreBatchTest.php
index 2945341128f1..b913e5bb5d2b 100644
--- a/tests/phpunit/includes/filerepo/StoreBatchTest.php
+++ b/tests/phpunit/includes/filerepo/StoreBatchTest.php
@@ -124,7 +124,7 @@ class StoreBatchTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers FileRepo::store
+ * @covers \FileRepo::store
*/
public function teststore() {
global $IP;
diff --git a/tests/phpunit/includes/filerepo/file/FileTest.php b/tests/phpunit/includes/filerepo/file/FileTest.php
index 5b8dc77c9377..e0798526ba38 100644
--- a/tests/phpunit/includes/filerepo/file/FileTest.php
+++ b/tests/phpunit/includes/filerepo/file/FileTest.php
@@ -11,7 +11,7 @@ class FileTest extends MediaWikiMediaTestCase {
* @param string $filename
* @param bool $expected
* @dataProvider providerCanAnimate
- * @covers File::canAnimateThumbIfAppropriate
+ * @covers \File::canAnimateThumbIfAppropriate
*/
public function testCanAnimateThumbIfAppropriate( $filename, $expected ) {
$this->overrideConfigValue( MainConfigNames::MaxAnimatedGifArea, 9000 );
@@ -37,7 +37,7 @@ class FileTest extends MediaWikiMediaTestCase {
/**
* @dataProvider getThumbnailBucketProvider
- * @covers File::getThumbnailBucket
+ * @covers \File::getThumbnailBucket
*/
public function testGetThumbnailBucket( $data ) {
$this->overrideConfigValues( [
@@ -140,7 +140,7 @@ class FileTest extends MediaWikiMediaTestCase {
/**
* @dataProvider getThumbnailSourceProvider
- * @covers File::getThumbnailSource
+ * @covers \File::getThumbnailSource
*/
public function testGetThumbnailSource( $data ) {
$backendMock = $this->getMockBuilder( FSFileBackend::class )
@@ -251,7 +251,7 @@ class FileTest extends MediaWikiMediaTestCase {
/**
* @dataProvider generateBucketsIfNeededProvider
- * @covers File::generateBucketsIfNeeded
+ * @covers \File::generateBucketsIfNeeded
*/
public function testGenerateBucketsIfNeeded( $data ) {
$this->overrideConfigValue( MainConfigNames::ThumbnailBuckets, $data['buckets'] );
@@ -393,7 +393,7 @@ class FileTest extends MediaWikiMediaTestCase {
}
/**
- * @covers File::getDisplayWidthHeight
+ * @covers \File::getDisplayWidthHeight
* @dataProvider providerGetDisplayWidthHeight
* @param array $dim Array [maxWidth, maxHeight, width, height]
* @param array $expected Array [width, height] The width and height we expect to display at
@@ -448,7 +448,7 @@ class FileTest extends MediaWikiMediaTestCase {
}
/**
- * @covers File::normalizeTitle
+ * @covers \File::normalizeTitle
* @dataProvider provideNormalizeTitle
*/
public function testNormalizeTitle( $title, $expected ) {
@@ -466,7 +466,7 @@ class FileTest extends MediaWikiMediaTestCase {
}
/**
- * @covers File::normalizeTitle
+ * @covers \File::normalizeTitle
* @dataProvider provideNormalizeTitleFails
*/
public function testNormalizeTitleFails( $title ) {
@@ -478,8 +478,8 @@ class FileTest extends MediaWikiMediaTestCase {
}
/**
- * @covers File::setHandlerState
- * @covers File::getHandlerState
+ * @covers \File::setHandlerState
+ * @covers \File::getHandlerState
*/
public function testSetHandlerState() {
$obj = (object)[];
diff --git a/tests/phpunit/includes/filerepo/file/LocalFileTest.php b/tests/phpunit/includes/filerepo/file/LocalFileTest.php
index f95c62d7f9eb..1d44b5443ddc 100644
--- a/tests/phpunit/includes/filerepo/file/LocalFileTest.php
+++ b/tests/phpunit/includes/filerepo/file/LocalFileTest.php
@@ -39,7 +39,7 @@ class LocalFileTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers File::getHashPath
+ * @covers \File::getHashPath
* @dataProvider provideGetHashPath
* @param string $expected
* @param bool $capitalLinks
@@ -60,7 +60,7 @@ class LocalFileTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers File::getRel
+ * @covers \File::getRel
* @dataProvider provideGetRel
* @param string $expected
* @param bool $capitalLinks
@@ -82,7 +82,7 @@ class LocalFileTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers File::getUrlRel
+ * @covers \File::getUrlRel
* @dataProvider provideGetUrlRel
* @param string $expected
* @param bool $capitalLinks
@@ -104,7 +104,7 @@ class LocalFileTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers File::getArchivePath
+ * @covers \File::getArchivePath
* @dataProvider provideGetArchivePath
* @param string $expected
* @param bool $capitalLinks
@@ -133,7 +133,7 @@ class LocalFileTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers File::getThumbPath
+ * @covers \File::getThumbPath
* @dataProvider provideGetThumbPath
* @param string $expected
* @param bool $capitalLinks
@@ -162,7 +162,7 @@ class LocalFileTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers File::getArchiveUrl
+ * @covers \File::getArchiveUrl
* @dataProvider provideGetArchiveUrl
* @param string $expected
* @param bool $capitalLinks
@@ -186,7 +186,7 @@ class LocalFileTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers File::getThumbUrl
+ * @covers \File::getThumbUrl
* @dataProvider provideGetThumbUrl
* @param string $expected
* @param bool $capitalLinks
@@ -210,7 +210,7 @@ class LocalFileTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers File::getArchiveVirtualUrl
+ * @covers \File::getArchiveVirtualUrl
* @dataProvider provideGetArchiveVirtualUrl
* @param string $expected
* @param bool $capitalLinks
@@ -236,7 +236,7 @@ class LocalFileTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers File::getThumbVirtualUrl
+ * @covers \File::getThumbVirtualUrl
* @dataProvider provideGetThumbVirtualUrl
* @param string $expected
* @param bool $capitalLinks
@@ -260,7 +260,7 @@ class LocalFileTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers File::getUrl
+ * @covers \File::getUrl
* @dataProvider provideGetUrl
* @param string $expected
* @param bool $capitalLinks
@@ -281,7 +281,7 @@ class LocalFileTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers LocalFile::getUploader
+ * @covers \LocalFile::getUploader
*/
public function testGetUploaderForNonExistingFile() {
$file = ( new LocalRepo( self::getDefaultInfo() ) )->newFile( 'test!' );
@@ -401,7 +401,7 @@ class LocalFileTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider providePermissionChecks
- * @covers LocalFile::getUploader
+ * @covers \LocalFile::getUploader
*/
public function testGetUploader(
Authority $performer,
@@ -419,7 +419,7 @@ class LocalFileTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider providePermissionChecks
- * @covers ArchivedFile::getDescription
+ * @covers \ArchivedFile::getDescription
*/
public function testGetDescription(
Authority $performer,
@@ -437,7 +437,7 @@ class LocalFileTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider providePermissionChecks
- * @covers ArchivedFile::getUploader
+ * @covers \ArchivedFile::getUploader
*/
public function testArchivedGetUploader(
Authority $performer,
@@ -455,7 +455,7 @@ class LocalFileTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider providePermissionChecks
- * @covers LocalFile::getDescription
+ * @covers \LocalFile::getDescription
*/
public function testArchivedGetDescription(
Authority $performer,
@@ -472,7 +472,7 @@ class LocalFileTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers File::getDescriptionShortUrl
+ * @covers \File::getDescriptionShortUrl
*/
public function testDescriptionShortUrlForNonExistingFile() {
$file = ( new LocalRepo( self::getDefaultInfo() ) )->newFile( 'test!' );
@@ -480,7 +480,7 @@ class LocalFileTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers LocalFile::getDescriptionText
+ * @covers \LocalFile::getDescriptionText
*/
public function testDescriptionText_NonExisting() {
$file = ( new LocalRepo( self::getDefaultInfo() ) )->newFile( 'test!' );
@@ -488,7 +488,7 @@ class LocalFileTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers LocalFile::getDescriptionText
+ * @covers \LocalFile::getDescriptionText
*/
public function testDescriptionText_Existing() {
$this->assertTrue( $this->editPage(
@@ -535,8 +535,8 @@ class LocalFileTest extends MediaWikiIntegrationTestCase {
* Test loadFromDB() and loadFromCache() and helpers
*
* @dataProvider provideLoadFromDBAndCache
- * @covers File
- * @covers LocalFile
+ * @covers \File
+ * @covers \LocalFile
* @param string $meta
* @param array $blobs Metadata blob values
* @param int|false $largeItemSize The size of the "large" metadata item,
@@ -696,7 +696,7 @@ class LocalFileTest extends MediaWikiIntegrationTestCase {
/**
* Test the legacy function LocalFile::getMetadata()
* @dataProvider provideLegacyMetadataRoundTrip
- * @covers LocalFile
+ * @covers \LocalFile
*/
public function testLegacyMetadataRoundTrip( $meta ) {
$file = new class( $meta ) extends LocalFile {
@@ -806,7 +806,7 @@ class LocalFileTest extends MediaWikiIntegrationTestCase {
* Test recordUpload3() and confirm that file properties are reflected back
* after loading the new file from the DB.
*
- * @covers LocalFile
+ * @covers \LocalFile
* @dataProvider provideRecordUpload3
* @param array $props File properties
* @param array $conf LocalRepo configuration overrides
@@ -846,7 +846,7 @@ class LocalFileTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers LocalFile
+ * @covers \LocalFile
*/
public function testUpload() {
$repo = new LocalRepo(
@@ -903,8 +903,8 @@ class LocalFileTest extends MediaWikiIntegrationTestCase {
/**
* Test reserializeMetadata() via maybeUpgradeRow()
*
- * @covers LocalFile::maybeUpgradeRow
- * @covers LocalFile::reserializeMetadata
+ * @covers \LocalFile::maybeUpgradeRow
+ * @covers \LocalFile::reserializeMetadata
* @dataProvider provideReserializeMetadata
*/
public function testReserializeMetadata( $input, $expected ) {
@@ -966,8 +966,8 @@ class LocalFileTest extends MediaWikiIntegrationTestCase {
/**
* Test upgradeRow() via maybeUpgradeRow()
*
- * @covers LocalFile::maybeUpgradeRow
- * @covers LocalFile::upgradeRow
+ * @covers \LocalFile::maybeUpgradeRow
+ * @covers \LocalFile::upgradeRow
*/
public function testUpgradeRow() {
$repo = new LocalRepo( [
diff --git a/tests/phpunit/includes/htmlform/HTMLAutoCompleteSelectFieldTest.php b/tests/phpunit/includes/htmlform/HTMLAutoCompleteSelectFieldTest.php
index 32bf11885cc5..4777bfe03ea5 100644
--- a/tests/phpunit/includes/htmlform/HTMLAutoCompleteSelectFieldTest.php
+++ b/tests/phpunit/includes/htmlform/HTMLAutoCompleteSelectFieldTest.php
@@ -1,6 +1,6 @@
<?php
/**
- * @covers HTMLAutoCompleteSelectField
+ * @covers \HTMLAutoCompleteSelectField
*/
class HTMLAutoCompleteSelectFieldTest extends MediaWikiIntegrationTestCase {
diff --git a/tests/phpunit/includes/htmlform/HTMLFormFieldTest.php b/tests/phpunit/includes/htmlform/HTMLFormFieldTest.php
index 2b62f1de92e9..b10dfcc13c90 100644
--- a/tests/phpunit/includes/htmlform/HTMLFormFieldTest.php
+++ b/tests/phpunit/includes/htmlform/HTMLFormFieldTest.php
@@ -11,7 +11,7 @@ use MediaWiki\Title\Title;
use Wikimedia\TestingAccessWrapper;
/**
- * @covers HTMLFormField
+ * @covers \HTMLFormField
*/
class HTMLFormFieldTest extends PHPUnit\Framework\TestCase {
@@ -32,12 +32,12 @@ class HTMLFormFieldTest extends PHPUnit\Framework\TestCase {
}
/**
- * @covers HTMLFormField::isHidden
- * @covers HTMLFormField::isDisabled
- * @covers HTMLFormField::checkStateRecurse
- * @covers HTMLFormField::validateCondState
- * @covers HTMLFormField::getNearestField
- * @covers HTMLFormField::getNearestFieldValue
+ * @covers \HTMLFormField::isHidden
+ * @covers \HTMLFormField::isDisabled
+ * @covers \HTMLFormField::checkStateRecurse
+ * @covers \HTMLFormField::validateCondState
+ * @covers \HTMLFormField::getNearestField
+ * @covers \HTMLFormField::getNearestFieldValue
* @dataProvider provideCondState
*/
public function testCondState( $fieldInfo, $requestData, $callback, $exception = null ) {
@@ -377,7 +377,7 @@ class HTMLFormFieldTest extends PHPUnit\Framework\TestCase {
}
/**
- * @covers HTMLFormField::parseCondState
+ * @covers \HTMLFormField::parseCondState
* @dataProvider provideParseCondState
*/
public function testParseCondState( $fieldName, $condState, $excepted ) {
diff --git a/tests/phpunit/includes/htmlform/HTMLFormTest.php b/tests/phpunit/includes/htmlform/HTMLFormTest.php
index 2899a2290ab9..c94506064de2 100644
--- a/tests/phpunit/includes/htmlform/HTMLFormTest.php
+++ b/tests/phpunit/includes/htmlform/HTMLFormTest.php
@@ -11,7 +11,7 @@ use MediaWiki\Title\Title;
use MediaWiki\User\User;
/**
- * @covers HTMLForm
+ * @covers \HTMLForm
*
* @license GPL-2.0-or-later
* @author Gergő Tisza
diff --git a/tests/phpunit/includes/http/GuzzleHttpRequestTest.php b/tests/phpunit/includes/http/GuzzleHttpRequestTest.php
index 71b7de766a85..659f0626b404 100644
--- a/tests/phpunit/includes/http/GuzzleHttpRequestTest.php
+++ b/tests/phpunit/includes/http/GuzzleHttpRequestTest.php
@@ -11,8 +11,8 @@ use GuzzleHttp\Psr7\Response;
*
* No actual requests are made herein - all external communications are mocked
*
- * @covers GuzzleHttpRequest
- * @covers MWHttpRequest
+ * @covers \GuzzleHttpRequest
+ * @covers \MWHttpRequest
*/
class GuzzleHttpRequestTest extends MediaWikiIntegrationTestCase {
/** @var int[] */
diff --git a/tests/phpunit/includes/http/MWHttpRequestTest.php b/tests/phpunit/includes/http/MWHttpRequestTest.php
index 7a5da173bf1b..2506ef55e20e 100644
--- a/tests/phpunit/includes/http/MWHttpRequestTest.php
+++ b/tests/phpunit/includes/http/MWHttpRequestTest.php
@@ -5,7 +5,7 @@ use Wikimedia\Http\TelemetryHeadersInterface;
use Wikimedia\TestingAccessWrapper;
/**
- * @covers MWHttpRequest
+ * @covers \MWHttpRequest
*/
class MWHttpRequestTest extends PHPUnit\Framework\TestCase {
@@ -79,7 +79,7 @@ class MWHttpRequestTest extends PHPUnit\Framework\TestCase {
/**
* T29854 : MWHttpRequest::isValidURI is too lax
* @dataProvider provideURI
- * @covers MWHttpRequest::isValidURI
+ * @covers \MWHttpRequest::isValidURI
*/
public function testIsValidUri( $expect, $uri, $message = '' ) {
$this->assertSame( $expect, MWHttpRequest::isValidURI( $uri ), $message );
diff --git a/tests/phpunit/includes/import/ImportExportTest.php b/tests/phpunit/includes/import/ImportExportTest.php
index d334aaaab911..6297a5211ccf 100644
--- a/tests/phpunit/includes/import/ImportExportTest.php
+++ b/tests/phpunit/includes/import/ImportExportTest.php
@@ -11,8 +11,8 @@ use Wikimedia\Rdbms\SelectQueryBuilder;
* Import/export round trip test.
*
* @group Database
- * @covers WikiExporter
- * @covers WikiImporter
+ * @covers \WikiExporter
+ * @covers \WikiImporter
*/
class ImportExportTest extends MediaWikiLangTestCase {
diff --git a/tests/phpunit/includes/import/ImportFailureTest.php b/tests/phpunit/includes/import/ImportFailureTest.php
index f909441b1f6d..1f3d4f5599dd 100644
--- a/tests/phpunit/includes/import/ImportFailureTest.php
+++ b/tests/phpunit/includes/import/ImportFailureTest.php
@@ -7,7 +7,7 @@ use MediaWiki\MainConfigNames;
* Import failure test.
*
* @group Database
- * @covers WikiImporter
+ * @covers \WikiImporter
*/
class ImportFailureTest extends MediaWikiLangTestCase {
diff --git a/tests/phpunit/includes/import/ImportLinkCacheIntegrationTest.php b/tests/phpunit/includes/import/ImportLinkCacheIntegrationTest.php
index f6cf58b6de51..44ddef87b63a 100644
--- a/tests/phpunit/includes/import/ImportLinkCacheIntegrationTest.php
+++ b/tests/phpunit/includes/import/ImportLinkCacheIntegrationTest.php
@@ -9,8 +9,8 @@ use MediaWiki\Title\Title;
*
* @group large
* @group Database
- * @covers ImportStreamSource
- * @covers ImportReporter
+ * @covers \ImportStreamSource
+ * @covers \ImportReporter
*
* @author mwjames
*/
diff --git a/tests/phpunit/includes/import/ImportTest.php b/tests/phpunit/includes/import/ImportTest.php
index b4da68957c38..f92f62d6e9db 100644
--- a/tests/phpunit/includes/import/ImportTest.php
+++ b/tests/phpunit/includes/import/ImportTest.php
@@ -14,7 +14,7 @@ use MediaWiki\User\User;
class ImportTest extends MediaWikiLangTestCase {
/**
- * @covers WikiImporter
+ * @covers \WikiImporter
* @dataProvider getUnknownTagsXML
* @param string $xml
* @param string $text
@@ -74,7 +74,7 @@ EOF
}
/**
- * @covers WikiImporter::handlePage
+ * @covers \WikiImporter::handlePage
* @dataProvider getRedirectXML
* @param string $xml
* @param string|null $redirectTitle
@@ -158,7 +158,7 @@ EOF
}
/**
- * @covers WikiImporter::handleSiteInfo
+ * @covers \WikiImporter::handleSiteInfo
* @dataProvider getSiteInfoXML
* @param string $xml
* @param array|null $namespaces
@@ -217,7 +217,7 @@ EOF
/**
* @dataProvider provideUnknownUserHandling
- * @covers WikiImporter::setUsernamePrefix
+ * @covers \WikiImporter::setUsernamePrefix
* @covers \MediaWiki\User\ExternalUserNames::addPrefix
* @covers \MediaWiki\User\ExternalUserNames::applyPrefix
* @param bool $assign
diff --git a/tests/phpunit/includes/import/ImportableOldRevisionImporterTest.php b/tests/phpunit/includes/import/ImportableOldRevisionImporterTest.php
index 1a52e4ced2c9..e32b01f1251d 100644
--- a/tests/phpunit/includes/import/ImportableOldRevisionImporterTest.php
+++ b/tests/phpunit/includes/import/ImportableOldRevisionImporterTest.php
@@ -7,7 +7,7 @@ use Psr\Log\NullLogger;
/**
* @group Database
- * @covers ImportableOldRevisionImporter
+ * @covers \ImportableOldRevisionImporter
*/
class ImportableOldRevisionImporterTest extends MediaWikiIntegrationTestCase {
use TempUserTestTrait;
diff --git a/tests/phpunit/includes/interwiki/ClassicInterwikiLookupTest.php b/tests/phpunit/includes/interwiki/ClassicInterwikiLookupTest.php
index cf0b28dd8e5f..3bc16c0b5265 100644
--- a/tests/phpunit/includes/interwiki/ClassicInterwikiLookupTest.php
+++ b/tests/phpunit/includes/interwiki/ClassicInterwikiLookupTest.php
@@ -6,7 +6,7 @@ use MediaWiki\MainConfigNames;
use MediaWiki\WikiMap\WikiMap;
/**
- * @covers MediaWiki\Interwiki\ClassicInterwikiLookup
+ * @covers \MediaWiki\Interwiki\ClassicInterwikiLookup
* @group Database
*/
class ClassicInterwikiLookupTest extends MediaWikiIntegrationTestCase {
diff --git a/tests/phpunit/includes/interwiki/InterwikiTest.php b/tests/phpunit/includes/interwiki/InterwikiTest.php
index 03c5396b8121..57fd82118d31 100644
--- a/tests/phpunit/includes/interwiki/InterwikiTest.php
+++ b/tests/phpunit/includes/interwiki/InterwikiTest.php
@@ -4,7 +4,7 @@ use MediaWiki\MainConfigNames;
use Wikimedia\Rdbms\Platform\ISQLPlatform;
/**
- * @covers Interwiki
+ * @covers \Interwiki
* @group Database
*/
class InterwikiTest extends MediaWikiIntegrationTestCase {
diff --git a/tests/phpunit/includes/jobqueue/JobFactoryTest.php b/tests/phpunit/includes/jobqueue/JobFactoryTest.php
index bb272af948b2..56ef965e732b 100644
--- a/tests/phpunit/includes/jobqueue/JobFactoryTest.php
+++ b/tests/phpunit/includes/jobqueue/JobFactoryTest.php
@@ -5,7 +5,7 @@ use MediaWiki\Title\Title;
/**
* @author Addshore
- * @covers MediaWiki\JobQueue\JobFactory
+ * @covers \MediaWiki\JobQueue\JobFactory
*/
class JobFactoryTest extends MediaWikiIntegrationTestCase {
diff --git a/tests/phpunit/includes/jobqueue/JobQueueMemoryTest.php b/tests/phpunit/includes/jobqueue/JobQueueMemoryTest.php
index 521c9ed9099f..6786eb2e2e4e 100644
--- a/tests/phpunit/includes/jobqueue/JobQueueMemoryTest.php
+++ b/tests/phpunit/includes/jobqueue/JobQueueMemoryTest.php
@@ -5,7 +5,7 @@ use MediaWiki\Title\Title;
use MediaWiki\WikiMap\WikiMap;
/**
- * @covers JobQueueMemory
+ * @covers \JobQueueMemory
*
* @group JobQueue
*
diff --git a/tests/phpunit/includes/jobqueue/JobQueueTest.php b/tests/phpunit/includes/jobqueue/JobQueueTest.php
index 1e1678c5b0ae..51951609c2f1 100644
--- a/tests/phpunit/includes/jobqueue/JobQueueTest.php
+++ b/tests/phpunit/includes/jobqueue/JobQueueTest.php
@@ -7,7 +7,7 @@ use MediaWiki\WikiMap\WikiMap;
* @group JobQueue
* @group medium
* @group Database
- * @covers JobQueue
+ * @covers \JobQueue
*/
class JobQueueTest extends MediaWikiIntegrationTestCase {
protected $key;
diff --git a/tests/phpunit/includes/jobqueue/JobRunnerTest.php b/tests/phpunit/includes/jobqueue/JobRunnerTest.php
index ae106a2470f8..18914f943e14 100644
--- a/tests/phpunit/includes/jobqueue/JobRunnerTest.php
+++ b/tests/phpunit/includes/jobqueue/JobRunnerTest.php
@@ -8,7 +8,7 @@ use MediaWiki\Title\Title;
* Class JobRunnerTest
*
* @group Database
- * @covers JobRunner
+ * @covers \JobRunner
*/
class JobRunnerTest extends MediaWikiIntegrationTestCase {
diff --git a/tests/phpunit/includes/jobqueue/JobTest.php b/tests/phpunit/includes/jobqueue/JobTest.php
index bc1a4d1cb53d..2607a30410bd 100644
--- a/tests/phpunit/includes/jobqueue/JobTest.php
+++ b/tests/phpunit/includes/jobqueue/JobTest.php
@@ -6,7 +6,7 @@ use MediaWiki\Title\Title;
/**
* @author Addshore
- * @covers Job
+ * @covers \Job
*/
class JobTest extends MediaWikiIntegrationTestCase {
diff --git a/tests/phpunit/includes/jobqueue/RefreshLinksPartitionTest.php b/tests/phpunit/includes/jobqueue/RefreshLinksPartitionTest.php
index c85ee7e2f725..c7fb9d77bef1 100644
--- a/tests/phpunit/includes/jobqueue/RefreshLinksPartitionTest.php
+++ b/tests/phpunit/includes/jobqueue/RefreshLinksPartitionTest.php
@@ -11,7 +11,7 @@ class RefreshLinksPartitionTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider provideBacklinks
- * @covers BacklinkJobUtils
+ * @covers \BacklinkJobUtils
*/
public function testRefreshLinks( $ns, $dbKey, $pages ) {
$title = Title::makeTitle( $ns, $dbKey );
diff --git a/tests/phpunit/includes/jobqueue/jobs/CategoryMembershipChangeJobTest.php b/tests/phpunit/includes/jobqueue/jobs/CategoryMembershipChangeJobTest.php
index 9da80aab41be..a99259953fd4 100644
--- a/tests/phpunit/includes/jobqueue/jobs/CategoryMembershipChangeJobTest.php
+++ b/tests/phpunit/includes/jobqueue/jobs/CategoryMembershipChangeJobTest.php
@@ -6,7 +6,7 @@ use MediaWiki\Title\Title;
use MediaWiki\Utils\MWTimestamp;
/**
- * @covers CategoryMembershipChangeJob
+ * @covers \CategoryMembershipChangeJob
*
* @group JobQueue
* @group Database
diff --git a/tests/phpunit/includes/jobqueue/jobs/ClearUserWatchlistJobTest.php b/tests/phpunit/includes/jobqueue/jobs/ClearUserWatchlistJobTest.php
index 95051731313a..c0e613a9b5db 100644
--- a/tests/phpunit/includes/jobqueue/jobs/ClearUserWatchlistJobTest.php
+++ b/tests/phpunit/includes/jobqueue/jobs/ClearUserWatchlistJobTest.php
@@ -6,7 +6,7 @@ use MediaWiki\User\UserIdentity;
use MediaWiki\User\UserIdentityValue;
/**
- * @covers ClearUserWatchlistJob
+ * @covers \ClearUserWatchlistJob
*
* @group JobQueue
* @group Database
diff --git a/tests/phpunit/includes/jobqueue/jobs/ParsoidCachePrewarmJobTest.php b/tests/phpunit/includes/jobqueue/jobs/ParsoidCachePrewarmJobTest.php
index ce935172a0fa..63f936cac555 100644
--- a/tests/phpunit/includes/jobqueue/jobs/ParsoidCachePrewarmJobTest.php
+++ b/tests/phpunit/includes/jobqueue/jobs/ParsoidCachePrewarmJobTest.php
@@ -23,9 +23,9 @@ class ParsoidCachePrewarmJobTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers ParsoidCachePrewarmJob::doParsoidCacheUpdate
- * @covers ParsoidCachePrewarmJob::newSpec
- * @covers ParsoidCachePrewarmJob::run
+ * @covers \ParsoidCachePrewarmJob::doParsoidCacheUpdate
+ * @covers \ParsoidCachePrewarmJob::newSpec
+ * @covers \ParsoidCachePrewarmJob::run
*/
public function testRun() {
$page = $this->getExistingTestPage( 'ParsoidPrewarmJob' )->toPageRecord();
@@ -99,7 +99,7 @@ class ParsoidCachePrewarmJobTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers ParsoidCachePrewarmJob::newSpec
+ * @covers \ParsoidCachePrewarmJob::newSpec
*/
public function testEnqueueSpec() {
$page = $this->getExistingTestPage( 'ParsoidPrewarmJob' )->toPageRecord();
diff --git a/tests/phpunit/includes/jobqueue/jobs/RefreshLinksJobTest.php b/tests/phpunit/includes/jobqueue/jobs/RefreshLinksJobTest.php
index 02d85bbeee48..9e2c584ca9c5 100644
--- a/tests/phpunit/includes/jobqueue/jobs/RefreshLinksJobTest.php
+++ b/tests/phpunit/includes/jobqueue/jobs/RefreshLinksJobTest.php
@@ -5,7 +5,7 @@ use MediaWiki\Page\PageAssertionException;
use MediaWiki\Title\Title;
/**
- * @covers RefreshLinksJob
+ * @covers \RefreshLinksJob
*
* @group JobQueue
* @group Database
diff --git a/tests/phpunit/includes/jobqueue/jobs/UserEditCountInitJobTest.php b/tests/phpunit/includes/jobqueue/jobs/UserEditCountInitJobTest.php
index b08cca5b1039..32f579492cff 100644
--- a/tests/phpunit/includes/jobqueue/jobs/UserEditCountInitJobTest.php
+++ b/tests/phpunit/includes/jobqueue/jobs/UserEditCountInitJobTest.php
@@ -14,7 +14,7 @@ class UserEditCountInitJobTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers UserEditCountInitJob
+ * @covers \UserEditCountInitJob
* @dataProvider provideTestCases
*/
public function testUserEditCountInitJob( $startingEditCount, $setCount, $finalCount ) {
diff --git a/tests/phpunit/includes/language/ConverterRuleTest.php b/tests/phpunit/includes/language/ConverterRuleTest.php
index b65508d367ab..af5b05a9d430 100644
--- a/tests/phpunit/includes/language/ConverterRuleTest.php
+++ b/tests/phpunit/includes/language/ConverterRuleTest.php
@@ -1,7 +1,7 @@
<?php
/**
- * @covers ConverterRule
+ * @covers \ConverterRule
*/
class ConverterRuleTest extends MediaWikiIntegrationTestCase {
diff --git a/tests/phpunit/includes/language/LanguageConverterFactoryTest.php b/tests/phpunit/includes/language/LanguageConverterFactoryTest.php
index db41d4217dc7..2ed2c71b8fbd 100644
--- a/tests/phpunit/includes/language/LanguageConverterFactoryTest.php
+++ b/tests/phpunit/includes/language/LanguageConverterFactoryTest.php
@@ -8,7 +8,7 @@ use Wikimedia\TestingAccessWrapper;
/**
* @group large
* @group Language
- * @coversDefaultClass MediaWiki\Languages\LanguageConverterFactory
+ * @coversDefaultClass \MediaWiki\Languages\LanguageConverterFactory
*/
class LanguageConverterFactoryTest extends MediaWikiLangTestCase {
/**
diff --git a/tests/phpunit/includes/language/LanguageConverterIntegrationTest.php b/tests/phpunit/includes/language/LanguageConverterIntegrationTest.php
index 6df9bd627f40..e6c7227b731d 100644
--- a/tests/phpunit/includes/language/LanguageConverterIntegrationTest.php
+++ b/tests/phpunit/includes/language/LanguageConverterIntegrationTest.php
@@ -8,7 +8,7 @@ class LanguageConverterIntegrationTest extends MediaWikiIntegrationTestCase {
use LanguageConverterTestTrait;
/**
- * @covers LanguageConverter::hasVariant
+ * @covers \LanguageConverter::hasVariant
*/
public function testHasVariant() {
// See LanguageSrTest::testHasVariant() for additional tests
diff --git a/tests/phpunit/includes/language/LanguageConverterTest.php b/tests/phpunit/includes/language/LanguageConverterTest.php
index 59d83686c10d..23f38a3f2511 100644
--- a/tests/phpunit/includes/language/LanguageConverterTest.php
+++ b/tests/phpunit/includes/language/LanguageConverterTest.php
@@ -53,7 +53,7 @@ class LanguageConverterTest extends MediaWikiLangTestCase {
}
/**
- * @covers LanguageConverter::getPreferredVariant
+ * @covers \LanguageConverter::getPreferredVariant
*/
public function testGetPreferredVariantDefaults() {
$this->assertEquals( 'tg', $this->lc->getPreferredVariant() );
@@ -61,8 +61,8 @@ class LanguageConverterTest extends MediaWikiLangTestCase {
/**
* @dataProvider provideGetPreferredVariant
- * @covers LanguageConverter::getPreferredVariant
- * @covers LanguageConverter::getURLVariant
+ * @covers \LanguageConverter::getPreferredVariant
+ * @covers \LanguageConverter::getURLVariant
*/
public function testGetPreferredVariant( $requestVal, $expected ) {
global $wgRequest;
@@ -79,8 +79,8 @@ class LanguageConverterTest extends MediaWikiLangTestCase {
/**
* @dataProvider provideGetPreferredVariantHeaders
- * @covers LanguageConverter::getPreferredVariant
- * @covers LanguageConverter::getHeaderVariant
+ * @covers \LanguageConverter::getPreferredVariant
+ * @covers \LanguageConverter::getHeaderVariant
*/
public function testGetPreferredVariantHeaders( $headerVal, $expected ) {
global $wgRequest;
@@ -99,7 +99,7 @@ class LanguageConverterTest extends MediaWikiLangTestCase {
/**
* @dataProvider provideGetPreferredVariantUserOption
- * @covers LanguageConverter::getPreferredVariant
+ * @covers \LanguageConverter::getPreferredVariant
*/
public function testGetPreferredVariantUserOption( $optionVal, $expected, $foreignLang ) {
$optionName = 'variant';
@@ -134,9 +134,9 @@ class LanguageConverterTest extends MediaWikiLangTestCase {
}
/**
- * @covers LanguageConverter::getPreferredVariant
- * @covers LanguageConverter::getUserVariant
- * @covers LanguageConverter::getURLVariant
+ * @covers \LanguageConverter::getPreferredVariant
+ * @covers \LanguageConverter::getUserVariant
+ * @covers \LanguageConverter::getURLVariant
*/
public function testGetPreferredVariantHeaderUserVsUrl() {
global $wgRequest;
@@ -161,7 +161,7 @@ class LanguageConverterTest extends MediaWikiLangTestCase {
/**
* @dataProvider provideGetPreferredVariantDefaultLanguageVariant
- * @covers LanguageConverter::getPreferredVariant
+ * @covers \LanguageConverter::getPreferredVariant
*/
public function testGetPreferredVariantDefaultLanguageVariant( $globalVal, $expected ) {
$this->overrideConfigValue( MainConfigNames::DefaultLanguageVariant, $globalVal );
@@ -175,8 +175,8 @@ class LanguageConverterTest extends MediaWikiLangTestCase {
}
/**
- * @covers LanguageConverter::getPreferredVariant
- * @covers LanguageConverter::getURLVariant
+ * @covers \LanguageConverter::getPreferredVariant
+ * @covers \LanguageConverter::getURLVariant
*/
public function testGetPreferredVariantDefaultLanguageVsUrlVariant() {
global $wgDefaultLanguageVariant, $wgRequest;
@@ -190,7 +190,7 @@ class LanguageConverterTest extends MediaWikiLangTestCase {
/**
* Test exhausting pcre.backtrack_limit
*
- * @covers LanguageConverter::autoConvert
+ * @covers \LanguageConverter::autoConvert
*/
public function testAutoConvertT124404() {
$testString = str_repeat( 'xxx xxx xxx', 1000 );
@@ -207,7 +207,7 @@ class LanguageConverterTest extends MediaWikiLangTestCase {
/**
* @dataProvider provideTitlesToConvert
- * @covers LanguageConverter::convertTitle
+ * @covers \LanguageConverter::convertTitle
*
* @param LinkTarget|PageReference|callable $title title to convert
* @param string $expected
diff --git a/tests/phpunit/includes/language/LanguageFallbackIntegrationTest.php b/tests/phpunit/includes/language/LanguageFallbackIntegrationTest.php
index 70781219b244..695f10951af1 100644
--- a/tests/phpunit/includes/language/LanguageFallbackIntegrationTest.php
+++ b/tests/phpunit/includes/language/LanguageFallbackIntegrationTest.php
@@ -4,7 +4,7 @@ use MediaWiki\Languages\LanguageFallback;
use MediaWiki\MainConfigNames;
/**
- * @coversDefaultClass MediaWiki\Languages\LanguageFallback
+ * @coversDefaultClass \MediaWiki\Languages\LanguageFallback
* @covers ::__construct
*/
class LanguageFallbackIntegrationTest extends MediaWikiIntegrationTestCase {
diff --git a/tests/phpunit/includes/language/LanguageIntegrationTest.php b/tests/phpunit/includes/language/LanguageIntegrationTest.php
index 3cc551baa7b8..2694d349059f 100644
--- a/tests/phpunit/includes/language/LanguageIntegrationTest.php
+++ b/tests/phpunit/includes/language/LanguageIntegrationTest.php
@@ -45,8 +45,8 @@ class LanguageIntegrationTest extends LanguageClassesTestCase {
}
/**
- * @covers Language::convertDoubleWidth
- * @covers Language::normalizeForSearch
+ * @covers \Language::convertDoubleWidth
+ * @covers \Language::normalizeForSearch
*/
public function testLanguageConvertDoubleWidthToSingleWidth() {
$this->assertSame(
@@ -60,7 +60,7 @@ class LanguageIntegrationTest extends LanguageClassesTestCase {
/**
* @dataProvider provideFormattableTimes
- * @covers Language::formatTimePeriod
+ * @covers \Language::formatTimePeriod
*/
public function testFormatTimePeriod( $seconds, $format, $expected, $desc ) {
$this->assertEquals( $expected, $this->getLang()->formatTimePeriod( $seconds, $format ), $desc );
@@ -264,8 +264,8 @@ class LanguageIntegrationTest extends LanguageClassesTestCase {
}
/**
- * @covers Language::truncateForDatabase
- * @covers Language::truncateInternal
+ * @covers \Language::truncateForDatabase
+ * @covers \Language::truncateInternal
*/
public function testTruncateForDatabase() {
$this->assertEquals(
@@ -331,8 +331,8 @@ class LanguageIntegrationTest extends LanguageClassesTestCase {
/**
* @dataProvider provideTruncateData
- * @covers Language::truncateForVisual
- * @covers Language::truncateInternal
+ * @covers \Language::truncateForVisual
+ * @covers \Language::truncateInternal
*/
public function testTruncateForVisual(
$expected, $string, $length, $ellipsis = '...', $adjustLength = true
@@ -364,7 +364,7 @@ class LanguageIntegrationTest extends LanguageClassesTestCase {
/**
* @dataProvider provideHTMLTruncateData
- * @covers Language::truncateHTML
+ * @covers \Language::truncateHTML
*/
public function testTruncateHtml( $len, $ellipsis, $input, $expected ) {
// Actual HTML...
@@ -439,7 +439,7 @@ class LanguageIntegrationTest extends LanguageClassesTestCase {
/**
* Test too short timestamp
- * @covers Language::sprintfDate
+ * @covers \Language::sprintfDate
*/
public function testSprintfDateTooShortTimestamp() {
$this->expectException( InvalidArgumentException::class );
@@ -448,7 +448,7 @@ class LanguageIntegrationTest extends LanguageClassesTestCase {
/**
* Test too long timestamp
- * @covers Language::sprintfDate
+ * @covers \Language::sprintfDate
*/
public function testSprintfDateTooLongTimestamp() {
$this->expectException( InvalidArgumentException::class );
@@ -457,7 +457,7 @@ class LanguageIntegrationTest extends LanguageClassesTestCase {
/**
* Test too short timestamp
- * @covers Language::sprintfDate
+ * @covers \Language::sprintfDate
*/
public function testSprintfDateNotAllDigitTimestamp() {
$this->expectException( InvalidArgumentException::class );
@@ -466,7 +466,7 @@ class LanguageIntegrationTest extends LanguageClassesTestCase {
/**
* @dataProvider provideSprintfDateSamples
- * @covers Language::sprintfDate
+ * @covers \Language::sprintfDate
*/
public function testSprintfDate( $format, $ts, $expected, $msg ) {
$ttl = null;
@@ -498,7 +498,7 @@ class LanguageIntegrationTest extends LanguageClassesTestCase {
/**
* sprintfDate should always use UTC when no zone is given.
* @dataProvider provideSprintfDateSamples
- * @covers Language::sprintfDate
+ * @covers \Language::sprintfDate
*/
public function testSprintfDateNoZone( $format, $ts, $expected, $ignore, $msg ) {
$oldTZ = date_default_timezone_get();
@@ -519,7 +519,7 @@ class LanguageIntegrationTest extends LanguageClassesTestCase {
/**
* sprintfDate should use passed timezone
* @dataProvider provideSprintfDateSamples
- * @covers Language::sprintfDate
+ * @covers \Language::sprintfDate
*/
public function testSprintfDateTZ( $format, $ts, $ignore, $expected, $msg ) {
$tz = new DateTimeZone( 'Asia/Seoul' );
@@ -536,7 +536,7 @@ class LanguageIntegrationTest extends LanguageClassesTestCase {
/**
* sprintfDate should only calculate a TTL if the caller is going to use it.
- * @covers Language::sprintfDate
+ * @covers \Language::sprintfDate
*/
public function testSprintfDateNoTtlIfNotNeeded() {
$noTtl = 'unused'; // Value used to represent that the caller didn't pass a variable in.
@@ -1052,7 +1052,7 @@ class LanguageIntegrationTest extends LanguageClassesTestCase {
/**
* @dataProvider provideFormatSizes
- * @covers Language::formatSize
+ * @covers \Language::formatSize
*/
public function testFormatSize( $size, $expected, $msg ) {
$this->assertEquals(
@@ -1130,7 +1130,7 @@ class LanguageIntegrationTest extends LanguageClassesTestCase {
/**
* @dataProvider provideFormatBitrate
- * @covers Language::formatBitrate
+ * @covers \Language::formatBitrate
*/
public function testFormatBitrate( $bps, $expected, $msg ) {
$this->assertEquals(
@@ -1212,7 +1212,7 @@ class LanguageIntegrationTest extends LanguageClassesTestCase {
/**
* @dataProvider provideFormatDuration
- * @covers Language::formatDuration
+ * @covers \Language::formatDuration
*/
public function testFormatDuration( $duration, $expected, $intervals = [] ) {
$this->assertEquals(
@@ -1349,7 +1349,7 @@ class LanguageIntegrationTest extends LanguageClassesTestCase {
/**
* @dataProvider provideCheckTitleEncodingData
- * @covers Language::checkTitleEncoding
+ * @covers \Language::checkTitleEncoding
*/
public function testCheckTitleEncoding( $s ) {
$this->assertEquals(
@@ -1415,7 +1415,7 @@ class LanguageIntegrationTest extends LanguageClassesTestCase {
/**
* @dataProvider provideRomanNumeralsData
- * @covers Language::romanNumeral
+ * @covers \Language::romanNumeral
*/
public function testRomanNumerals( $num, $numerals ) {
$this->assertEquals(
@@ -1474,7 +1474,7 @@ class LanguageIntegrationTest extends LanguageClassesTestCase {
/**
* @dataProvider provideHebrewNumeralsData
- * @covers Language::hebrewNumeral
+ * @covers \Language::hebrewNumeral
*/
public function testHebrewNumeral( $num, $numerals ) {
$this->assertEquals(
@@ -1545,7 +1545,7 @@ class LanguageIntegrationTest extends LanguageClassesTestCase {
/**
* @dataProvider providePluralData
- * @covers Language::convertPlural
+ * @covers \Language::convertPlural
*/
public function testConvertPlural( $expected, $number, $forms ) {
$chosen = $this->getLang()->convertPlural( $number, $forms );
@@ -1589,7 +1589,7 @@ class LanguageIntegrationTest extends LanguageClassesTestCase {
}
/**
- * @covers Language::embedBidi()
+ * @covers \Language::embedBidi()
*/
public function testEmbedBidi() {
$lre = "\u{202A}"; // U+202A LEFT-TO-RIGHT EMBEDDING
@@ -1614,7 +1614,7 @@ class LanguageIntegrationTest extends LanguageClassesTestCase {
}
/**
- * @covers Language::translateBlockExpiry()
+ * @covers \Language::translateBlockExpiry()
* @dataProvider provideTranslateBlockExpiry
*/
public function testTranslateBlockExpiry( $expectedData, $str, $now, $desc ) {
@@ -1666,8 +1666,8 @@ class LanguageIntegrationTest extends LanguageClassesTestCase {
/**
* @dataProvider provideFormatNum
- * @covers Language::formatNum
- * @covers Language::formatNumNoSeparators
+ * @covers \Language::formatNum
+ * @covers \Language::formatNumNoSeparators
*/
public function testFormatNum(
$translateNumerals, $langCode, $number, $noSeparators, $expected
@@ -1755,7 +1755,7 @@ class LanguageIntegrationTest extends LanguageClassesTestCase {
}
/**
- * @covers Language::parseFormattedNumber
+ * @covers \Language::parseFormattedNumber
* @dataProvider parseFormattedNumberProvider
*/
public function testParseFormattedNumber( $langCode, $number ) {
@@ -1785,7 +1785,7 @@ class LanguageIntegrationTest extends LanguageClassesTestCase {
}
/**
- * @covers Language::listToText
+ * @covers \Language::listToText
*/
public function testListToText() {
$lang = $this->getLang();
@@ -1806,8 +1806,8 @@ class LanguageIntegrationTest extends LanguageClassesTestCase {
* This might be a bit cumbersome to maintain long-term,
* but still valueable to have as integration test.
*
- * @covers Language
- * @covers LocalisationCache
+ * @covers \Language
+ * @covers \LocalisationCache
*/
public function testGetNamespaceAliasesReal() {
$language = $this->getServiceContainer()->getLanguageFactory()->getLanguage( 'zh' );
@@ -1817,7 +1817,7 @@ class LanguageIntegrationTest extends LanguageClassesTestCase {
}
/**
- * @covers Language::getNamespaceAliases
+ * @covers \Language::getNamespaceAliases
*/
public function testGetNamespaceAliasesFullLogic() {
$hooks = $this->createHookContainer( [
@@ -1850,7 +1850,7 @@ class LanguageIntegrationTest extends LanguageClassesTestCase {
}
/**
- * @covers Language::equals
+ * @covers \Language::equals
*/
public function testEquals() {
$languageFactory = $this->getServiceContainer()->getLanguageFactory();
@@ -1871,7 +1871,7 @@ class LanguageIntegrationTest extends LanguageClassesTestCase {
/**
* @dataProvider provideUcfirst
- * @covers Language::ucfirst
+ * @covers \Language::ucfirst
*/
public function testUcfirst( $orig, $expected, $desc, $overrides = false ) {
$lang = $this->newLanguage();
@@ -1964,7 +1964,7 @@ class LanguageIntegrationTest extends LanguageClassesTestCase {
/**
* @todo This really belongs in the cldr extension's tests.
*
- * @covers MediaWiki\Languages\LanguageNameUtils::isKnownLanguageTag
+ * @covers \MediaWiki\Languages\LanguageNameUtils::isKnownLanguageTag
*/
public function testCldr() {
if ( !ExtensionRegistry::getInstance()->isLoaded( 'CLDR' ) ) {
@@ -1981,8 +1981,8 @@ class LanguageIntegrationTest extends LanguageClassesTestCase {
}
/**
- * @covers Language::getNamespaces
- * @covers Language::fixVariableInNamespace
+ * @covers \Language::getNamespaces
+ * @covers \Language::fixVariableInNamespace
* @dataProvider provideGetNamespaces
*/
public function testGetNamespaces( string $langCode, array $config, array $expected ) {
@@ -2119,7 +2119,7 @@ class LanguageIntegrationTest extends LanguageClassesTestCase {
}
/**
- * @covers Language::getGroupName
+ * @covers \Language::getGroupName
*/
public function testGetGroupName() {
$lang = $this->getLang();
@@ -2128,7 +2128,7 @@ class LanguageIntegrationTest extends LanguageClassesTestCase {
}
/**
- * @covers Language::getGroupMemberName
+ * @covers \Language::getGroupMemberName
*/
public function testGetGroupMemberName() {
$lang = $this->getLang();
@@ -2142,7 +2142,7 @@ class LanguageIntegrationTest extends LanguageClassesTestCase {
}
/**
- * @covers Language::msg
+ * @covers \Language::msg
*/
public function testMsg() {
$lang = TestingAccessWrapper::newFromObject( $this->getLang() );
@@ -2150,7 +2150,7 @@ class LanguageIntegrationTest extends LanguageClassesTestCase {
}
/**
- * @covers Language::getBlockDurations
+ * @covers \Language::getBlockDurations
*/
public function testBlockDurations() {
$lang = $this->getLang();
diff --git a/tests/phpunit/includes/language/LocalisationCacheTest.php b/tests/phpunit/includes/language/LocalisationCacheTest.php
index b0f7c2942551..83970e463ff7 100644
--- a/tests/phpunit/includes/language/LocalisationCacheTest.php
+++ b/tests/phpunit/includes/language/LocalisationCacheTest.php
@@ -8,7 +8,7 @@ use Wikimedia\TestingAccessWrapper;
/**
* @group Database
* @group Cache
- * @covers LocalisationCache
+ * @covers \LocalisationCache
* @author Niklas Laxström
*/
class LocalisationCacheTest extends MediaWikiIntegrationTestCase {
diff --git a/tests/phpunit/includes/language/MessageCacheTest.php b/tests/phpunit/includes/language/MessageCacheTest.php
index ea2d36f22181..d8f44c27b5d1 100644
--- a/tests/phpunit/includes/language/MessageCacheTest.php
+++ b/tests/phpunit/includes/language/MessageCacheTest.php
@@ -11,7 +11,7 @@ use Wikimedia\TestingAccessWrapper;
/**
* @group Database
* @group Cache
- * @covers MessageCache
+ * @covers \MessageCache
*/
class MessageCacheTest extends MediaWikiLangTestCase {
diff --git a/tests/phpunit/includes/language/MessageTest.php b/tests/phpunit/includes/language/MessageTest.php
index 06204365be1f..066e864fe9b5 100644
--- a/tests/phpunit/includes/language/MessageTest.php
+++ b/tests/phpunit/includes/language/MessageTest.php
@@ -14,7 +14,7 @@ use Wikimedia\TestingAccessWrapper;
/**
* @group Database
* @covers ::wfMessage
- * @covers Message
+ * @covers \Message
*/
class MessageTest extends MediaWikiLangTestCase {
@@ -359,7 +359,7 @@ class MessageTest extends MediaWikiLangTestCase {
}
/**
- * @covers MediaWiki\Language\RawMessage
+ * @covers \MediaWiki\Language\RawMessage
*/
public function testRawMessage() {
$msg = new RawMessage( 'example &' );
@@ -368,8 +368,8 @@ class MessageTest extends MediaWikiLangTestCase {
}
/**
- * @covers MediaWiki\Language\RawMessage
- * @covers CoreTagHooks::html
+ * @covers \MediaWiki\Language\RawMessage
+ * @covers \CoreTagHooks::html
*/
public function testRawHtmlInMsg() {
$this->overrideConfigValue( MainConfigNames::RawHtml, true );
@@ -725,8 +725,8 @@ class MessageTest extends MediaWikiLangTestCase {
}
/**
- * @covers Message
- * @covers LanguageQqx
+ * @covers \Message
+ * @covers \LanguageQqx
*/
public function testQqxPlaceholders() {
$this->assertSame(
diff --git a/tests/phpunit/includes/language/TimeAdjustTest.php b/tests/phpunit/includes/language/TimeAdjustTest.php
index 7bf8e51c2fc0..9bbd617d1743 100644
--- a/tests/phpunit/includes/language/TimeAdjustTest.php
+++ b/tests/phpunit/includes/language/TimeAdjustTest.php
@@ -8,7 +8,7 @@ class TimeAdjustTest extends MediaWikiLangTestCase {
/**
* Test offset usage for a given Language::userAdjust
* @dataProvider dataUserAdjust
- * @covers Language::userAdjust
+ * @covers \Language::userAdjust
*/
public function testUserAdjust( string $date, $correction, string $expected ) {
$this->overrideConfigValue( MainConfigNames::LocalTZoffset, self::LOCAL_TZ_OFFSET );
diff --git a/tests/phpunit/includes/language/converters/BanConverterTest.php b/tests/phpunit/includes/language/converters/BanConverterTest.php
index 4cc6f0a62c54..db7fab4f6a7c 100644
--- a/tests/phpunit/includes/language/converters/BanConverterTest.php
+++ b/tests/phpunit/includes/language/converters/BanConverterTest.php
@@ -2,21 +2,21 @@
/**
* @group Language
- * @covers BanConverter
+ * @covers \BanConverter
*/
class BanConverterTest extends MediaWikiIntegrationTestCase {
use LanguageConverterTestTrait;
/**
- * @covers BanConverter::hasVariants
+ * @covers \BanConverter::hasVariants
*/
public function testHasVariants() {
$this->assertTrue( $this->getLanguageConverter()->hasVariants(), 'ban has variants' );
}
/**
- * @covers BanConverter::hasVariant
+ * @covers \BanConverter::hasVariant
*/
public function testHasVariantBogus() {
$variants = [
@@ -34,7 +34,7 @@ class BanConverterTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers BanConverter::convertTo
+ * @covers \BanConverter::convertTo
*/
public function testBalineseDetection() {
$this->assertBalinese(
@@ -44,7 +44,7 @@ class BanConverterTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers BanConverter::convertTo
+ * @covers \BanConverter::convertTo
*/
public function testConversionToLatin() {
// A simple conversion of Latin to Latin
diff --git a/tests/phpunit/includes/language/converters/CrhConverterTest.php b/tests/phpunit/includes/language/converters/CrhConverterTest.php
index 2424e5eebc2b..c3d7d9833f35 100644
--- a/tests/phpunit/includes/language/converters/CrhConverterTest.php
+++ b/tests/phpunit/includes/language/converters/CrhConverterTest.php
@@ -2,8 +2,8 @@
/**
* @group Language
- * @covers CrhConverter
- * @covers MediaWiki\Languages\Data\CrhExceptions
+ * @covers \CrhConverter
+ * @covers \MediaWiki\Languages\Data\CrhExceptions
*/
class CrhConverterTest extends MediaWikiIntegrationTestCase {
@@ -11,7 +11,7 @@ class CrhConverterTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider provideAutoConvertToAllVariantsByWord
- * @covers CrhConverter::autoConvertToAllVariants
+ * @covers \CrhConverter::autoConvertToAllVariants
*
* Test individual words and test minimal contextual transforms
* by creating test strings "<cyrillic> <latin>" and
@@ -102,7 +102,7 @@ class CrhConverterTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider provideAutoConvertToAllVariantsByString
- * @covers CrhConverter::autoConvertToAllVariants
+ * @covers \CrhConverter::autoConvertToAllVariants
*
* Run tests that require some context (like Roman numerals) or with
* many-to-one mappings, or other asymmetric results (like smart quotes)
diff --git a/tests/phpunit/includes/language/converters/GanConverterTest.php b/tests/phpunit/includes/language/converters/GanConverterTest.php
index 48c60e7853df..9e77c3eafcc4 100644
--- a/tests/phpunit/includes/language/converters/GanConverterTest.php
+++ b/tests/phpunit/includes/language/converters/GanConverterTest.php
@@ -2,7 +2,7 @@
/**
* @group Language
- * @covers GanConverter
+ * @covers \GanConverter
*/
class GanConverterTest extends MediaWikiIntegrationTestCase {
@@ -10,7 +10,7 @@ class GanConverterTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider provideAutoConvertToAllVariants
- * @covers GanConverter::autoConvertToAllVariants
+ * @covers \GanConverter::autoConvertToAllVariants
*/
public function testAutoConvertToAllVariants( $result, $value ) {
$this->assertEquals( $result, $this->getLanguageConverter()->autoConvertToAllVariants( $value ) );
diff --git a/tests/phpunit/includes/language/converters/IuConverterTest.php b/tests/phpunit/includes/language/converters/IuConverterTest.php
index 7a0f44dd30ee..522be8fdabd7 100644
--- a/tests/phpunit/includes/language/converters/IuConverterTest.php
+++ b/tests/phpunit/includes/language/converters/IuConverterTest.php
@@ -2,7 +2,7 @@
/**
* @group Language
- * @covers IuConverter
+ * @covers \IuConverter
*/
class IuConverterTest extends MediaWikiIntegrationTestCase {
@@ -10,7 +10,7 @@ class IuConverterTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider provideAutoConvertToAllVariants
- * @covers IuConverter::autoConvertToAllVariants
+ * @covers \IuConverter::autoConvertToAllVariants
*/
public function testAutoConvertToAllVariants( $result, $value ) {
$this->assertEquals( $result, $this->getLanguageConverter()->autoConvertToAllVariants( $value ) );
diff --git a/tests/phpunit/includes/language/converters/KuConverterTest.php b/tests/phpunit/includes/language/converters/KuConverterTest.php
index 6b45424eef05..e157132216a8 100644
--- a/tests/phpunit/includes/language/converters/KuConverterTest.php
+++ b/tests/phpunit/includes/language/converters/KuConverterTest.php
@@ -2,7 +2,7 @@
/**
* @group Language
- * @covers KuConverter
+ * @covers \KuConverter
*/
class KuConverterTest extends MediaWikiIntegrationTestCase {
@@ -10,7 +10,7 @@ class KuConverterTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider provideAutoConvertToAllVariants
- * @covers KuConverter::autoConvertToAllVariants
+ * @covers \KuConverter::autoConvertToAllVariants
*/
public function testAutoConvertToAllVariants( $result, $value ) {
$this->assertEquals( $result, $this->getLanguageConverter()->autoConvertToAllVariants( $value ) );
diff --git a/tests/phpunit/includes/language/converters/LanguageConverterConversionTest.php b/tests/phpunit/includes/language/converters/LanguageConverterConversionTest.php
index 4910063b0c1f..3dce9415a489 100644
--- a/tests/phpunit/includes/language/converters/LanguageConverterConversionTest.php
+++ b/tests/phpunit/includes/language/converters/LanguageConverterConversionTest.php
@@ -12,7 +12,7 @@ class LanguageConverterConversionTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider provideConversionData
- * @covers LanguageConverter::convertTo
+ * @covers \LanguageConverter::convertTo
*/
public function testConversion( $variant, $text, $expected ) {
$language = $this->getServiceContainer()->getLanguageFactory()->getParentLanguage(
diff --git a/tests/phpunit/includes/language/converters/ShConverterTest.php b/tests/phpunit/includes/language/converters/ShConverterTest.php
index 969651673ff8..33bd6c2449cf 100644
--- a/tests/phpunit/includes/language/converters/ShConverterTest.php
+++ b/tests/phpunit/includes/language/converters/ShConverterTest.php
@@ -2,14 +2,14 @@
/**
* @group Language
- * @covers ShConverter
+ * @covers \ShConverter
*/
class ShConverterTest extends MediaWikiIntegrationTestCase {
use LanguageConverterTestTrait;
/**
* @dataProvider provideAutoConvertToAllVariants
- * @covers ShConverter::autoConvertToAllVariants
+ * @covers \ShConverter::autoConvertToAllVariants
*/
public function testAutoConvertToAllVariants( $result, $value ) {
$this->assertEquals( $result, $this->getLanguageConverter()->autoConvertToAllVariants( $value ) );
@@ -35,7 +35,7 @@ class ShConverterTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers ShConverter::convertTo
+ * @covers \ShConverter::convertTo
*/
public function testConvertTo() {
$this->testConversionToLatin();
diff --git a/tests/phpunit/includes/language/converters/ShiConverterTest.php b/tests/phpunit/includes/language/converters/ShiConverterTest.php
index ee0ddbd8969a..823417c1d442 100644
--- a/tests/phpunit/includes/language/converters/ShiConverterTest.php
+++ b/tests/phpunit/includes/language/converters/ShiConverterTest.php
@@ -2,7 +2,7 @@
/**
* @group Language
- * @covers ShiConverter
+ * @covers \ShiConverter
*/
class ShiConverterTest extends MediaWikiIntegrationTestCase {
@@ -10,7 +10,7 @@ class ShiConverterTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider provideAutoConvertToAllVariants
- * @covers ShiConverter::autoConvertToAllVariants
+ * @covers \ShiConverter::autoConvertToAllVariants
*/
public function testAutoConvertToAllVariants( $result, $value ) {
$this->assertEquals( $result,
diff --git a/tests/phpunit/includes/language/converters/SrConverterTest.php b/tests/phpunit/includes/language/converters/SrConverterTest.php
index c6c6ba90318b..80d83a39b07f 100644
--- a/tests/phpunit/includes/language/converters/SrConverterTest.php
+++ b/tests/phpunit/includes/language/converters/SrConverterTest.php
@@ -2,21 +2,21 @@
/**
* @group Language
- * @covers SrConverter
+ * @covers \SrConverter
*/
class SrConverterTest extends MediaWikiIntegrationTestCase {
use LanguageConverterTestTrait;
/**
- * @covers SrConverter::hasVariants
+ * @covers \SrConverter::hasVariants
*/
public function testHasVariants() {
$this->assertTrue( $this->getLanguageConverter()->hasVariants(), 'sr has variants' );
}
/**
- * @covers SrConverter::hasVariant
+ * @covers \SrConverter::hasVariant
*/
public function testHasVariantBogus() {
$variants = [
@@ -31,7 +31,7 @@ class SrConverterTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers SrConverter::convertTo
+ * @covers \SrConverter::convertTo
*/
public function testEasyConversions() {
$this->assertCyrillic(
@@ -45,7 +45,7 @@ class SrConverterTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers SrConverter::convertTo
+ * @covers \SrConverter::convertTo
*/
public function testMixedConversions() {
$this->assertCyrillic(
@@ -59,7 +59,7 @@ class SrConverterTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers SrConverter::convertTo
+ * @covers \SrConverter::convertTo
*/
public function testSameAmountOfLatinAndCyrillicGetConverted() {
$this->assertConverted(
@@ -74,7 +74,7 @@ class SrConverterTest extends MediaWikiIntegrationTestCase {
/**
* @author Nikola Smolenski
- * @covers SrConverter::convertTo
+ * @covers \SrConverter::convertTo
*/
public function testConversionToCyrillic() {
// A simple conversion of Latin to Cyrillic
@@ -120,7 +120,7 @@ class SrConverterTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers SrConverter::convertTo
+ * @covers \SrConverter::convertTo
*/
public function testConversionToLatin() {
// A simple conversion of Latin to Latin
diff --git a/tests/phpunit/includes/language/converters/TgConverterTest.php b/tests/phpunit/includes/language/converters/TgConverterTest.php
index a2da5c94d619..1c3811682b48 100644
--- a/tests/phpunit/includes/language/converters/TgConverterTest.php
+++ b/tests/phpunit/includes/language/converters/TgConverterTest.php
@@ -2,14 +2,14 @@
/**
* @group Language
- * @covers TgConverter
+ * @covers \TgConverter
*/
class TgConverterTest extends MediaWikiIntegrationTestCase {
use LanguageConverterTestTrait;
/**
* @dataProvider provideAutoConvertToAllVariants
- * @covers TgConverter::autoConvertToAllVariants
+ * @covers \TgConverter::autoConvertToAllVariants
*/
public function testAutoConvertToAllVariants( $result, $value ) {
$this->assertEquals( $result, $this->getLanguageConverter()->autoConvertToAllVariants( $value ) );
diff --git a/tests/phpunit/includes/language/converters/TlyConverterTest.php b/tests/phpunit/includes/language/converters/TlyConverterTest.php
index 97f8d2bf979e..24e6815fe016 100644
--- a/tests/phpunit/includes/language/converters/TlyConverterTest.php
+++ b/tests/phpunit/includes/language/converters/TlyConverterTest.php
@@ -9,14 +9,14 @@
*/
/**
- * @covers TlyConverter
+ * @covers \TlyConverter
*/
class TlyConverterTest extends MediaWikiIntegrationTestCase {
use LanguageConverterTestTrait;
/**
- * @covers LanguageConverter::convertTo
+ * @covers \LanguageConverter::convertTo
*/
public function testConversionToCyrillic() {
// A conversion of Latin to Cyrillic
@@ -46,7 +46,7 @@ class TlyConverterTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers LanguageConverter::convertTo
+ * @covers \LanguageConverter::convertTo
*/
public function testConversionToLatin() {
// A conversion of Cyrillic to Latin
diff --git a/tests/phpunit/includes/language/converters/UzConverterTest.php b/tests/phpunit/includes/language/converters/UzConverterTest.php
index 0e5be6e74137..c64b11a503a7 100644
--- a/tests/phpunit/includes/language/converters/UzConverterTest.php
+++ b/tests/phpunit/includes/language/converters/UzConverterTest.php
@@ -17,7 +17,7 @@
*/
/**
- * @covers UzConverter
+ * @covers \UzConverter
*/
class UzConverterTest extends MediaWikiIntegrationTestCase {
@@ -25,7 +25,7 @@ class UzConverterTest extends MediaWikiIntegrationTestCase {
/**
* @author Nikola Smolenski
- * @covers LanguageConverter::convertTo
+ * @covers \LanguageConverter::convertTo
*/
public function testConversionToCyrillic() {
// A convertion of Latin to Cyrillic
@@ -47,7 +47,7 @@ class UzConverterTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers LanguageConverter::convertTo
+ * @covers \LanguageConverter::convertTo
*/
public function testConversionToLatin() {
// A simple convertion of Latin to Latin
diff --git a/tests/phpunit/includes/language/converters/WuuConverterTest.php b/tests/phpunit/includes/language/converters/WuuConverterTest.php
index 03718fdefbc3..de35035642be 100644
--- a/tests/phpunit/includes/language/converters/WuuConverterTest.php
+++ b/tests/phpunit/includes/language/converters/WuuConverterTest.php
@@ -2,7 +2,7 @@
/**
* @group Language
- * @covers WuuConverter
+ * @covers \WuuConverter
*/
class WuuConverterTest extends MediaWikiIntegrationTestCase {
@@ -10,7 +10,7 @@ class WuuConverterTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider provideAutoConvertToAllVariants
- * @covers WuuConverter::autoConvertToAllVariants
+ * @covers \WuuConverter::autoConvertToAllVariants
*/
public function testAutoConvertToAllVariants( $result, $value ) {
$this->assertEquals( $result, $this->getLanguageConverter()->autoConvertToAllVariants( $value ) );
diff --git a/tests/phpunit/includes/language/converters/ZhConverterTest.php b/tests/phpunit/includes/language/converters/ZhConverterTest.php
index 8024e7ef1c61..d41fcd0c88e3 100644
--- a/tests/phpunit/includes/language/converters/ZhConverterTest.php
+++ b/tests/phpunit/includes/language/converters/ZhConverterTest.php
@@ -2,7 +2,7 @@
/**
* @group Language
- * @covers ZhConverter
+ * @covers \ZhConverter
*/
class ZhConverterTest extends MediaWikiIntegrationTestCase {
@@ -10,7 +10,7 @@ class ZhConverterTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider provideAutoConvertToAllVariants
- * @covers ZhConverter::autoConvertToAllVariants
+ * @covers \ZhConverter::autoConvertToAllVariants
*/
public function testAutoConvertToAllVariants( $result, $value ) {
$this->assertEquals( $result,
diff --git a/tests/phpunit/includes/languages/LanguageAmTest.php b/tests/phpunit/includes/languages/LanguageAmTest.php
index 989b38386cbb..5408a52a4f3d 100644
--- a/tests/phpunit/includes/languages/LanguageAmTest.php
+++ b/tests/phpunit/includes/languages/LanguageAmTest.php
@@ -11,7 +11,7 @@
class LanguageAmTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::convertPlural
+ * @covers \Language::convertPlural
*/
public function testPlural( $result, $value ) {
$forms = [ 'one', 'other' ];
@@ -20,7 +20,7 @@ class LanguageAmTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::getPluralRuleType
+ * @covers \Language::getPluralRuleType
*/
public function testGetPluralRuleType( $result, $value ) {
$this->assertEquals( $result, $this->getLang()->getPluralRuleType( $value ) );
diff --git a/tests/phpunit/includes/languages/LanguageArTest.php b/tests/phpunit/includes/languages/LanguageArTest.php
index b0d45fa10585..8863b18d92bd 100644
--- a/tests/phpunit/includes/languages/LanguageArTest.php
+++ b/tests/phpunit/includes/languages/LanguageArTest.php
@@ -2,12 +2,12 @@
/**
* @group Language
- * @covers LanguageAr
+ * @covers \LanguageAr
*/
class LanguageArTest extends LanguageClassesTestCase {
/**
- * @covers Language::formatNum
+ * @covers \Language::formatNum
* @dataProvider provideFormatNum
*/
public function testFormatNum( $num, $formatted ) {
@@ -23,8 +23,8 @@ class LanguageArTest extends LanguageClassesTestCase {
}
/**
- * @covers LanguageAr::normalize
- * @covers Language::normalize
+ * @covers \LanguageAr::normalize
+ * @covers \Language::normalize
* @dataProvider provideNormalize
*/
public function testNormalize( $input, $expected ) {
@@ -59,7 +59,7 @@ class LanguageArTest extends LanguageClassesTestCase {
/**
* Mostly to test the raw ascii feature.
* @dataProvider provideSprintfDate
- * @covers Language::sprintfDate
+ * @covers \Language::sprintfDate
*/
public function testSprintfDate( $format, $date, $expected ) {
$this->assertEquals( $expected, $this->getLang()->sprintfDate( $format, $date ) );
@@ -92,7 +92,7 @@ class LanguageArTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::convertPlural
+ * @covers \Language::convertPlural
*/
public function testPlural( $result, $value ) {
$forms = [ 'zero', 'one', 'two', 'few', 'many', 'other' ];
@@ -101,7 +101,7 @@ class LanguageArTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::getPluralRuleType
+ * @covers \Language::getPluralRuleType
*/
public function testGetPluralRuleType( $result, $value ) {
$this->assertEquals( $result, $this->getLang()->getPluralRuleType( $value ) );
diff --git a/tests/phpunit/includes/languages/LanguageArqTest.php b/tests/phpunit/includes/languages/LanguageArqTest.php
index d32ff4fecc4e..87774d8092c2 100644
--- a/tests/phpunit/includes/languages/LanguageArqTest.php
+++ b/tests/phpunit/includes/languages/LanguageArqTest.php
@@ -11,7 +11,7 @@
class LanguageArqTest extends LanguageClassesTestCase {
/**
* @dataProvider provideNumber
- * @covers Language::formatNum
+ * @covers \Language::formatNum
*/
public function testFormatNum( $value, $result ) {
$this->assertEquals( $result, $this->getLang()->formatNum( $value ) );
diff --git a/tests/phpunit/includes/languages/LanguageBeTest.php b/tests/phpunit/includes/languages/LanguageBeTest.php
index 501117e69887..d2e3b9a6bf6d 100644
--- a/tests/phpunit/includes/languages/LanguageBeTest.php
+++ b/tests/phpunit/includes/languages/LanguageBeTest.php
@@ -11,7 +11,7 @@
class LanguageBeTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::convertPlural
+ * @covers \Language::convertPlural
*/
public function testPlural( $result, $value ) {
$forms = [ 'one', 'few', 'many', 'other' ];
@@ -20,7 +20,7 @@ class LanguageBeTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::getPluralRuleType
+ * @covers \Language::getPluralRuleType
*/
public function testGetPluralRuleType( $result, $value ) {
$this->assertEquals( $result, $this->getLang()->getPluralRuleType( $value ) );
diff --git a/tests/phpunit/includes/languages/LanguageBe_taraskTest.php b/tests/phpunit/includes/languages/LanguageBe_taraskTest.php
index dc8f37d6c23e..c4d9556f36cb 100644
--- a/tests/phpunit/includes/languages/LanguageBe_taraskTest.php
+++ b/tests/phpunit/includes/languages/LanguageBe_taraskTest.php
@@ -4,7 +4,7 @@
/**
* @group Language
- * @covers LanguageBe_tarask
+ * @covers \LanguageBe_tarask
*/
class LanguageBe_taraskTest extends LanguageClassesTestCase {
// phpcs:enable
@@ -22,7 +22,7 @@ class LanguageBe_taraskTest extends LanguageClassesTestCase {
/**
* @see T25156 & r64981
- * @covers Language::normalizeForSearch
+ * @covers \Language::normalizeForSearch
*/
public function testSearchRightSingleQuotationMarkAsApostroph() {
$this->assertEquals(
@@ -34,7 +34,7 @@ class LanguageBe_taraskTest extends LanguageClassesTestCase {
/**
* @see T25156 & r64981
- * @covers Language::formatNum
+ * @covers \Language::formatNum
*/
public function testFormatNum() {
$this->assertEquals( '1 234 567', $this->getLang()->formatNum( '1234567' ) );
@@ -43,7 +43,7 @@ class LanguageBe_taraskTest extends LanguageClassesTestCase {
/**
* @see T25156 & r64981
- * @covers Language::formatNum
+ * @covers \Language::formatNum
*/
public function testDoesNotCommafyFourDigitsNumber() {
$this->assertSame( '1234', $this->getLang()->formatNum( '1234' ) );
@@ -51,7 +51,7 @@ class LanguageBe_taraskTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::convertPlural
+ * @covers \Language::convertPlural
*/
public function testPlural( $result, $value ) {
$forms = [ 'one', 'few', 'many', 'other' ];
@@ -60,7 +60,7 @@ class LanguageBe_taraskTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::getPluralRuleType
+ * @covers \Language::getPluralRuleType
*/
public function testGetPluralRuleType( $result, $value ) {
$this->assertEquals( $result, $this->getLang()->getPluralRuleType( $value ) );
@@ -84,7 +84,7 @@ class LanguageBe_taraskTest extends LanguageClassesTestCase {
/**
* @dataProvider providePluralTwoForms
- * @covers Language::convertPlural
+ * @covers \Language::convertPlural
*/
public function testPluralTwoForms( $result, $value ) {
$forms = [ '1=one', 'other' ];
diff --git a/tests/phpunit/includes/languages/LanguageBhoTest.php b/tests/phpunit/includes/languages/LanguageBhoTest.php
index 8a611c7a9d36..9e75be2dcc58 100644
--- a/tests/phpunit/includes/languages/LanguageBhoTest.php
+++ b/tests/phpunit/includes/languages/LanguageBhoTest.php
@@ -11,7 +11,7 @@
class LanguageBhoTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::convertPlural
+ * @covers \Language::convertPlural
*/
public function testPlural( $result, $value ) {
$forms = [ 'one', 'other' ];
@@ -20,7 +20,7 @@ class LanguageBhoTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::getPluralRuleType
+ * @covers \Language::getPluralRuleType
*/
public function testGetPluralRuleType( $result, $value ) {
$this->assertEquals( $result, $this->getLang()->getPluralRuleType( $value ) );
diff --git a/tests/phpunit/includes/languages/LanguageBsTest.php b/tests/phpunit/includes/languages/LanguageBsTest.php
index ecbfaed527e2..b792e9c6efa9 100644
--- a/tests/phpunit/includes/languages/LanguageBsTest.php
+++ b/tests/phpunit/includes/languages/LanguageBsTest.php
@@ -9,12 +9,12 @@
* Tests for Bosnian (bosanski)
*
* @group Language
- * @covers LanguageBs
+ * @covers \LanguageBs
*/
class LanguageBsTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::convertPlural
+ * @covers \Language::convertPlural
*/
public function testPlural( $result, $value ) {
$forms = [ 'one', 'few', 'other' ];
@@ -23,7 +23,7 @@ class LanguageBsTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::getPluralRuleType
+ * @covers \Language::getPluralRuleType
*/
public function testGetPluralRuleType( $result, $value ) {
$this->assertEquals( $result, $this->getLang()->getPluralRuleType( $value ) );
diff --git a/tests/phpunit/includes/languages/LanguageCsTest.php b/tests/phpunit/includes/languages/LanguageCsTest.php
index 23a21189a263..491bae69789e 100644
--- a/tests/phpunit/includes/languages/LanguageCsTest.php
+++ b/tests/phpunit/includes/languages/LanguageCsTest.php
@@ -11,7 +11,7 @@
class LanguageCsTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::convertPlural
+ * @covers \Language::convertPlural
*/
public function testPlural( $result, $value ) {
$forms = [ 'one', 'few', 'other' ];
@@ -20,7 +20,7 @@ class LanguageCsTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::getPluralRuleType
+ * @covers \Language::getPluralRuleType
*/
public function testGetPluralRuleType( $result, $value ) {
$this->assertEquals( $result, $this->getLang()->getPluralRuleType( $value ) );
diff --git a/tests/phpunit/includes/languages/LanguageCuTest.php b/tests/phpunit/includes/languages/LanguageCuTest.php
index 7e5bf995f35e..1f4b6ff662f5 100644
--- a/tests/phpunit/includes/languages/LanguageCuTest.php
+++ b/tests/phpunit/includes/languages/LanguageCuTest.php
@@ -7,12 +7,12 @@
/**
* @group Language
- * @covers LanguageCu
+ * @covers \LanguageCu
*/
class LanguageCuTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::convertPlural
+ * @covers \Language::convertPlural
*/
public function testPlural( $result, $value ) {
$forms = [ 'one', 'two', 'few', 'other' ];
@@ -21,7 +21,7 @@ class LanguageCuTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::getPluralRuleType
+ * @covers \Language::getPluralRuleType
*/
public function testGetPluralRuleType( $result, $value ) {
$this->assertEquals( $result, $this->getLang()->getPluralRuleType( $value ) );
diff --git a/tests/phpunit/includes/languages/LanguageCyTest.php b/tests/phpunit/includes/languages/LanguageCyTest.php
index 2ffdc991e42c..3fab89abb3b9 100644
--- a/tests/phpunit/includes/languages/LanguageCyTest.php
+++ b/tests/phpunit/includes/languages/LanguageCyTest.php
@@ -11,7 +11,7 @@
class LanguageCyTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::convertPlural
+ * @covers \Language::convertPlural
*/
public function testPlural( $result, $value ) {
$forms = [ 'zero', 'one', 'two', 'few', 'many', 'other' ];
@@ -20,7 +20,7 @@ class LanguageCyTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::getPluralRuleType
+ * @covers \Language::getPluralRuleType
*/
public function testGetPluralRuleType( $result, $value ) {
$this->assertEquals( $result, $this->getLang()->getPluralRuleType( $value ) );
diff --git a/tests/phpunit/includes/languages/LanguageDsbTest.php b/tests/phpunit/includes/languages/LanguageDsbTest.php
index bf920bc307b2..af78fcf8878f 100644
--- a/tests/phpunit/includes/languages/LanguageDsbTest.php
+++ b/tests/phpunit/includes/languages/LanguageDsbTest.php
@@ -7,12 +7,12 @@
/**
* @group Language
- * @covers LanguageDsb
+ * @covers \LanguageDsb
*/
class LanguageDsbTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::convertPlural
+ * @covers \Language::convertPlural
*/
public function testPlural( $result, $value ) {
$forms = [ 'one', 'two', 'few', 'other' ];
@@ -21,7 +21,7 @@ class LanguageDsbTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::getPluralRuleType
+ * @covers \Language::getPluralRuleType
*/
public function testGetPluralRuleType( $result, $value ) {
$this->assertEquals( $result, $this->getLang()->getPluralRuleType( $value ) );
diff --git a/tests/phpunit/includes/languages/LanguageFrTest.php b/tests/phpunit/includes/languages/LanguageFrTest.php
index 99d68e720745..00e226ab50f1 100644
--- a/tests/phpunit/includes/languages/LanguageFrTest.php
+++ b/tests/phpunit/includes/languages/LanguageFrTest.php
@@ -11,7 +11,7 @@
class LanguageFrTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::convertPlural
+ * @covers \Language::convertPlural
*/
public function testPlural( $result, $value ) {
$forms = [ 'one', 'other' ];
@@ -20,7 +20,7 @@ class LanguageFrTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::getPluralRuleType
+ * @covers \Language::getPluralRuleType
*/
public function testGetPluralRuleType( $result, $value ) {
$this->assertEquals( $result, $this->getLang()->getPluralRuleType( $value ) );
diff --git a/tests/phpunit/includes/languages/LanguageGaTest.php b/tests/phpunit/includes/languages/LanguageGaTest.php
index d65098c3fef3..872076a0c901 100644
--- a/tests/phpunit/includes/languages/LanguageGaTest.php
+++ b/tests/phpunit/includes/languages/LanguageGaTest.php
@@ -9,12 +9,12 @@
* Tests for Irish (Gaeilge)
*
* @group Language
- * @covers LanguageGa
+ * @covers \LanguageGa
*/
class LanguageGaTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::convertPlural
+ * @covers \Language::convertPlural
*/
public function testPlural( $result, $value ) {
$forms = [ 'one', 'two', 'other' ];
@@ -23,7 +23,7 @@ class LanguageGaTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::getPluralRuleType
+ * @covers \Language::getPluralRuleType
*/
public function testGetPluralRuleType( $result, $value ) {
$this->assertEquals( $result, $this->getLang()->getPluralRuleType( $value ) );
diff --git a/tests/phpunit/includes/languages/LanguageGdTest.php b/tests/phpunit/includes/languages/LanguageGdTest.php
index d22ba4cc05bc..abbf0acd81ea 100644
--- a/tests/phpunit/includes/languages/LanguageGdTest.php
+++ b/tests/phpunit/includes/languages/LanguageGdTest.php
@@ -11,7 +11,7 @@
class LanguageGdTest extends LanguageClassesTestCase {
/**
* @dataProvider providerPlural
- * @covers Language::convertPlural
+ * @covers \Language::convertPlural
*/
public function testPlural( $result, $value ) {
$forms = [ 'one', 'two', 'few', 'other' ];
@@ -33,7 +33,7 @@ class LanguageGdTest extends LanguageClassesTestCase {
/**
* @dataProvider providerPluralExplicit
- * @covers Language::convertPlural
+ * @covers \Language::convertPlural
*/
public function testExplicitPlural( $result, $value ) {
$forms = [ 'one', 'two', 'few', 'other', '11=Form11', '12=Form12' ];
diff --git a/tests/phpunit/includes/languages/LanguageGvTest.php b/tests/phpunit/includes/languages/LanguageGvTest.php
index 0efbbac4f6fb..1f0527a3a86d 100644
--- a/tests/phpunit/includes/languages/LanguageGvTest.php
+++ b/tests/phpunit/includes/languages/LanguageGvTest.php
@@ -13,7 +13,7 @@
class LanguageGvTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::convertPlural
+ * @covers \Language::convertPlural
*/
public function testPlural( $result, $value ) {
$forms = [ 'one', 'two', 'few', 'other' ];
@@ -22,7 +22,7 @@ class LanguageGvTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::getPluralRuleType
+ * @covers \Language::getPluralRuleType
*/
public function testGetPluralRuleType( $result, $value ) {
$this->assertEquals( $result, $this->getLang()->getPluralRuleType( $value ) );
diff --git a/tests/phpunit/includes/languages/LanguageHeTest.php b/tests/phpunit/includes/languages/LanguageHeTest.php
index d762291e4452..55923a758186 100644
--- a/tests/phpunit/includes/languages/LanguageHeTest.php
+++ b/tests/phpunit/includes/languages/LanguageHeTest.php
@@ -28,7 +28,7 @@ class LanguageHeTest extends LanguageClassesTestCase {
/**
* @dataProvider provideTwoPluralForms
- * @covers Language::convertPlural
+ * @covers \Language::convertPlural
*/
public function testTwoPluralForms( $result, $value ) {
$forms = [ 'one', 'other' ];
@@ -37,7 +37,7 @@ class LanguageHeTest extends LanguageClassesTestCase {
/**
* @dataProvider provideThreePluralForms
- * @covers Language::convertPlural
+ * @covers \Language::convertPlural
*/
public function testThreePluralForms( $result, $value ) {
$forms = [ 'one', 'two', 'other' ];
@@ -46,7 +46,7 @@ class LanguageHeTest extends LanguageClassesTestCase {
/**
* @dataProvider provideFourPluralForms
- * @covers Language::convertPlural
+ * @covers \Language::convertPlural
*/
public function testFourPluralForms( $result, $value ) {
$forms = [ 'one', 'two', 'many', 'other' ];
@@ -55,7 +55,7 @@ class LanguageHeTest extends LanguageClassesTestCase {
/**
* @dataProvider provideFourPluralForms
- * @covers Language::convertPlural
+ * @covers \Language::convertPlural
*/
public function testGetPluralRuleType( $result, $value ) {
$this->assertEquals( $result, $this->getLang()->getPluralRuleType( $value ) );
@@ -96,7 +96,7 @@ class LanguageHeTest extends LanguageClassesTestCase {
/**
* @dataProvider provideGrammar
- * @covers Language::convertGrammar
+ * @covers \Language::convertGrammar
*/
public function testGrammar( $result, $word, $case ) {
$this->assertEquals( $result, $this->getLang()->convertGrammar( $word, $case ) );
diff --git a/tests/phpunit/includes/languages/LanguageHiTest.php b/tests/phpunit/includes/languages/LanguageHiTest.php
index 13b7fa1dbaf1..543b41e34e7b 100644
--- a/tests/phpunit/includes/languages/LanguageHiTest.php
+++ b/tests/phpunit/includes/languages/LanguageHiTest.php
@@ -11,7 +11,7 @@
class LanguageHiTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::convertPlural
+ * @covers \Language::convertPlural
*/
public function testPlural( $result, $value ) {
$forms = [ 'one', 'other' ];
@@ -20,7 +20,7 @@ class LanguageHiTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::getPluralRuleType
+ * @covers \Language::getPluralRuleType
*/
public function testGetPluralRuleType( $result, $value ) {
$this->assertEquals( $result, $this->getLang()->getPluralRuleType( $value ) );
diff --git a/tests/phpunit/includes/languages/LanguageHrTest.php b/tests/phpunit/includes/languages/LanguageHrTest.php
index 0634d4f3d7df..1ec8de693536 100644
--- a/tests/phpunit/includes/languages/LanguageHrTest.php
+++ b/tests/phpunit/includes/languages/LanguageHrTest.php
@@ -11,7 +11,7 @@
class LanguageHrTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::convertPlural
+ * @covers \Language::convertPlural
*/
public function testPlural( $result, $value ) {
$forms = [ 'one', 'few', 'other' ];
@@ -20,7 +20,7 @@ class LanguageHrTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::getPluralRuleType
+ * @covers \Language::getPluralRuleType
*/
public function testGetPluralRuleType( $result, $value ) {
$this->assertEquals( $result, $this->getLang()->getPluralRuleType( $value ) );
diff --git a/tests/phpunit/includes/languages/LanguageHsbTest.php b/tests/phpunit/includes/languages/LanguageHsbTest.php
index fa17316cb0e3..5729064ebf0e 100644
--- a/tests/phpunit/includes/languages/LanguageHsbTest.php
+++ b/tests/phpunit/includes/languages/LanguageHsbTest.php
@@ -7,12 +7,12 @@
/**
* @group Language
- * @covers LanguageHsb
+ * @covers \LanguageHsb
*/
class LanguageHsbTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::convertPlural
+ * @covers \Language::convertPlural
*/
public function testPlural( $result, $value ) {
$forms = [ 'one', 'two', 'few', 'other' ];
@@ -21,7 +21,7 @@ class LanguageHsbTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::getPluralRuleType
+ * @covers \Language::getPluralRuleType
*/
public function testGetPluralRuleType( $result, $value ) {
$this->assertEquals( $result, $this->getLang()->getPluralRuleType( $value ) );
diff --git a/tests/phpunit/includes/languages/LanguageHuTest.php b/tests/phpunit/includes/languages/LanguageHuTest.php
index 45fd7afb007d..fbf9d748fd29 100644
--- a/tests/phpunit/includes/languages/LanguageHuTest.php
+++ b/tests/phpunit/includes/languages/LanguageHuTest.php
@@ -7,12 +7,12 @@
/**
* @group Language
- * @covers LanguageHu
+ * @covers \LanguageHu
*/
class LanguageHuTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::convertPlural
+ * @covers \Language::convertPlural
*/
public function testPlural( $result, $value ) {
$forms = [ 'one', 'other' ];
@@ -21,7 +21,7 @@ class LanguageHuTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::getPluralRuleType
+ * @covers \Language::getPluralRuleType
*/
public function testGetPluralRuleType( $result, $value ) {
$this->assertEquals( $result, $this->getLang()->getPluralRuleType( $value ) );
diff --git a/tests/phpunit/includes/languages/LanguageHyTest.php b/tests/phpunit/includes/languages/LanguageHyTest.php
index 020fc219aba2..5145370a1744 100644
--- a/tests/phpunit/includes/languages/LanguageHyTest.php
+++ b/tests/phpunit/includes/languages/LanguageHyTest.php
@@ -9,12 +9,12 @@
* Tests for Armenian (Õ€Õ¡ÕµÕ¥Ö€Õ¥Õ¶)
*
* @group Language
- * @covers LanguageHy
+ * @covers \LanguageHy
*/
class LanguageHyTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::convertPlural
+ * @covers \Language::convertPlural
*/
public function testPlural( $result, $value ) {
$forms = [ 'one', 'other' ];
@@ -23,7 +23,7 @@ class LanguageHyTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::getPluralRuleType
+ * @covers \Language::getPluralRuleType
*/
public function testGetPluralRuleType( $result, $value ) {
$this->assertEquals( $result, $this->getLang()->getPluralRuleType( $value ) );
diff --git a/tests/phpunit/includes/languages/LanguageKaTest.php b/tests/phpunit/includes/languages/LanguageKaTest.php
index a151e33edec5..3a7e5dd8fe36 100644
--- a/tests/phpunit/includes/languages/LanguageKaTest.php
+++ b/tests/phpunit/includes/languages/LanguageKaTest.php
@@ -12,7 +12,7 @@
class LanguageKaTest extends LanguageClassesTestCase {
/**
* @dataProvider providerGrammar
- * @covers Language::convertGrammar
+ * @covers \Language::convertGrammar
*/
public function testGrammar( $result, $word, $case ) {
$this->assertEquals( $result, $this->getLang()->convertGrammar( $word, $case ) );
diff --git a/tests/phpunit/includes/languages/LanguageKkTest.php b/tests/phpunit/includes/languages/LanguageKkTest.php
index ac68c7e181c8..d2718d3d1bfd 100644
--- a/tests/phpunit/includes/languages/LanguageKkTest.php
+++ b/tests/phpunit/includes/languages/LanguageKkTest.php
@@ -7,7 +7,7 @@ class LanguageKkTest extends LanguageClassesTestCase {
/**
* @dataProvider provideGrammar
- * @covers Language::convertGrammar
+ * @covers \Language::convertGrammar
*/
public function testGrammar( $result, $word, $case ) {
$this->assertEquals( $result, $this->getLang()->convertGrammar( $word, $case ) );
diff --git a/tests/phpunit/includes/languages/LanguageKshTest.php b/tests/phpunit/includes/languages/LanguageKshTest.php
index 5cae22d8d482..3dd9db52cc15 100644
--- a/tests/phpunit/includes/languages/LanguageKshTest.php
+++ b/tests/phpunit/includes/languages/LanguageKshTest.php
@@ -7,12 +7,12 @@
/**
* @group Language
- * @covers LanguageKsh
+ * @covers \LanguageKsh
*/
class LanguageKshTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::convertPlural
+ * @covers \Language::convertPlural
*/
public function testPlural( $result, $value ) {
$forms = [ 'one', 'other', 'zero' ];
@@ -21,7 +21,7 @@ class LanguageKshTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::getPluralRuleType
+ * @covers \Language::getPluralRuleType
*/
public function testGetPluralRuleType( $result, $value ) {
$this->assertEquals( $result, $this->getLang()->getPluralRuleType( $value ) );
diff --git a/tests/phpunit/includes/languages/LanguageLnTest.php b/tests/phpunit/includes/languages/LanguageLnTest.php
index 182d92e94988..46a4ec2f18ad 100644
--- a/tests/phpunit/includes/languages/LanguageLnTest.php
+++ b/tests/phpunit/includes/languages/LanguageLnTest.php
@@ -11,7 +11,7 @@
class LanguageLnTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::convertPlural
+ * @covers \Language::convertPlural
*/
public function testPlural( $result, $value ) {
$forms = [ 'one', 'other' ];
@@ -20,7 +20,7 @@ class LanguageLnTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::getPluralRuleType
+ * @covers \Language::getPluralRuleType
*/
public function testGetPluralRuleType( $result, $value ) {
$this->assertEquals( $result, $this->getLang()->getPluralRuleType( $value ) );
diff --git a/tests/phpunit/includes/languages/LanguageLtTest.php b/tests/phpunit/includes/languages/LanguageLtTest.php
index d36183cbb5f7..ea46be437705 100644
--- a/tests/phpunit/includes/languages/LanguageLtTest.php
+++ b/tests/phpunit/includes/languages/LanguageLtTest.php
@@ -11,7 +11,7 @@
class LanguageLtTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::convertPlural
+ * @covers \Language::convertPlural
*/
public function testPlural( $result, $value ) {
$forms = [ 'one', 'few', 'other' ];
@@ -20,7 +20,7 @@ class LanguageLtTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::getPluralRuleType
+ * @covers \Language::getPluralRuleType
*/
public function testGetPluralRuleType( $result, $value ) {
$this->assertEquals( $result, $this->getLang()->getPluralRuleType( $value ) );
@@ -44,7 +44,7 @@ class LanguageLtTest extends LanguageClassesTestCase {
/**
* @dataProvider providePluralTwoForms
- * @covers Language::convertPlural
+ * @covers \Language::convertPlural
*/
public function testOneFewPlural( $result, $value ) {
$forms = [ 'one', 'other' ];
diff --git a/tests/phpunit/includes/languages/LanguageLvTest.php b/tests/phpunit/includes/languages/LanguageLvTest.php
index af91a1a9af9a..0d290a8cdaea 100644
--- a/tests/phpunit/includes/languages/LanguageLvTest.php
+++ b/tests/phpunit/includes/languages/LanguageLvTest.php
@@ -13,7 +13,7 @@
class LanguageLvTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::convertPlural
+ * @covers \Language::convertPlural
*/
public function testPlural( $result, $value ) {
$forms = [ 'zero', 'one', 'other' ];
@@ -22,7 +22,7 @@ class LanguageLvTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::getPluralRuleType
+ * @covers \Language::getPluralRuleType
*/
public function testGetPluralRuleType( $result, $value ) {
$this->assertEquals( $result, $this->getLang()->getPluralRuleType( $value ) );
diff --git a/tests/phpunit/includes/languages/LanguageMgTest.php b/tests/phpunit/includes/languages/LanguageMgTest.php
index 48b726170642..c7f460ee4b83 100644
--- a/tests/phpunit/includes/languages/LanguageMgTest.php
+++ b/tests/phpunit/includes/languages/LanguageMgTest.php
@@ -11,7 +11,7 @@
class LanguageMgTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::convertPlural
+ * @covers \Language::convertPlural
*/
public function testPlural( $result, $value ) {
$forms = [ 'one', 'other' ];
@@ -20,7 +20,7 @@ class LanguageMgTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::getPluralRuleType
+ * @covers \Language::getPluralRuleType
*/
public function testGetPluralRuleType( $result, $value ) {
$this->assertEquals( $result, $this->getLang()->getPluralRuleType( $value ) );
diff --git a/tests/phpunit/includes/languages/LanguageMkTest.php b/tests/phpunit/includes/languages/LanguageMkTest.php
index 0cec25b6468a..aa64b650d1ec 100644
--- a/tests/phpunit/includes/languages/LanguageMkTest.php
+++ b/tests/phpunit/includes/languages/LanguageMkTest.php
@@ -13,7 +13,7 @@
class LanguageMkTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::convertPlural
+ * @covers \Language::convertPlural
*/
public function testPlural( $result, $value ) {
$forms = [ 'one', 'other' ];
@@ -22,7 +22,7 @@ class LanguageMkTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::getPluralRuleType
+ * @covers \Language::getPluralRuleType
*/
public function testGetPluralRuleType( $result, $value ) {
$this->assertEquals( $result, $this->getLang()->getPluralRuleType( $value ) );
diff --git a/tests/phpunit/includes/languages/LanguageMlTest.php b/tests/phpunit/includes/languages/LanguageMlTest.php
index 69b0fcdc233b..97c26fbd5685 100644
--- a/tests/phpunit/includes/languages/LanguageMlTest.php
+++ b/tests/phpunit/includes/languages/LanguageMlTest.php
@@ -7,13 +7,13 @@
/**
* @group Language
- * @covers LanguageMl
+ * @covers \LanguageMl
*/
class LanguageMlTest extends LanguageClassesTestCase {
/**
* @dataProvider provideFormatNum
- * @covers Language::formatNum
+ * @covers \Language::formatNum
*/
public function testFormatNum( $value, $result ) {
// For T31495
@@ -40,8 +40,8 @@ class LanguageMlTest extends LanguageClassesTestCase {
}
/**
- * @covers LanguageMl::normalize
- * @covers Language::normalize
+ * @covers \LanguageMl::normalize
+ * @covers \Language::normalize
* @dataProvider provideNormalize
*/
public function testNormalize( $input, $expected ) {
diff --git a/tests/phpunit/includes/languages/LanguageMoTest.php b/tests/phpunit/includes/languages/LanguageMoTest.php
index 4d75a7f5de89..b6febc062c05 100644
--- a/tests/phpunit/includes/languages/LanguageMoTest.php
+++ b/tests/phpunit/includes/languages/LanguageMoTest.php
@@ -11,7 +11,7 @@
class LanguageMoTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::convertPlural
+ * @covers \Language::convertPlural
*/
public function testPlural( $result, $value ) {
$forms = [ 'one', 'few', 'other' ];
@@ -20,7 +20,7 @@ class LanguageMoTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::getPluralRuleType
+ * @covers \Language::getPluralRuleType
*/
public function testGetPluralRuleType( $result, $value ) {
$this->assertEquals( $result, $this->getLang()->getPluralRuleType( $value ) );
diff --git a/tests/phpunit/includes/languages/LanguageMtTest.php b/tests/phpunit/includes/languages/LanguageMtTest.php
index ae83b7eaeec1..ca5c48676516 100644
--- a/tests/phpunit/includes/languages/LanguageMtTest.php
+++ b/tests/phpunit/includes/languages/LanguageMtTest.php
@@ -11,7 +11,7 @@
class LanguageMtTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::convertPlural
+ * @covers \Language::convertPlural
*/
public function testPlural( $result, $value ) {
$forms = [ 'one', 'few', 'many', 'other' ];
@@ -20,7 +20,7 @@ class LanguageMtTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::getPluralRuleType
+ * @covers \Language::getPluralRuleType
*/
public function testGetPluralRuleType( $result, $value ) {
$this->assertEquals( $result, $this->getLang()->getPluralRuleType( $value ) );
@@ -49,7 +49,7 @@ class LanguageMtTest extends LanguageClassesTestCase {
/**
* @dataProvider providePluralTwoForms
- * @covers Language::convertPlural
+ * @covers \Language::convertPlural
*/
public function testPluralTwoForms( $result, $value ) {
$forms = [ 'one', 'other' ];
diff --git a/tests/phpunit/includes/languages/LanguageNlTest.php b/tests/phpunit/includes/languages/LanguageNlTest.php
index 1decc7dd8e63..a656c3e62e3d 100644
--- a/tests/phpunit/includes/languages/LanguageNlTest.php
+++ b/tests/phpunit/includes/languages/LanguageNlTest.php
@@ -11,7 +11,7 @@
class LanguageNlTest extends LanguageClassesTestCase {
/**
- * @covers Language::formatNum
+ * @covers \Language::formatNum
* @dataProvider provideFormatNum
*/
public function testFormatNum( $unformatted, $formatted ) {
diff --git a/tests/phpunit/includes/languages/LanguageNsoTest.php b/tests/phpunit/includes/languages/LanguageNsoTest.php
index 8a54f34d1587..7ac1ee6bc4c6 100644
--- a/tests/phpunit/includes/languages/LanguageNsoTest.php
+++ b/tests/phpunit/includes/languages/LanguageNsoTest.php
@@ -11,7 +11,7 @@
class LanguageNsoTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::convertPlural
+ * @covers \Language::convertPlural
*/
public function testPlural( $result, $value ) {
$forms = [ 'one', 'other' ];
@@ -20,7 +20,7 @@ class LanguageNsoTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::getPluralRuleType
+ * @covers \Language::getPluralRuleType
*/
public function testGetPluralRuleType( $result, $value ) {
$this->assertEquals( $result, $this->getLang()->getPluralRuleType( $value ) );
diff --git a/tests/phpunit/includes/languages/LanguagePlTest.php b/tests/phpunit/includes/languages/LanguagePlTest.php
index abe307a72258..33cffc3f27e1 100644
--- a/tests/phpunit/includes/languages/LanguagePlTest.php
+++ b/tests/phpunit/includes/languages/LanguagePlTest.php
@@ -11,7 +11,7 @@
class LanguagePlTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::convertPlural
+ * @covers \Language::convertPlural
*/
public function testPlural( $result, $value ) {
$forms = [ 'one', 'few', 'many' ];
@@ -20,7 +20,7 @@ class LanguagePlTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::getPluralRuleType
+ * @covers \Language::getPluralRuleType
*/
public function testGetPluralRuleType( $result, $value ) {
$this->assertEquals( $result, $this->getLang()->getPluralRuleType( $value ) );
@@ -49,7 +49,7 @@ class LanguagePlTest extends LanguageClassesTestCase {
/**
* @dataProvider providePluralTwoForms
- * @covers Language::convertPlural
+ * @covers \Language::convertPlural
*/
public function testPluralTwoForms( $result, $value ) {
$forms = [ 'one', 'other' ];
@@ -78,7 +78,7 @@ class LanguagePlTest extends LanguageClassesTestCase {
}
/**
- * @covers Language::formatNum()
+ * @covers \Language::formatNum()
* @dataProvider provideFormatNum
*/
public function testFormatNum( $number, $formattedNum, $desc ) {
diff --git a/tests/phpunit/includes/languages/LanguageRoTest.php b/tests/phpunit/includes/languages/LanguageRoTest.php
index 60a9a5c7948f..dd44c2994f83 100644
--- a/tests/phpunit/includes/languages/LanguageRoTest.php
+++ b/tests/phpunit/includes/languages/LanguageRoTest.php
@@ -11,7 +11,7 @@
class LanguageRoTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::convertPlural
+ * @covers \Language::convertPlural
*/
public function testPlural( $result, $value ) {
$forms = [ 'one', 'few', 'other' ];
@@ -20,7 +20,7 @@ class LanguageRoTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::getPluralRuleType
+ * @covers \Language::getPluralRuleType
*/
public function testGetPluralRuleType( $result, $value ) {
$this->assertEquals( $result, $this->getLang()->getPluralRuleType( $value ) );
diff --git a/tests/phpunit/includes/languages/LanguageRuTest.php b/tests/phpunit/includes/languages/LanguageRuTest.php
index ea277f6760f6..6b3fc6da15bb 100644
--- a/tests/phpunit/includes/languages/LanguageRuTest.php
+++ b/tests/phpunit/includes/languages/LanguageRuTest.php
@@ -11,7 +11,7 @@
class LanguageRuTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::convertPlural
+ * @covers \Language::convertPlural
*/
public function testPlural( $result, $value ) {
$forms = [ 'one', 'few', 'many', 'other' ];
@@ -20,7 +20,7 @@ class LanguageRuTest extends LanguageClassesTestCase {
/**
* Test explicit plural forms - n=FormN forms
- * @covers Language::convertPlural
+ * @covers \Language::convertPlural
*/
public function testExplicitPlural() {
$forms = [ 'one', 'few', 'many', 'other', '12=dozen' ];
@@ -31,7 +31,7 @@ class LanguageRuTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::getPluralRuleType
+ * @covers \Language::getPluralRuleType
*/
public function testGetPluralRuleType( $result, $value ) {
$this->assertEquals( $result, $this->getLang()->getPluralRuleType( $value ) );
@@ -55,7 +55,7 @@ class LanguageRuTest extends LanguageClassesTestCase {
/**
* @dataProvider providePluralTwoForms
- * @covers Language::convertPlural
+ * @covers \Language::convertPlural
*/
public function testPluralTwoForms( $result, $value ) {
$forms = [ '1=one', 'other' ];
@@ -73,7 +73,7 @@ class LanguageRuTest extends LanguageClassesTestCase {
/**
* @dataProvider providerGrammar
- * @covers Language::convertGrammar
+ * @covers \Language::convertGrammar
*/
public function testGrammar( $result, $word, $case ) {
$this->assertEquals( $result, $this->getLang()->convertGrammar( $word, $case ) );
diff --git a/tests/phpunit/includes/languages/LanguageSeTest.php b/tests/phpunit/includes/languages/LanguageSeTest.php
index 008210726e70..dc8d0fdae083 100644
--- a/tests/phpunit/includes/languages/LanguageSeTest.php
+++ b/tests/phpunit/includes/languages/LanguageSeTest.php
@@ -11,7 +11,7 @@
class LanguageSeTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::convertPlural
+ * @covers \Language::convertPlural
*/
public function testPlural( $result, $value ) {
$forms = [ 'one', 'two', 'other' ];
@@ -20,7 +20,7 @@ class LanguageSeTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::getPluralRuleType
+ * @covers \Language::getPluralRuleType
*/
public function testGetPluralRuleType( $result, $value ) {
$this->assertEquals( $result, $this->getLang()->getPluralRuleType( $value ) );
@@ -37,7 +37,7 @@ class LanguageSeTest extends LanguageClassesTestCase {
/**
* @dataProvider providePluralTwoForms
- * @covers Language::convertPlural
+ * @covers \Language::convertPlural
*/
public function testPluralTwoForms( $result, $value ) {
$forms = [ 'one', 'other' ];
diff --git a/tests/phpunit/includes/languages/LanguageSgsTest.php b/tests/phpunit/includes/languages/LanguageSgsTest.php
index 11f79e5c2a54..d457f2880080 100644
--- a/tests/phpunit/includes/languages/LanguageSgsTest.php
+++ b/tests/phpunit/includes/languages/LanguageSgsTest.php
@@ -13,7 +13,7 @@
class LanguageSgsTest extends LanguageClassesTestCase {
/**
* @dataProvider providePluralAllForms
- * @covers Language::convertPlural
+ * @covers \Language::convertPlural
*/
public function testPluralAllForms( $result, $value ) {
$forms = [ 'one', 'two', 'few', 'other' ];
@@ -22,7 +22,7 @@ class LanguageSgsTest extends LanguageClassesTestCase {
/**
* @dataProvider providePluralAllForms
- * @covers Language::getPluralRuleType
+ * @covers \Language::getPluralRuleType
*/
public function testGetPluralRuleType( $result, $value ) {
$this->assertEquals( $result, $this->getLang()->getPluralRuleType( $value ) );
@@ -48,7 +48,7 @@ class LanguageSgsTest extends LanguageClassesTestCase {
/**
* @dataProvider providePluralTwoForms
- * @covers Language::convertPlural
+ * @covers \Language::convertPlural
*/
public function testPluralTwoForms( $result, $value ) {
$forms = [ 'one', 'other' ];
diff --git a/tests/phpunit/includes/languages/LanguageShTest.php b/tests/phpunit/includes/languages/LanguageShTest.php
index ef89738c4ed1..72aa6ac8ca0a 100644
--- a/tests/phpunit/includes/languages/LanguageShTest.php
+++ b/tests/phpunit/includes/languages/LanguageShTest.php
@@ -13,7 +13,7 @@
class LanguageShTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::convertPlural
+ * @covers \Language::convertPlural
*/
public function testPlural( $result, $value ) {
$forms = [ 'one', 'few', 'other' ];
@@ -22,7 +22,7 @@ class LanguageShTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::getPluralRuleType
+ * @covers \Language::getPluralRuleType
*/
public function testGetPluralRuleType( $result, $value ) {
$this->assertEquals( $result, $this->getLang()->getPluralRuleType( $value ) );
diff --git a/tests/phpunit/includes/languages/LanguageSkTest.php b/tests/phpunit/includes/languages/LanguageSkTest.php
index 5b956c600c33..92bb4d4e2116 100644
--- a/tests/phpunit/includes/languages/LanguageSkTest.php
+++ b/tests/phpunit/includes/languages/LanguageSkTest.php
@@ -11,7 +11,7 @@
class LanguageSkTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::convertPlural
+ * @covers \Language::convertPlural
*/
public function testPlural( $result, $value ) {
$forms = [ 'one', 'few', 'other' ];
@@ -20,7 +20,7 @@ class LanguageSkTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::getPluralRuleType
+ * @covers \Language::getPluralRuleType
*/
public function testGetPluralRuleType( $result, $value ) {
$this->assertEquals( $result, $this->getLang()->getPluralRuleType( $value ) );
diff --git a/tests/phpunit/includes/languages/LanguageSlTest.php b/tests/phpunit/includes/languages/LanguageSlTest.php
index f5c89238eea4..2052f0f82dc4 100644
--- a/tests/phpunit/includes/languages/LanguageSlTest.php
+++ b/tests/phpunit/includes/languages/LanguageSlTest.php
@@ -7,12 +7,12 @@
/**
* @group Language
- * @covers LanguageSl
+ * @covers \LanguageSl
*/
class LanguageSlTest extends LanguageClassesTestCase {
/**
* @dataProvider providerPlural
- * @covers Language::convertPlural
+ * @covers \Language::convertPlural
*/
public function testPlural( $result, $value ) {
$forms = [ 'one', 'two', 'few', 'other' ];
@@ -21,7 +21,7 @@ class LanguageSlTest extends LanguageClassesTestCase {
/**
* @dataProvider providerPlural
- * @covers Language::getPluralRuleType
+ * @covers \Language::getPluralRuleType
*/
public function testGetPluralRuleType( $result, $value ) {
$this->assertEquals( $result, $this->getLang()->getPluralRuleType( $value ) );
diff --git a/tests/phpunit/includes/languages/LanguageSmaTest.php b/tests/phpunit/includes/languages/LanguageSmaTest.php
index f1a4b15c3556..241883eb5e96 100644
--- a/tests/phpunit/includes/languages/LanguageSmaTest.php
+++ b/tests/phpunit/includes/languages/LanguageSmaTest.php
@@ -11,7 +11,7 @@
class LanguageSmaTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::convertPlural
+ * @covers \Language::convertPlural
*/
public function testPlural( $result, $value ) {
$forms = [ 'one', 'two', 'other' ];
@@ -20,7 +20,7 @@ class LanguageSmaTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::getPluralRuleType
+ * @covers \Language::getPluralRuleType
*/
public function testGetPluralRuleType( $result, $value ) {
$this->assertEquals( $result, $this->getLang()->getPluralRuleType( $value ) );
@@ -37,7 +37,7 @@ class LanguageSmaTest extends LanguageClassesTestCase {
/**
* @dataProvider providePluralTwoForms
- * @covers Language::convertPlural
+ * @covers \Language::convertPlural
*/
public function testPluralTwoForms( $result, $value ) {
$forms = [ 'one', 'other' ];
diff --git a/tests/phpunit/includes/languages/LanguageSrTest.php b/tests/phpunit/includes/languages/LanguageSrTest.php
index d5994e635de9..50987fba122c 100644
--- a/tests/phpunit/includes/languages/LanguageSrTest.php
+++ b/tests/phpunit/includes/languages/LanguageSrTest.php
@@ -21,7 +21,7 @@
class LanguageSrTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::convertPlural
+ * @covers \Language::convertPlural
*/
public function testPlural( $result, $value ) {
$forms = [ 'one', 'few', 'other' ];
@@ -30,7 +30,7 @@ class LanguageSrTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::getPluralRuleType
+ * @covers \Language::getPluralRuleType
*/
public function testGetPluralRuleType( $result, $value ) {
$this->assertEquals( $result, $this->getLang()->getPluralRuleType( $value ) );
@@ -54,7 +54,7 @@ class LanguageSrTest extends LanguageClassesTestCase {
/**
* @dataProvider providePluralTwoForms
- * @covers Language::convertPlural
+ * @covers \Language::convertPlural
*/
public function testPluralTwoForms( $result, $value ) {
$forms = [ 'one', 'other' ];
diff --git a/tests/phpunit/includes/languages/LanguageTiTest.php b/tests/phpunit/includes/languages/LanguageTiTest.php
index 4ee1dd8e47f9..17b3113d81c4 100644
--- a/tests/phpunit/includes/languages/LanguageTiTest.php
+++ b/tests/phpunit/includes/languages/LanguageTiTest.php
@@ -11,7 +11,7 @@
class LanguageTiTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::convertPlural
+ * @covers \Language::convertPlural
*/
public function testPlural( $result, $value ) {
$forms = [ 'one', 'other' ];
@@ -20,7 +20,7 @@ class LanguageTiTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::getPluralRuleType
+ * @covers \Language::getPluralRuleType
*/
public function testGetPluralRuleType( $result, $value ) {
$this->assertEquals( $result, $this->getLang()->getPluralRuleType( $value ) );
diff --git a/tests/phpunit/includes/languages/LanguageTlTest.php b/tests/phpunit/includes/languages/LanguageTlTest.php
index fcb2be6e7144..5a4bed642091 100644
--- a/tests/phpunit/includes/languages/LanguageTlTest.php
+++ b/tests/phpunit/includes/languages/LanguageTlTest.php
@@ -11,7 +11,7 @@
class LanguageTlTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::convertPlural
+ * @covers \Language::convertPlural
*/
public function testPlural( $result, $value ) {
$forms = [ 'one', 'other' ];
@@ -20,7 +20,7 @@ class LanguageTlTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::getPluralRuleType
+ * @covers \Language::getPluralRuleType
*/
public function testGetPluralRuleType( $result, $value ) {
$this->assertEquals( $result, $this->getLang()->getPluralRuleType( $value ) );
diff --git a/tests/phpunit/includes/languages/LanguageTrTest.php b/tests/phpunit/includes/languages/LanguageTrTest.php
index 59a73cb287a7..717647b50160 100644
--- a/tests/phpunit/includes/languages/LanguageTrTest.php
+++ b/tests/phpunit/includes/languages/LanguageTrTest.php
@@ -7,7 +7,7 @@
/**
* @group Language
- * @covers LanguageTr
+ * @covers \LanguageTr
*/
class LanguageTrTest extends LanguageClassesTestCase {
@@ -19,8 +19,8 @@ class LanguageTrTest extends LanguageClassesTestCase {
* - Emperyan
* @see https://en.wikipedia.org/wiki/Dotted_and_dotless_I
* @dataProvider provideDottedAndDotlessI
- * @covers Language::ucfirst
- * @covers Language::lcfirst
+ * @covers \Language::ucfirst
+ * @covers \Language::lcfirst
*/
public function testDottedAndDotlessI( $func, $input, $inputCase, $expected ) {
if ( $func == 'ucfirst' ) {
diff --git a/tests/phpunit/includes/languages/LanguageTyvTest.php b/tests/phpunit/includes/languages/LanguageTyvTest.php
index f98ea29bd209..bd7c592af89b 100644
--- a/tests/phpunit/includes/languages/LanguageTyvTest.php
+++ b/tests/phpunit/includes/languages/LanguageTyvTest.php
@@ -7,7 +7,7 @@ class LanguageTyvTest extends LanguageClassesTestCase {
/**
* @dataProvider provideGrammar
- * @covers Language::convertGrammar
+ * @covers \Language::convertGrammar
*/
public function testGrammar( $result, $word, $case ) {
$this->assertEquals( $result, $this->getLang()->convertGrammar( $word, $case ) );
diff --git a/tests/phpunit/includes/languages/LanguageUkTest.php b/tests/phpunit/includes/languages/LanguageUkTest.php
index 59f02718d161..094d8ca2aed0 100644
--- a/tests/phpunit/includes/languages/LanguageUkTest.php
+++ b/tests/phpunit/includes/languages/LanguageUkTest.php
@@ -11,7 +11,7 @@
class LanguageUkTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::convertPlural
+ * @covers \Language::convertPlural
*/
public function testPlural( $result, $value ) {
$forms = [ 'one', 'few', 'many', 'other' ];
@@ -20,7 +20,7 @@ class LanguageUkTest extends LanguageClassesTestCase {
/**
* Test explicit plural forms - n=FormN forms
- * @covers Language::convertPlural
+ * @covers \Language::convertPlural
*/
public function testExplicitPlural() {
$forms = [ 'one', 'few', 'many', 'other', '12=dozen' ];
@@ -31,7 +31,7 @@ class LanguageUkTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::getPluralRuleType
+ * @covers \Language::getPluralRuleType
*/
public function testGetPluralRuleType( $result, $value ) {
$this->assertEquals( $result, $this->getLang()->getPluralRuleType( $value ) );
@@ -55,7 +55,7 @@ class LanguageUkTest extends LanguageClassesTestCase {
/**
* @dataProvider providePluralTwoForms
- * @covers Language::convertPlural
+ * @covers \Language::convertPlural
*/
public function testPluralTwoForms( $result, $value ) {
$forms = [ '1=one', 'other' ];
@@ -73,7 +73,7 @@ class LanguageUkTest extends LanguageClassesTestCase {
/**
* @dataProvider providerGrammar
- * @covers Language::convertGrammar
+ * @covers \Language::convertGrammar
*/
public function testGrammar( $result, $word, $case ) {
$this->assertEquals( $result, $this->getLang()->convertGrammar( $word, $case ) );
diff --git a/tests/phpunit/includes/languages/LanguageWaTest.php b/tests/phpunit/includes/languages/LanguageWaTest.php
index a472eeef9e2d..508152d5cce9 100644
--- a/tests/phpunit/includes/languages/LanguageWaTest.php
+++ b/tests/phpunit/includes/languages/LanguageWaTest.php
@@ -7,12 +7,12 @@
/**
* @group Language
- * @covers LanguageWa
+ * @covers \LanguageWa
*/
class LanguageWaTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::convertPlural
+ * @covers \Language::convertPlural
*/
public function testPlural( $result, $value ) {
$forms = [ 'one', 'other' ];
@@ -21,7 +21,7 @@ class LanguageWaTest extends LanguageClassesTestCase {
/**
* @dataProvider providePlural
- * @covers Language::getPluralRuleType
+ * @covers \Language::getPluralRuleType
*/
public function testGetPluralRuleType( $result, $value ) {
$this->assertEquals( $result, $this->getLang()->getPluralRuleType( $value ) );
@@ -37,8 +37,8 @@ class LanguageWaTest extends LanguageClassesTestCase {
/**
* @dataProvider provideTimeAndDate
- * @covers LanguageWa::timeanddate
- * @covers LanguageWa::date
+ * @covers \LanguageWa::timeanddate
+ * @covers \LanguageWa::date
*/
public function testTimeAndDate( $result, $ts, $format ) {
$this->assertEquals( $result, $this->getLang()->timeanddate( $ts, false, $format, false ) );
diff --git a/tests/phpunit/includes/languages/LanguageZhTest.php b/tests/phpunit/includes/languages/LanguageZhTest.php
index 815890d82d90..d97bacf608c3 100644
--- a/tests/phpunit/includes/languages/LanguageZhTest.php
+++ b/tests/phpunit/includes/languages/LanguageZhTest.php
@@ -3,7 +3,7 @@
use MediaWiki\MainConfigNames;
/**
- * @covers LanguageZh
+ * @covers \LanguageZh
*/
class LanguageZhTest extends LanguageClassesTestCase {
public function testSegmentForDiff() {
diff --git a/tests/phpunit/includes/libs/http/MultiHttpClientTest.php b/tests/phpunit/includes/libs/http/MultiHttpClientTest.php
index 110ade44865a..86a860ade4ed 100644
--- a/tests/phpunit/includes/libs/http/MultiHttpClientTest.php
+++ b/tests/phpunit/includes/libs/http/MultiHttpClientTest.php
@@ -9,7 +9,7 @@ use Wikimedia\TestingAccessWrapper;
/**
* The urls herein are not actually called, because we mock the return results.
*
- * @covers MultiHttpClient
+ * @covers \MultiHttpClient
*/
class MultiHttpClientTest extends MediaWikiIntegrationTestCase {
/**
diff --git a/tests/phpunit/includes/libs/objectcache/APCUBagOStuffTest.php b/tests/phpunit/includes/libs/objectcache/APCUBagOStuffTest.php
index 1c1e66f55b14..150c77a66090 100644
--- a/tests/phpunit/includes/libs/objectcache/APCUBagOStuffTest.php
+++ b/tests/phpunit/includes/libs/objectcache/APCUBagOStuffTest.php
@@ -2,7 +2,7 @@
/**
* @group BagOStuff
- * @covers APCUBagOStuff
+ * @covers \APCUBagOStuff
* @requires extension apcu
*/
class APCUBagOStuffTest extends BagOStuffTestBase {
diff --git a/tests/phpunit/includes/libs/objectcache/BagOStuffTestBase.php b/tests/phpunit/includes/libs/objectcache/BagOStuffTestBase.php
index 72ff5fec3212..7f0ab2e7f2e9 100644
--- a/tests/phpunit/includes/libs/objectcache/BagOStuffTestBase.php
+++ b/tests/phpunit/includes/libs/objectcache/BagOStuffTestBase.php
@@ -8,8 +8,8 @@ use Wikimedia\TestingAccessWrapper;
/**
* @author Matthias Mullie <mmullie@wikimedia.org>
* @group BagOStuff
- * @covers BagOStuff
- * @covers MediumSpecificBagOStuff
+ * @covers \BagOStuff
+ * @covers \MediumSpecificBagOStuff
*/
abstract class BagOStuffTestBase extends MediaWikiIntegrationTestCase {
/** @var BagOStuff */
diff --git a/tests/phpunit/includes/libs/objectcache/HashBagOStuffIntegrationTest.php b/tests/phpunit/includes/libs/objectcache/HashBagOStuffIntegrationTest.php
index 9c546d26544f..64141be11380 100644
--- a/tests/phpunit/includes/libs/objectcache/HashBagOStuffIntegrationTest.php
+++ b/tests/phpunit/includes/libs/objectcache/HashBagOStuffIntegrationTest.php
@@ -2,7 +2,7 @@
/**
* @group BagOStuff
- * @covers HashBagOStuff
+ * @covers \HashBagOStuff
*/
class HashBagOStuffIntegrationTest extends BagOStuffTestBase {
protected function newCacheInstance() {
diff --git a/tests/phpunit/includes/libs/objectcache/MemcachedPeclBagOStuffIntegrationTest.php b/tests/phpunit/includes/libs/objectcache/MemcachedPeclBagOStuffIntegrationTest.php
index ee6ea649bcb2..bb64753b102e 100644
--- a/tests/phpunit/includes/libs/objectcache/MemcachedPeclBagOStuffIntegrationTest.php
+++ b/tests/phpunit/includes/libs/objectcache/MemcachedPeclBagOStuffIntegrationTest.php
@@ -2,7 +2,7 @@
/**
* @group BagOStuff
- * @covers MemcachedPeclBagOStuff
+ * @covers \MemcachedPeclBagOStuff
* @requires extension memcached
*/
class MemcachedPeclBagOStuffIntegrationTest extends BagOStuffTestBase {
diff --git a/tests/phpunit/includes/libs/objectcache/MemcachedPhpBagOStuffIntegrationTest.php b/tests/phpunit/includes/libs/objectcache/MemcachedPhpBagOStuffIntegrationTest.php
index 60cbef5d480c..5ad94ad95646 100644
--- a/tests/phpunit/includes/libs/objectcache/MemcachedPhpBagOStuffIntegrationTest.php
+++ b/tests/phpunit/includes/libs/objectcache/MemcachedPhpBagOStuffIntegrationTest.php
@@ -2,7 +2,7 @@
/**
* @group BagOStuff
- * @covers MemcachedPhpBagOStuff
+ * @covers \MemcachedPhpBagOStuff
*/
class MemcachedPhpBagOStuffIntegrationTest extends BagOStuffTestBase {
protected function newCacheInstance() {
diff --git a/tests/phpunit/includes/libs/objectcache/MultiWriteBagOStuffTest.php b/tests/phpunit/includes/libs/objectcache/MultiWriteBagOStuffTest.php
index 1b6c264289e1..15b7e6551c9b 100644
--- a/tests/phpunit/includes/libs/objectcache/MultiWriteBagOStuffTest.php
+++ b/tests/phpunit/includes/libs/objectcache/MultiWriteBagOStuffTest.php
@@ -4,7 +4,7 @@ use Wikimedia\LightweightObjectStore\StorageAwareness;
use Wikimedia\TestingAccessWrapper;
/**
- * @covers MultiWriteBagOStuff
+ * @covers \MultiWriteBagOStuff
* @group BagOStuff
* @group Database
*/
diff --git a/tests/phpunit/includes/libs/objectcache/RESTBagOStuffIntegrationTest.php b/tests/phpunit/includes/libs/objectcache/RESTBagOStuffIntegrationTest.php
index d5f654738bed..ff5ffba13cd5 100644
--- a/tests/phpunit/includes/libs/objectcache/RESTBagOStuffIntegrationTest.php
+++ b/tests/phpunit/includes/libs/objectcache/RESTBagOStuffIntegrationTest.php
@@ -2,7 +2,7 @@
/**
* @group BagOStuff
- * @covers RESTBagOStuff
+ * @covers \RESTBagOStuff
*/
class RESTBagOStuffIntegrationTest extends BagOStuffTestBase {
protected function newCacheInstance() {
diff --git a/tests/phpunit/includes/libs/objectcache/RedisBagOStuffIntegrationTest.php b/tests/phpunit/includes/libs/objectcache/RedisBagOStuffIntegrationTest.php
index 07447cc31811..80e3acf94ef7 100644
--- a/tests/phpunit/includes/libs/objectcache/RedisBagOStuffIntegrationTest.php
+++ b/tests/phpunit/includes/libs/objectcache/RedisBagOStuffIntegrationTest.php
@@ -2,7 +2,7 @@
/**
* @group BagOStuff
- * @covers RedisBagOStuff
+ * @covers \RedisBagOStuff
* @requires extension redis
*/
class RedisBagOStuffIntegrationTest extends BagOStuffTestBase {
diff --git a/tests/phpunit/includes/libs/objectcache/WinCacheBagOStuffIntegrationTest.php b/tests/phpunit/includes/libs/objectcache/WinCacheBagOStuffIntegrationTest.php
index 477ef47ec1a3..8d4ee9d54452 100644
--- a/tests/phpunit/includes/libs/objectcache/WinCacheBagOStuffIntegrationTest.php
+++ b/tests/phpunit/includes/libs/objectcache/WinCacheBagOStuffIntegrationTest.php
@@ -2,7 +2,7 @@
/**
* @group BagOStuff
- * @covers WinCacheBagOStuff
+ * @covers \WinCacheBagOStuff
* @requires extension wincache
*/
class WinCacheBagOStuffIntegrationTest extends BagOStuffTestBase {
diff --git a/tests/phpunit/includes/linkeddata/PageDataRequestHandlerTest.php b/tests/phpunit/includes/linkeddata/PageDataRequestHandlerTest.php
index 622085ac05ba..9d723369d11d 100644
--- a/tests/phpunit/includes/linkeddata/PageDataRequestHandlerTest.php
+++ b/tests/phpunit/includes/linkeddata/PageDataRequestHandlerTest.php
@@ -11,7 +11,7 @@ use MediaWiki\Title\Title;
use MediaWiki\Title\TitleFactory;
/**
- * @covers PageDataRequestHandler
+ * @covers \PageDataRequestHandler
* @group PageData
*/
class PageDataRequestHandlerTest extends \MediaWikiLangTestCase {
diff --git a/tests/phpunit/includes/linker/LinkRendererTest.php b/tests/phpunit/includes/linker/LinkRendererTest.php
index 74607ff092fc..f4ce8fc95bcf 100644
--- a/tests/phpunit/includes/linker/LinkRendererTest.php
+++ b/tests/phpunit/includes/linker/LinkRendererTest.php
@@ -10,7 +10,7 @@ use MediaWiki\Title\Title;
use MediaWiki\Title\TitleValue;
/**
- * @covers MediaWiki\Linker\LinkRenderer
+ * @covers \MediaWiki\Linker\LinkRenderer
*/
class LinkRendererTest extends MediaWikiLangTestCase {
use LinkCacheTestTrait;
diff --git a/tests/phpunit/includes/linker/LinkTargetStoreTest.php b/tests/phpunit/includes/linker/LinkTargetStoreTest.php
index 262689e4d614..3f8de603ed20 100644
--- a/tests/phpunit/includes/linker/LinkTargetStoreTest.php
+++ b/tests/phpunit/includes/linker/LinkTargetStoreTest.php
@@ -4,7 +4,7 @@ use MediaWiki\Title\TitleValue;
/**
* @group Database
- * @covers MediaWiki\Linker\LinkTargetStore
+ * @covers \MediaWiki\Linker\LinkTargetStore
*/
class LinkTargetStoreTest extends MediaWikiIntegrationTestCase {
diff --git a/tests/phpunit/includes/linker/LinkerTest.php b/tests/phpunit/includes/linker/LinkerTest.php
index a4fa69eaa8af..762d3387669c 100644
--- a/tests/phpunit/includes/linker/LinkerTest.php
+++ b/tests/phpunit/includes/linker/LinkerTest.php
@@ -18,7 +18,7 @@ use MediaWiki\User\User;
class LinkerTest extends MediaWikiLangTestCase {
/**
* @dataProvider provideCasesForUserLink
- * @covers MediaWiki\Linker\Linker::userLink
+ * @covers \MediaWiki\Linker\Linker::userLink
*/
public function testUserLink( $expected, $userId, $userName, $altUserName = false, $msg = '' ) {
$this->overrideConfigValue( MainConfigNames::ArticlePath, '/wiki/$1' );
@@ -157,7 +157,7 @@ class LinkerTest extends MediaWikiLangTestCase {
/**
* @dataProvider provideUserToolLinks
- * @covers MediaWiki\Linker\Linker::userToolLinks
+ * @covers \MediaWiki\Linker\Linker::userToolLinks
* @param string $expected
* @param int $userId
* @param string $userText
@@ -183,7 +183,7 @@ class LinkerTest extends MediaWikiLangTestCase {
/**
* @dataProvider provideUserTalkLink
- * @covers MediaWiki\Linker\Linker::userTalkLink
+ * @covers \MediaWiki\Linker\Linker::userTalkLink
* @param string $expected
* @param int $userId
* @param string $userText
@@ -209,7 +209,7 @@ class LinkerTest extends MediaWikiLangTestCase {
/**
* @dataProvider provideBlockLink
- * @covers MediaWiki\Linker\Linker::blockLink
+ * @covers \MediaWiki\Linker\Linker::blockLink
* @param string $expected
* @param int $userId
* @param string $userText
@@ -235,7 +235,7 @@ class LinkerTest extends MediaWikiLangTestCase {
/**
* @dataProvider provideEmailLink
- * @covers MediaWiki\Linker\Linker::emailLink
+ * @covers \MediaWiki\Linker\Linker::emailLink
* @param string $expected
* @param int $userId
* @param string $userText
@@ -261,8 +261,8 @@ class LinkerTest extends MediaWikiLangTestCase {
/**
* @dataProvider provideCasesForFormatComment
- * @covers MediaWiki\Linker\Linker::formatComment
- * @covers MediaWiki\Linker\Linker::formatLinksInComment
+ * @covers \MediaWiki\Linker\Linker::formatComment
+ * @covers \MediaWiki\Linker\Linker::formatLinksInComment
* @covers \MediaWiki\CommentFormatter\CommentParser
* @covers \MediaWiki\CommentFormatter\CommentFormatter
*/
@@ -481,7 +481,7 @@ class LinkerTest extends MediaWikiLangTestCase {
}
/**
- * @covers MediaWiki\Linker\Linker::formatLinksInComment
+ * @covers \MediaWiki\Linker\Linker::formatLinksInComment
* @covers \MediaWiki\CommentFormatter\CommentParser
* @covers \MediaWiki\CommentFormatter\CommentFormatter
* @dataProvider provideCasesForFormatLinksInComment
@@ -512,7 +512,7 @@ class LinkerTest extends MediaWikiLangTestCase {
}
/**
- * @covers MediaWiki\Linker\Linker::generateRollback
+ * @covers \MediaWiki\Linker\Linker::generateRollback
* @dataProvider provideCasesForRollbackGeneration
*/
public function testGenerateRollback( $rollbackEnabled, $expectedModules, $title ) {
@@ -634,7 +634,7 @@ class LinkerTest extends MediaWikiLangTestCase {
}
/**
- * @covers MediaWiki\Linker\Linker::tooltipAndAccesskeyAttribs
+ * @covers \MediaWiki\Linker\Linker::tooltipAndAccesskeyAttribs
* @dataProvider provideTooltipAndAccesskeyAttribs
*/
public function testTooltipAndAccesskeyAttribs( $name, $msgParams, $options, $expected ) {
@@ -656,7 +656,7 @@ class LinkerTest extends MediaWikiLangTestCase {
}
/**
- * @covers MediaWiki\Linker\Linker::commentBlock
+ * @covers \MediaWiki\Linker\Linker::commentBlock
* @dataProvider provideCommentBlock
*/
public function testCommentBlock(
@@ -733,7 +733,7 @@ class LinkerTest extends MediaWikiLangTestCase {
}
/**
- * @covers MediaWiki\Linker\Linker::revComment
+ * @covers \MediaWiki\Linker\Linker::revComment
* @dataProvider provideRevComment
*/
public function testRevComment(
@@ -796,7 +796,7 @@ class LinkerTest extends MediaWikiLangTestCase {
}
/**
- * @covers MediaWiki\Linker\Linker::specialLink
+ * @covers \MediaWiki\Linker\Linker::specialLink
* @dataProvider provideSpecialLink
*/
public function testSpecialLink( $expected, $target, $key = null ) {
diff --git a/tests/phpunit/includes/logging/BlockLogFormatterTest.php b/tests/phpunit/includes/logging/BlockLogFormatterTest.php
index 6250506b9f9f..0d74dba021be 100644
--- a/tests/phpunit/includes/logging/BlockLogFormatterTest.php
+++ b/tests/phpunit/includes/logging/BlockLogFormatterTest.php
@@ -3,7 +3,7 @@
use MediaWiki\Title\TitleValue;
/**
- * @covers BlockLogFormatter
+ * @covers \BlockLogFormatter
*/
class BlockLogFormatterTest extends LogFormatterTestCase {
diff --git a/tests/phpunit/includes/logging/ContentModelLogFormatterTest.php b/tests/phpunit/includes/logging/ContentModelLogFormatterTest.php
index 17e5411504af..bb30f9ee337e 100644
--- a/tests/phpunit/includes/logging/ContentModelLogFormatterTest.php
+++ b/tests/phpunit/includes/logging/ContentModelLogFormatterTest.php
@@ -1,7 +1,7 @@
<?php
/**
- * @covers ContentModelLogFormatter
+ * @covers \ContentModelLogFormatter
*/
class ContentModelLogFormatterTest extends LogFormatterTestCase {
public static function provideContentModelLogDatabaseRows() {
diff --git a/tests/phpunit/includes/logging/DatabaseLogEntryTest.php b/tests/phpunit/includes/logging/DatabaseLogEntryTest.php
index 999a00a93164..3e1aea3b2830 100644
--- a/tests/phpunit/includes/logging/DatabaseLogEntryTest.php
+++ b/tests/phpunit/includes/logging/DatabaseLogEntryTest.php
@@ -24,8 +24,8 @@ class DatabaseLogEntryTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers DatabaseLogEntry::newFromId
- * @covers DatabaseLogEntry::getSelectQueryData
+ * @covers \DatabaseLogEntry::newFromId
+ * @covers \DatabaseLogEntry::getSelectQueryData
*
* @dataProvider provideNewFromId
*
@@ -153,7 +153,7 @@ class DatabaseLogEntryTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider provideGetPerformerIdentity
- * @covers DatabaseLogEntry::getPerformerIdentity
+ * @covers \DatabaseLogEntry::getPerformerIdentity
*/
public function testGetPerformer( array $actorRowFields, UserIdentity $expected ) {
$logEntry = DatabaseLogEntry::newFromRow( [
diff --git a/tests/phpunit/includes/logging/DeleteLogFormatterTest.php b/tests/phpunit/includes/logging/DeleteLogFormatterTest.php
index 7e143dbda38b..8a03d41b89b8 100644
--- a/tests/phpunit/includes/logging/DeleteLogFormatterTest.php
+++ b/tests/phpunit/includes/logging/DeleteLogFormatterTest.php
@@ -1,7 +1,7 @@
<?php
/**
- * @covers DeleteLogFormatter
+ * @covers \DeleteLogFormatter
*/
class DeleteLogFormatterTest extends LogFormatterTestCase {
diff --git a/tests/phpunit/includes/logging/ImportLogFormatterTest.php b/tests/phpunit/includes/logging/ImportLogFormatterTest.php
index 8aedeca95acc..f8eb19ba07e4 100644
--- a/tests/phpunit/includes/logging/ImportLogFormatterTest.php
+++ b/tests/phpunit/includes/logging/ImportLogFormatterTest.php
@@ -3,7 +3,7 @@
use MediaWiki\Tests\Unit\DummyServicesTrait;
/**
- * @covers ImportLogFormatter
+ * @covers \ImportLogFormatter
*/
class ImportLogFormatterTest extends LogFormatterTestCase {
use DummyServicesTrait;
diff --git a/tests/phpunit/includes/logging/LogFormatterTest.php b/tests/phpunit/includes/logging/LogFormatterTest.php
index 8e04d58cb2d8..0f0cf1aa1572 100644
--- a/tests/phpunit/includes/logging/LogFormatterTest.php
+++ b/tests/phpunit/includes/logging/LogFormatterTest.php
@@ -89,7 +89,7 @@ class LogFormatterTest extends MediaWikiLangTestCase {
}
/**
- * @covers LogFormatter::newFromEntry
+ * @covers \LogFormatter::newFromEntry
*/
public function testNormalLogParams() {
$entry = $this->newLogEntry( 'test', [] );
@@ -132,8 +132,8 @@ class LogFormatterTest extends MediaWikiLangTestCase {
}
/**
- * @covers LogFormatter::newFromEntry
- * @covers LogFormatter::getActionText
+ * @covers \LogFormatter::newFromEntry
+ * @covers \LogFormatter::getActionText
*/
public function testLogParamsTypeRaw() {
$params = [ '4:raw:raw' => Linker::link( $this->title, null, [], [] ) ];
@@ -149,8 +149,8 @@ class LogFormatterTest extends MediaWikiLangTestCase {
}
/**
- * @covers LogFormatter::newFromEntry
- * @covers LogFormatter::getActionText
+ * @covers \LogFormatter::newFromEntry
+ * @covers \LogFormatter::getActionText
*/
public function testLogParamsTypeMsg() {
$params = [ '4:msg:msg' => 'log-description-phpunit' ];
@@ -166,8 +166,8 @@ class LogFormatterTest extends MediaWikiLangTestCase {
}
/**
- * @covers LogFormatter::newFromEntry
- * @covers LogFormatter::getActionText
+ * @covers \LogFormatter::newFromEntry
+ * @covers \LogFormatter::getActionText
*/
public function testLogParamsTypeMsgContent() {
$params = [ '4:msg-content:msgContent' => 'log-description-phpunit' ];
@@ -183,8 +183,8 @@ class LogFormatterTest extends MediaWikiLangTestCase {
}
/**
- * @covers LogFormatter::newFromEntry
- * @covers LogFormatter::getActionText
+ * @covers \LogFormatter::newFromEntry
+ * @covers \LogFormatter::getActionText
*/
public function testLogParamsTypeNumber() {
global $wgLang;
@@ -202,8 +202,8 @@ class LogFormatterTest extends MediaWikiLangTestCase {
}
/**
- * @covers LogFormatter::newFromEntry
- * @covers LogFormatter::getActionText
+ * @covers \LogFormatter::newFromEntry
+ * @covers \LogFormatter::getActionText
*/
public function testLogParamsTypeUserLink() {
$params = [ '4:user-link:userLink' => $this->user->getName() ];
@@ -222,8 +222,8 @@ class LogFormatterTest extends MediaWikiLangTestCase {
}
/**
- * @covers LogFormatter::newFromEntry
- * @covers LogFormatter::getActionText
+ * @covers \LogFormatter::newFromEntry
+ * @covers \LogFormatter::getActionText
*/
public function testLogParamsTypeUserLink_empty() {
$params = [ '4:user-link:userLink' => ':' ];
@@ -239,8 +239,8 @@ class LogFormatterTest extends MediaWikiLangTestCase {
}
/**
- * @covers LogFormatter::newFromEntry
- * @covers LogFormatter::getActionText
+ * @covers \LogFormatter::newFromEntry
+ * @covers \LogFormatter::getActionText
*/
public function testLogParamsTypeTitleLink() {
$params = [ '4:title-link:titleLink' => $this->title->getText() ];
@@ -256,8 +256,8 @@ class LogFormatterTest extends MediaWikiLangTestCase {
}
/**
- * @covers LogFormatter::newFromEntry
- * @covers LogFormatter::getActionText
+ * @covers \LogFormatter::newFromEntry
+ * @covers \LogFormatter::getActionText
*/
public function testLogParamsTypePlain() {
$params = [ '4:plain:plain' => 'Some plain text' ];
@@ -273,7 +273,7 @@ class LogFormatterTest extends MediaWikiLangTestCase {
}
/**
- * @covers LogFormatter::getPerformerElement
+ * @covers \LogFormatter::getPerformerElement
* @dataProvider provideLogElement
*/
public function testGetPerformerElement( $deletedFlag, $allowedAction ) {
@@ -322,8 +322,8 @@ class LogFormatterTest extends MediaWikiLangTestCase {
}
/**
- * @covers LogFormatter::newFromEntry
- * @covers LogFormatter::getComment
+ * @covers \LogFormatter::newFromEntry
+ * @covers \LogFormatter::getComment
* @dataProvider provideLogElement
*/
public function testLogComment( $deletedFlag, $allowedAction ) {
@@ -385,8 +385,8 @@ class LogFormatterTest extends MediaWikiLangTestCase {
/**
* @dataProvider provideApiParamFormatting
- * @covers LogFormatter::formatParametersForApi
- * @covers LogFormatter::formatParameterValueForApi
+ * @covers \LogFormatter::formatParametersForApi
+ * @covers \LogFormatter::formatParameterValueForApi
*/
public function testApiParamFormatting( $key, $value, $expected ) {
$entry = $this->newLogEntry( 'param', [ $key => $value ] );
@@ -479,8 +479,8 @@ class LogFormatterTest extends MediaWikiLangTestCase {
*/
/**
- * @covers LogFormatter::getIRCActionComment
- * @covers LogFormatter::getIRCActionText
+ * @covers \LogFormatter::getIRCActionComment
+ * @covers \LogFormatter::getIRCActionText
*/
public function testIrcMsgForLogTypeBlock() {
$sep = $this->context->msg( 'colon-separator' )->text();
@@ -530,8 +530,8 @@ class LogFormatterTest extends MediaWikiLangTestCase {
}
/**
- * @covers LogFormatter::getIRCActionComment
- * @covers LogFormatter::getIRCActionText
+ * @covers \LogFormatter::getIRCActionComment
+ * @covers \LogFormatter::getIRCActionText
*/
public function testIrcMsgForLogTypeDelete() {
$sep = $this->context->msg( 'colon-separator' )->text();
@@ -554,8 +554,8 @@ class LogFormatterTest extends MediaWikiLangTestCase {
}
/**
- * @covers LogFormatter::getIRCActionComment
- * @covers LogFormatter::getIRCActionText
+ * @covers \LogFormatter::getIRCActionComment
+ * @covers \LogFormatter::getIRCActionText
*/
public function testIrcMsgForLogTypeNewusers() {
$this->assertIRCComment(
@@ -581,8 +581,8 @@ class LogFormatterTest extends MediaWikiLangTestCase {
}
/**
- * @covers LogFormatter::getIRCActionComment
- * @covers LogFormatter::getIRCActionText
+ * @covers \LogFormatter::getIRCActionComment
+ * @covers \LogFormatter::getIRCActionText
*/
public function testIrcMsgForLogTypeMove() {
$move_params = [
@@ -611,8 +611,8 @@ class LogFormatterTest extends MediaWikiLangTestCase {
}
/**
- * @covers LogFormatter::getIRCActionComment
- * @covers LogFormatter::getIRCActionText
+ * @covers \LogFormatter::getIRCActionComment
+ * @covers \LogFormatter::getIRCActionText
*/
public function testIrcMsgForLogTypePatrol() {
# patrol/patrol
@@ -628,8 +628,8 @@ class LogFormatterTest extends MediaWikiLangTestCase {
}
/**
- * @covers LogFormatter::getIRCActionComment
- * @covers LogFormatter::getIRCActionText
+ * @covers \LogFormatter::getIRCActionComment
+ * @covers \LogFormatter::getIRCActionText
*/
public function testIrcMsgForLogTypeProtect() {
$protectParams = [
@@ -678,8 +678,8 @@ class LogFormatterTest extends MediaWikiLangTestCase {
}
/**
- * @covers LogFormatter::getIRCActionComment
- * @covers LogFormatter::getIRCActionText
+ * @covers \LogFormatter::getIRCActionComment
+ * @covers \LogFormatter::getIRCActionText
*/
public function testIrcMsgForLogTypeUpload() {
$sep = $this->context->msg( 'colon-separator' )->text();
@@ -702,8 +702,8 @@ class LogFormatterTest extends MediaWikiLangTestCase {
}
/**
- * @covers LogFormatter::getIRCActionComment
- * @covers LogFormatter::getIRCActionText
+ * @covers \LogFormatter::getIRCActionComment
+ * @covers \LogFormatter::getIRCActionText
*/
public function testIrcMsgForLogTypeMerge() {
$sep = $this->context->msg( 'colon-separator' )->text();
@@ -722,8 +722,8 @@ class LogFormatterTest extends MediaWikiLangTestCase {
}
/**
- * @covers LogFormatter::getIRCActionComment
- * @covers LogFormatter::getIRCActionText
+ * @covers \LogFormatter::getIRCActionComment
+ * @covers \LogFormatter::getIRCActionText
*/
public function testIrcMsgForLogTypeImport() {
$sep = $this->context->msg( 'colon-separator' )->text();
diff --git a/tests/phpunit/includes/logging/MergeLogFormatterTest.php b/tests/phpunit/includes/logging/MergeLogFormatterTest.php
index 45b3f72d9120..694efb7268ef 100644
--- a/tests/phpunit/includes/logging/MergeLogFormatterTest.php
+++ b/tests/phpunit/includes/logging/MergeLogFormatterTest.php
@@ -1,7 +1,7 @@
<?php
/**
- * @covers MergeLogFormatter
+ * @covers \MergeLogFormatter
*/
class MergeLogFormatterTest extends LogFormatterTestCase {
diff --git a/tests/phpunit/includes/logging/MoveLogFormatterTest.php b/tests/phpunit/includes/logging/MoveLogFormatterTest.php
index ebda46b29d97..022235c8670e 100644
--- a/tests/phpunit/includes/logging/MoveLogFormatterTest.php
+++ b/tests/phpunit/includes/logging/MoveLogFormatterTest.php
@@ -1,7 +1,7 @@
<?php
/**
- * @covers MoveLogFormatter
+ * @covers \MoveLogFormatter
*/
class MoveLogFormatterTest extends LogFormatterTestCase {
diff --git a/tests/phpunit/includes/logging/NewUsersLogFormatterTest.php b/tests/phpunit/includes/logging/NewUsersLogFormatterTest.php
index 5c7936f59d20..7850ba37e378 100644
--- a/tests/phpunit/includes/logging/NewUsersLogFormatterTest.php
+++ b/tests/phpunit/includes/logging/NewUsersLogFormatterTest.php
@@ -1,7 +1,7 @@
<?php
/**
- * @covers NewUsersLogFormatter
+ * @covers \NewUsersLogFormatter
* @group Database
*/
class NewUsersLogFormatterTest extends LogFormatterTestCase {
diff --git a/tests/phpunit/includes/logging/PageLangLogFormatterTest.php b/tests/phpunit/includes/logging/PageLangLogFormatterTest.php
index b5159e2c5c2b..46d3b0c10438 100644
--- a/tests/phpunit/includes/logging/PageLangLogFormatterTest.php
+++ b/tests/phpunit/includes/logging/PageLangLogFormatterTest.php
@@ -4,7 +4,7 @@ use MediaWiki\MainConfigNames;
use MediaWiki\MainConfigSchema;
/**
- * @covers PageLangLogFormatter
+ * @covers \PageLangLogFormatter
*/
class PageLangLogFormatterTest extends LogFormatterTestCase {
diff --git a/tests/phpunit/includes/logging/PatrolLogFormatterTest.php b/tests/phpunit/includes/logging/PatrolLogFormatterTest.php
index 0d78ed9cb928..5c0137b2abaa 100644
--- a/tests/phpunit/includes/logging/PatrolLogFormatterTest.php
+++ b/tests/phpunit/includes/logging/PatrolLogFormatterTest.php
@@ -1,7 +1,7 @@
<?php
/**
- * @covers PatrolLogFormatter
+ * @covers \PatrolLogFormatter
*/
class PatrolLogFormatterTest extends LogFormatterTestCase {
diff --git a/tests/phpunit/includes/logging/ProtectLogFormatterTest.php b/tests/phpunit/includes/logging/ProtectLogFormatterTest.php
index 95618fc676d0..71eb1476a83e 100644
--- a/tests/phpunit/includes/logging/ProtectLogFormatterTest.php
+++ b/tests/phpunit/includes/logging/ProtectLogFormatterTest.php
@@ -9,7 +9,7 @@ use Wikimedia\Rdbms\IDatabase;
use Wikimedia\Rdbms\LBFactory;
/**
- * @covers ProtectLogFormatter
+ * @covers \ProtectLogFormatter
*/
class ProtectLogFormatterTest extends LogFormatterTestCase {
@@ -464,7 +464,7 @@ class ProtectLogFormatterTest extends LogFormatterTestCase {
* @param string[] $permissions
* @param bool $shouldMatch
* @dataProvider provideGetActionLinks
- * @covers ProtectLogFormatter::getActionLinks
+ * @covers \ProtectLogFormatter::getActionLinks
*/
public function testGetActionLinks( array $permissions, $shouldMatch ) {
RequestContext::resetMain();
diff --git a/tests/phpunit/includes/logging/RightsLogFormatterTest.php b/tests/phpunit/includes/logging/RightsLogFormatterTest.php
index 8c7bb0a2a33b..9f27aa908007 100644
--- a/tests/phpunit/includes/logging/RightsLogFormatterTest.php
+++ b/tests/phpunit/includes/logging/RightsLogFormatterTest.php
@@ -4,7 +4,7 @@ use Wikimedia\Rdbms\IDatabase;
use Wikimedia\Rdbms\LBFactory;
/**
- * @covers RightsLogFormatter
+ * @covers \RightsLogFormatter
*/
class RightsLogFormatterTest extends LogFormatterTestCase {
diff --git a/tests/phpunit/includes/logging/UploadLogFormatterTest.php b/tests/phpunit/includes/logging/UploadLogFormatterTest.php
index b393949424e3..b5199588af32 100644
--- a/tests/phpunit/includes/logging/UploadLogFormatterTest.php
+++ b/tests/phpunit/includes/logging/UploadLogFormatterTest.php
@@ -1,7 +1,7 @@
<?php
/**
- * @covers UploadLogFormatter
+ * @covers \UploadLogFormatter
*/
class UploadLogFormatterTest extends LogFormatterTestCase {
diff --git a/tests/phpunit/includes/mail/EmailNotificationTest.php b/tests/phpunit/includes/mail/EmailNotificationTest.php
index 0fa48a3d84c3..5f8d56ca0c16 100644
--- a/tests/phpunit/includes/mail/EmailNotificationTest.php
+++ b/tests/phpunit/includes/mail/EmailNotificationTest.php
@@ -5,7 +5,7 @@ use MediaWiki\Title\Title;
/**
* @group Database
- * @covers EmailNotification
+ * @covers \EmailNotification
*/
class EmailNotificationTest extends MediaWikiIntegrationTestCase {
diff --git a/tests/phpunit/includes/mail/MailAddressTest.php b/tests/phpunit/includes/mail/MailAddressTest.php
index fc736b095bce..289865b3215a 100644
--- a/tests/phpunit/includes/mail/MailAddressTest.php
+++ b/tests/phpunit/includes/mail/MailAddressTest.php
@@ -6,7 +6,7 @@ use MediaWiki\User\UserIdentityValue;
class MailAddressTest extends MediaWikiIntegrationTestCase {
/**
- * @covers MailAddress::__construct
+ * @covers \MailAddress::__construct
*/
public function testConstructor() {
$ma = new MailAddress( 'foo@bar.baz', 'UserName', 'Real name' );
@@ -14,7 +14,7 @@ class MailAddressTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MailAddress::newFromUser
+ * @covers \MailAddress::newFromUser
*/
public function testNewFromUser() {
if ( wfIsWindows() ) {
@@ -40,7 +40,7 @@ class MailAddressTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MailAddress::equals
+ * @covers \MailAddress::equals
* @dataProvider provideEquals
*/
public function testEquals( MailAddress $first, MailAddress $second, bool $expected ) {
@@ -57,7 +57,7 @@ class MailAddressTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MailAddress::toString
+ * @covers \MailAddress::toString
* @dataProvider provideToString
*/
public function testToString( $useRealName, $address, $name, $realName, $expected ) {
@@ -92,7 +92,7 @@ class MailAddressTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MailAddress::__toString
+ * @covers \MailAddress::__toString
*/
public function test__ToString() {
$ma = new MailAddress( 'some@email.com', 'UserName', 'A real name' );
diff --git a/tests/phpunit/includes/media/BitmapMetadataHandlerTest.php b/tests/phpunit/includes/media/BitmapMetadataHandlerTest.php
index ea141f68992f..c3fc7e538867 100644
--- a/tests/phpunit/includes/media/BitmapMetadataHandlerTest.php
+++ b/tests/phpunit/includes/media/BitmapMetadataHandlerTest.php
@@ -25,7 +25,7 @@ class BitmapMetadataHandlerTest extends MediaWikiIntegrationTestCase {
* Basically the file has IPTC and XMP metadata, the
* IPTC should override the XMP, except for the multilingual
* translation (to en) where XMP should win.
- * @covers BitmapMetadataHandler::Jpeg
+ * @covers \BitmapMetadataHandler::Jpeg
* @requires extension exif
*/
public function testMultilingualCascade() {
@@ -52,7 +52,7 @@ class BitmapMetadataHandlerTest extends MediaWikiIntegrationTestCase {
*
* There's more extensive tests of comment extraction in
* JpegMetadataExtractorTests.php
- * @covers BitmapMetadataHandler::Jpeg
+ * @covers \BitmapMetadataHandler::Jpeg
*/
public function testJpegComment() {
$meta = BitmapMetadataHandler::Jpeg( $this->filePath .
@@ -65,7 +65,7 @@ class BitmapMetadataHandlerTest extends MediaWikiIntegrationTestCase {
/**
* Make sure a bad iptc block doesn't stop the other metadata
* from being extracted.
- * @covers BitmapMetadataHandler::Jpeg
+ * @covers \BitmapMetadataHandler::Jpeg
*/
public function testBadIPTC() {
$meta = BitmapMetadataHandler::Jpeg( $this->filePath .
@@ -74,7 +74,7 @@ class BitmapMetadataHandlerTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers BitmapMetadataHandler::Jpeg
+ * @covers \BitmapMetadataHandler::Jpeg
*/
public function testIPTCDates() {
$meta = BitmapMetadataHandler::Jpeg( $this->filePath .
@@ -98,8 +98,8 @@ class BitmapMetadataHandlerTest extends MediaWikiIntegrationTestCase {
* XMP data should take priority over iptc data
* when hash has been updated, but not when
* the hash is wrong.
- * @covers BitmapMetadataHandler::addMetadata
- * @covers BitmapMetadataHandler::getMetadataArray
+ * @covers \BitmapMetadataHandler::addMetadata
+ * @covers \BitmapMetadataHandler::getMetadataArray
*/
public function testMerging() {
$merger = new BitmapMetadataHandler();
@@ -124,7 +124,7 @@ class BitmapMetadataHandlerTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers BitmapMetadataHandler::png
+ * @covers \BitmapMetadataHandler::png
*/
public function testPNGXMP() {
$result = BitmapMetadataHandler::PNG( $this->filePath . 'xmp.png' );
@@ -145,7 +145,7 @@ class BitmapMetadataHandlerTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers BitmapMetadataHandler::png
+ * @covers \BitmapMetadataHandler::png
*/
public function testPNGNative() {
$result = BitmapMetadataHandler::PNG( $this->filePath . 'Png-native-test.png' );
@@ -154,7 +154,7 @@ class BitmapMetadataHandlerTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers BitmapMetadataHandler::getTiffByteOrder
+ * @covers \BitmapMetadataHandler::getTiffByteOrder
*/
public function testTiffByteOrder() {
$res = BitmapMetadataHandler::getTiffByteOrder( $this->filePath . 'test.tiff' );
diff --git a/tests/phpunit/includes/media/BitmapScalingTest.php b/tests/phpunit/includes/media/BitmapScalingTest.php
index ed09ea236b1b..46e688eb3f9d 100644
--- a/tests/phpunit/includes/media/BitmapScalingTest.php
+++ b/tests/phpunit/includes/media/BitmapScalingTest.php
@@ -18,7 +18,7 @@ class BitmapScalingTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider provideNormaliseParams
- * @covers BitmapHandler::normaliseParams
+ * @covers \BitmapHandler::normaliseParams
*/
public function testNormaliseParams( $fileDimensions, $expectedParams, $params, $msg ) {
$file = new FakeDimensionFile( $fileDimensions );
@@ -120,7 +120,7 @@ class BitmapScalingTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers BitmapHandler::doTransform
+ * @covers \BitmapHandler::doTransform
*/
public function testTooBigImage() {
$file = new FakeDimensionFile( [ 4000, 4000 ] );
@@ -131,7 +131,7 @@ class BitmapScalingTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers BitmapHandler::doTransform
+ * @covers \BitmapHandler::doTransform
*/
public function testTooBigMustRenderImage() {
$file = new FakeDimensionFile( [ 4000, 4000 ] );
@@ -143,7 +143,7 @@ class BitmapScalingTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers BitmapHandler::getImageArea
+ * @covers \BitmapHandler::getImageArea
*/
public function testImageArea() {
$file = new FakeDimensionFile( [ 7, 9 ] );
diff --git a/tests/phpunit/includes/media/BmpHandlerTest.php b/tests/phpunit/includes/media/BmpHandlerTest.php
index 5337ec8a18ff..86ba6ad3bcee 100644
--- a/tests/phpunit/includes/media/BmpHandlerTest.php
+++ b/tests/phpunit/includes/media/BmpHandlerTest.php
@@ -27,7 +27,7 @@ use MediaHandlerState;
use MediaWikiMediaTestCase;
/**
- * @covers BmpHandler
+ * @covers \BmpHandler
* @group Media
*/
class BmpHandlerTest extends MediaWikiMediaTestCase {
@@ -42,21 +42,21 @@ class BmpHandlerTest extends MediaWikiMediaTestCase {
}
/**
- * @covers BmpHandler::mustRender
+ * @covers \BmpHandler::mustRender
*/
public function testMustRender() {
$this->assertTrue( $this->handler->mustRender( $this->tempFile ) );
}
/**
- * @covers BmpHandler::getThumbType
+ * @covers \BmpHandler::getThumbType
*/
public function testGetThumbType() {
$this->assertEquals( [ 'png', 'image/png' ], $this->handler->getThumbType( 'bmp', 'image/bmp' ) );
}
/**
- * @covers BmpHandler::getSizeAndMetadata
+ * @covers \BmpHandler::getSizeAndMetadata
* @dataProvider provideGetSizeAndMetadata
*/
public function testGetSizeAndMetadata( string $filename, array $expected ) {
diff --git a/tests/phpunit/includes/media/DjVuTest.php b/tests/phpunit/includes/media/DjVuTest.php
index c9d93e493cc5..a5c40d32073c 100644
--- a/tests/phpunit/includes/media/DjVuTest.php
+++ b/tests/phpunit/includes/media/DjVuTest.php
@@ -4,7 +4,7 @@ use MediaWiki\MainConfigNames;
/**
* @group Media
- * @covers DjVuHandler
+ * @covers \DjVuHandler
*/
class DjVuTest extends MediaWikiMediaTestCase {
diff --git a/tests/phpunit/includes/media/ExifBitmapTest.php b/tests/phpunit/includes/media/ExifBitmapTest.php
index ed62681a14a0..0390edee82e8 100644
--- a/tests/phpunit/includes/media/ExifBitmapTest.php
+++ b/tests/phpunit/includes/media/ExifBitmapTest.php
@@ -4,7 +4,7 @@ use MediaWiki\MainConfigNames;
/**
* @group Media
- * @covers ExifBitmapHandler
+ * @covers \ExifBitmapHandler
* @requires extension exif
*/
class ExifBitmapTest extends MediaWikiMediaTestCase {
diff --git a/tests/phpunit/includes/media/ExifRotationTest.php b/tests/phpunit/includes/media/ExifRotationTest.php
index bf0d0b263ee0..94bea31ca9be 100644
--- a/tests/phpunit/includes/media/ExifRotationTest.php
+++ b/tests/phpunit/includes/media/ExifRotationTest.php
@@ -8,7 +8,7 @@ use MediaWiki\MainConfigNames;
* @group Media
* @group medium
*
- * @covers BitmapHandler
+ * @covers \BitmapHandler
* @requires extension exif
*/
class ExifRotationTest extends MediaWikiMediaTestCase {
diff --git a/tests/phpunit/includes/media/ExifTest.php b/tests/phpunit/includes/media/ExifTest.php
index e4a7bda0a687..0181e0b80ea8 100644
--- a/tests/phpunit/includes/media/ExifTest.php
+++ b/tests/phpunit/includes/media/ExifTest.php
@@ -4,7 +4,7 @@ use MediaWiki\MainConfigNames;
/**
* @group Media
- * @covers Exif
+ * @covers \Exif
* @requires extension exif
*/
class ExifTest extends MediaWikiIntegrationTestCase {
diff --git a/tests/phpunit/includes/media/FormatMetadataTest.php b/tests/phpunit/includes/media/FormatMetadataTest.php
index 9dea1b1b8c50..eb8b710116c9 100644
--- a/tests/phpunit/includes/media/FormatMetadataTest.php
+++ b/tests/phpunit/includes/media/FormatMetadataTest.php
@@ -19,7 +19,7 @@ class FormatMetadataTest extends MediaWikiMediaTestCase {
}
/**
- * @covers File::formatMetadata
+ * @covers \File::formatMetadata
*/
public function testInvalidDate() {
$file = $this->dataFile( 'broken_exif_date.jpg', 'image/jpeg' );
@@ -44,7 +44,7 @@ class FormatMetadataTest extends MediaWikiMediaTestCase {
/**
* @dataProvider provideResolveMultivalueValue
- * @covers FormatMetadata::resolveMultivalueValue
+ * @covers \FormatMetadata::resolveMultivalueValue
*/
public function testResolveMultivalueValue( $input, $output ) {
$formatMetadata = new FormatMetadata();
@@ -102,7 +102,7 @@ class FormatMetadataTest extends MediaWikiMediaTestCase {
/**
* @dataProvider provideGetFormattedData
- * @covers FormatMetadata::getFormattedData
+ * @covers \FormatMetadata::getFormattedData
*/
public function testGetFormattedData( $input, $output ) {
$this->assertEquals( $output, FormatMetadata::getFormattedData( $input ) );
@@ -145,7 +145,7 @@ class FormatMetadataTest extends MediaWikiMediaTestCase {
}
/**
- * @covers FormatMetadata::getPriorityLanguages
+ * @covers \FormatMetadata::getPriorityLanguages
* @dataProvider provideGetPriorityLanguagesData
* @param string $languageClass
* @param string[] $expected
diff --git a/tests/phpunit/includes/media/GIFHandlerTest.php b/tests/phpunit/includes/media/GIFHandlerTest.php
index 0549f4353e4b..56ee77a6a0e4 100644
--- a/tests/phpunit/includes/media/GIFHandlerTest.php
+++ b/tests/phpunit/includes/media/GIFHandlerTest.php
@@ -22,7 +22,7 @@ class GIFHandlerTest extends MediaWikiMediaTestCase {
}
/**
- * @covers GIFHandler::getSizeAndMetadata
+ * @covers \GIFHandler::getSizeAndMetadata
*/
public function testInvalidFile() {
$res = $this->handler->getSizeAndMetadata( null, $this->filePath . '/README' );
@@ -33,7 +33,7 @@ class GIFHandlerTest extends MediaWikiMediaTestCase {
* @param string $filename Basename of the file to check
* @param bool $expected Expected result.
* @dataProvider provideIsAnimated
- * @covers GIFHandler::isAnimatedImage
+ * @covers \GIFHandler::isAnimatedImage
*/
public function testIsAnimated( $filename, $expected ) {
$file = $this->dataFile( $filename, 'image/gif' );
@@ -52,7 +52,7 @@ class GIFHandlerTest extends MediaWikiMediaTestCase {
* @param string $filename
* @param int $expected Total image area
* @dataProvider provideGetImageArea
- * @covers GIFHandler::getImageArea
+ * @covers \GIFHandler::getImageArea
*/
public function testGetImageArea( $filename, $expected ) {
$file = $this->dataFile( $filename, 'image/gif' );
@@ -71,7 +71,7 @@ class GIFHandlerTest extends MediaWikiMediaTestCase {
* @param string $metadata Serialized metadata
* @param int $expected One of the class constants of GIFHandler
* @dataProvider provideIsFileMetadataValid
- * @covers GIFHandler::isFileMetadataValid
+ * @covers \GIFHandler::isFileMetadataValid
*/
public function testIsFileMetadataValid( $metadata, $expected ) {
$file = $this->getMockFileWithMetadata( $metadata );
@@ -97,7 +97,7 @@ class GIFHandlerTest extends MediaWikiMediaTestCase {
* @param string $filename
* @param array $expected Unserialized metadata
* @dataProvider provideGetSizeAndMetadata
- * @covers GIFHandler::getSizeAndMetadata
+ * @covers \GIFHandler::getSizeAndMetadata
*/
public function testGetSizeAndMetadata( $filename, $expected ) {
$file = $this->dataFile( $filename, 'image/gif' );
@@ -158,7 +158,7 @@ class GIFHandlerTest extends MediaWikiMediaTestCase {
* @param string $filename
* @param string $expected Serialized array
* @dataProvider provideGetIndependentMetaArray
- * @covers GIFHandler::getCommonMetaArray
+ * @covers \GIFHandler::getCommonMetaArray
*/
public function testGetIndependentMetaArray( $filename, $expected ) {
$file = $this->dataFile( $filename, 'image/gif' );
@@ -194,7 +194,7 @@ class GIFHandlerTest extends MediaWikiMediaTestCase {
* @param string $filename
* @param float $expectedLength
* @dataProvider provideGetLength
- * @covers GIFHandler::getLength
+ * @covers \GIFHandler::getLength
*/
public function testGetLength( $filename, $expectedLength ) {
$file = $this->dataFile( $filename, 'image/gif' );
diff --git a/tests/phpunit/includes/media/Jpeg2000HandlerTest.php b/tests/phpunit/includes/media/Jpeg2000HandlerTest.php
index 5d29d76ae28c..4c790847c567 100644
--- a/tests/phpunit/includes/media/Jpeg2000HandlerTest.php
+++ b/tests/phpunit/includes/media/Jpeg2000HandlerTest.php
@@ -1,7 +1,7 @@
<?php
/**
- * @covers Jpeg2000Handler
+ * @covers \Jpeg2000Handler
*/
class Jpeg2000HandlerTest extends MediaWikiIntegrationTestCase {
diff --git a/tests/phpunit/includes/media/JpegMetadataExtractorTest.php b/tests/phpunit/includes/media/JpegMetadataExtractorTest.php
index e6405e862a44..38c9fd659a07 100644
--- a/tests/phpunit/includes/media/JpegMetadataExtractorTest.php
+++ b/tests/phpunit/includes/media/JpegMetadataExtractorTest.php
@@ -7,7 +7,7 @@
* solely on reading the standard, without any real world test files.
*
* @group Media
- * @covers JpegMetadataExtractor
+ * @covers \JpegMetadataExtractor
*/
class JpegMetadataExtractorTest extends MediaWikiIntegrationTestCase {
diff --git a/tests/phpunit/includes/media/JpegPixelFormatTest.php b/tests/phpunit/includes/media/JpegPixelFormatTest.php
index 81133797dacf..2541b3efbe45 100644
--- a/tests/phpunit/includes/media/JpegPixelFormatTest.php
+++ b/tests/phpunit/includes/media/JpegPixelFormatTest.php
@@ -21,7 +21,7 @@ class JpegPixelFormatTest extends MediaWikiMediaTestCase {
/**
* @dataProvider providePixelFormats
- * @covers BitmapHandler::imageMagickSubsampling
+ * @covers \BitmapHandler::imageMagickSubsampling
*/
public function testPixelFormatRendering( $sourceFile, $pixelFormat, $samplingFactor ) {
global $wgUseImageMagick, $wgUseImageResize;
diff --git a/tests/phpunit/includes/media/JpegTest.php b/tests/phpunit/includes/media/JpegTest.php
index 2eccd8b45dc8..422e81007bd5 100644
--- a/tests/phpunit/includes/media/JpegTest.php
+++ b/tests/phpunit/includes/media/JpegTest.php
@@ -4,7 +4,7 @@ use MediaWiki\MainConfigNames;
/**
* @group Media
- * @covers JpegHandler
+ * @covers \JpegHandler
* @requires extension exif
*/
class JpegTest extends MediaWikiMediaTestCase {
@@ -45,7 +45,7 @@ class JpegTest extends MediaWikiMediaTestCase {
}
/**
- * @covers JpegHandler::getCommonMetaArray
+ * @covers \JpegHandler::getCommonMetaArray
*/
public function testGetIndependentMetaArray() {
$file = $this->dataFile( 'test.jpg', 'image/jpeg' );
@@ -66,7 +66,7 @@ class JpegTest extends MediaWikiMediaTestCase {
/**
* @dataProvider provideSwappingICCProfile
- * @covers JpegHandler::swapICCProfile
+ * @covers \JpegHandler::swapICCProfile
*/
public function testSwappingICCProfile(
$sourceFilename, $controlFilename, $newProfileFilename, $oldProfileName
diff --git a/tests/phpunit/includes/media/MediaHandlerIntegrationTest.php b/tests/phpunit/includes/media/MediaHandlerIntegrationTest.php
index 274d0b86bccf..7fb331baa66c 100644
--- a/tests/phpunit/includes/media/MediaHandlerIntegrationTest.php
+++ b/tests/phpunit/includes/media/MediaHandlerIntegrationTest.php
@@ -8,8 +8,8 @@ use MediaWiki\MainConfigNames;
class MediaHandlerIntegrationTest extends MediaWikiMediaTestCase {
/**
- * @covers MediaHandler::formatTag
- * @covers MediaHandler::formatMetadataHelper
+ * @covers \MediaHandler::formatTag
+ * @covers \MediaHandler::formatMetadataHelper
*/
public function testFormatMetadataHelper() {
$this->overrideConfigValue( MainConfigNames::LanguageCode, 'en' );
diff --git a/tests/phpunit/includes/media/PNGHandlerTest.php b/tests/phpunit/includes/media/PNGHandlerTest.php
index 2d30c539644f..6e6b20b9526e 100644
--- a/tests/phpunit/includes/media/PNGHandlerTest.php
+++ b/tests/phpunit/includes/media/PNGHandlerTest.php
@@ -22,7 +22,7 @@ class PNGHandlerTest extends MediaWikiMediaTestCase {
}
/**
- * @covers PNGHandler::getSizeAndMetadata
+ * @covers \PNGHandler::getSizeAndMetadata
*/
public function testInvalidFile() {
$res = $this->handler->getSizeAndMetadata( null, $this->filePath . '/README' );
@@ -37,7 +37,7 @@ class PNGHandlerTest extends MediaWikiMediaTestCase {
* @param string $filename Basename of the file to check
* @param bool $expected Expected result.
* @dataProvider provideIsAnimated
- * @covers PNGHandler::isAnimatedImage
+ * @covers \PNGHandler::isAnimatedImage
*/
public function testIsAnimanted( $filename, $expected ) {
$file = $this->dataFile( $filename, 'image/png' );
@@ -56,7 +56,7 @@ class PNGHandlerTest extends MediaWikiMediaTestCase {
* @param string $filename
* @param int $expected Total image area
* @dataProvider provideGetImageArea
- * @covers PNGHandler::getImageArea
+ * @covers \PNGHandler::getImageArea
*/
public function testGetImageArea( $filename, $expected ) {
$file = $this->dataFile( $filename, 'image/png' );
@@ -77,7 +77,7 @@ class PNGHandlerTest extends MediaWikiMediaTestCase {
* @param string $metadata Serialized metadata
* @param int $expected One of the class constants of PNGHandler
* @dataProvider provideIsMetadataValid
- * @covers PNGHandler::isFileMetadataValid
+ * @covers \PNGHandler::isFileMetadataValid
*/
public function testIsFileMetadataValid( $metadata, $expected ) {
$actual = $this->handler->isFileMetadataValid( $this->getMockFileWithMetadata( $metadata ) );
@@ -102,7 +102,7 @@ class PNGHandlerTest extends MediaWikiMediaTestCase {
* @param string $filename
* @param string $expected Serialized array
* @dataProvider provideGetSizeAndMetadata
- * @covers PNGHandler::getSizeAndMetadata
+ * @covers \PNGHandler::getSizeAndMetadata
*/
public function testGetSizeAndMetadata( $filename, $expected ) {
$file = $this->dataFile( $filename, 'image/png' );
@@ -156,7 +156,7 @@ class PNGHandlerTest extends MediaWikiMediaTestCase {
* @param string $filename
* @param array $expected Expected standard metadata
* @dataProvider provideGetIndependentMetaArray
- * @covers PNGHandler::getCommonMetaArray
+ * @covers \PNGHandler::getCommonMetaArray
*/
public function testGetIndependentMetaArray( $filename, $expected ) {
$file = $this->dataFile( $filename, 'image/png' );
@@ -179,7 +179,7 @@ class PNGHandlerTest extends MediaWikiMediaTestCase {
* @param string $filename
* @param float $expectedLength
* @dataProvider provideGetLength
- * @covers PNGHandler::getLength
+ * @covers \PNGHandler::getLength
*/
public function testGetLength( $filename, $expectedLength ) {
$file = $this->dataFile( $filename, 'image/png' );
diff --git a/tests/phpunit/includes/media/PNGMetadataExtractorTest.php b/tests/phpunit/includes/media/PNGMetadataExtractorTest.php
index 59505e935f0a..57f0c7786a9a 100644
--- a/tests/phpunit/includes/media/PNGMetadataExtractorTest.php
+++ b/tests/phpunit/includes/media/PNGMetadataExtractorTest.php
@@ -2,7 +2,7 @@
/**
* @group Media
- * @covers PNGMetadataExtractor
+ * @covers \PNGMetadataExtractor
*/
class PNGMetadataExtractorTest extends MediaWikiIntegrationTestCase {
diff --git a/tests/phpunit/includes/media/SVGReaderTest.php b/tests/phpunit/includes/media/SVGReaderTest.php
index 991740baee05..86a755de4c20 100644
--- a/tests/phpunit/includes/media/SVGReaderTest.php
+++ b/tests/phpunit/includes/media/SVGReaderTest.php
@@ -2,7 +2,7 @@
/**
* @group Media
- * @covers SVGReader
+ * @covers \SVGReader
*/
class SVGReaderTest extends \MediaWikiIntegrationTestCase {
diff --git a/tests/phpunit/includes/media/SvgHandlerTest.php b/tests/phpunit/includes/media/SvgHandlerTest.php
index 78b4359cf476..0390a805b911 100644
--- a/tests/phpunit/includes/media/SvgHandlerTest.php
+++ b/tests/phpunit/includes/media/SvgHandlerTest.php
@@ -38,7 +38,7 @@ class SvgHandlerTest extends MediaWikiMediaTestCase {
}
/**
- * @covers SvgHandler::getMatchedLanguage()
+ * @covers \SvgHandler::getMatchedLanguage()
* @dataProvider provideGetMatchedLanguage
*
* @param string $userPreferredLanguage
@@ -200,7 +200,7 @@ class SvgHandlerTest extends MediaWikiMediaTestCase {
}
/**
- * @covers SvgHandler::normaliseParamsInternal()
+ * @covers \SvgHandler::normaliseParamsInternal()
* @dataProvider provideNormaliseParamsInternal
*/
public function testNormaliseParamsInternal( $message,
@@ -359,7 +359,7 @@ class SvgHandlerTest extends MediaWikiMediaTestCase {
}
/**
- * @covers SvgHandler::getLanguageFromParams()
+ * @covers \SvgHandler::getLanguageFromParams()
* @dataProvider provideGetLanguageFromParams
*
* @param array $params
@@ -384,7 +384,7 @@ class SvgHandlerTest extends MediaWikiMediaTestCase {
}
/**
- * @covers SvgHandler::parseParamString()
+ * @covers \SvgHandler::parseParamString()
* @dataProvider provideParseParamString
*
* @param string $paramString
@@ -423,7 +423,7 @@ class SvgHandlerTest extends MediaWikiMediaTestCase {
}
/**
- * @covers SvgHandler::allowRenderingByUserAgent()
+ * @covers \SvgHandler::allowRenderingByUserAgent()
* @dataProvider provideNativeSVGDataRendering
*
* @param string $filename of the file to test
diff --git a/tests/phpunit/includes/media/TiffTest.php b/tests/phpunit/includes/media/TiffTest.php
index dff46ed76ff7..30512ff45095 100644
--- a/tests/phpunit/includes/media/TiffTest.php
+++ b/tests/phpunit/includes/media/TiffTest.php
@@ -23,7 +23,7 @@ class TiffTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers TiffHandler::getSizeAndMetadata
+ * @covers \TiffHandler::getSizeAndMetadata
*/
public function testInvalidFile() {
$res = $this->handler->getSizeAndMetadata( null, $this->filePath . 'README' );
@@ -31,7 +31,7 @@ class TiffTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers TiffHandler::getSizeAndMetadata
+ * @covers \TiffHandler::getSizeAndMetadata
*/
public function testTiffMetadataExtraction() {
$res = $this->handler->getSizeAndMetadata( null, $this->filePath . 'test.tiff' );
diff --git a/tests/phpunit/includes/media/WebPHandlerTest.php b/tests/phpunit/includes/media/WebPHandlerTest.php
index 6bb63d6d1271..e692df4e4d0e 100644
--- a/tests/phpunit/includes/media/WebPHandlerTest.php
+++ b/tests/phpunit/includes/media/WebPHandlerTest.php
@@ -1,7 +1,7 @@
<?php
/**
- * @covers WebPHandler
+ * @covers \WebPHandler
*/
class WebPHandlerTest extends MediaWikiIntegrationTestCase {
diff --git a/tests/phpunit/includes/media/XCFHandlerTest.php b/tests/phpunit/includes/media/XCFHandlerTest.php
index 59565b72d97e..02aad5eccac1 100644
--- a/tests/phpunit/includes/media/XCFHandlerTest.php
+++ b/tests/phpunit/includes/media/XCFHandlerTest.php
@@ -17,7 +17,7 @@ class XCFHandlerTest extends MediaWikiMediaTestCase {
* @param string $filename
* @param array $expected
* @dataProvider provideGetSizeAndMetadata
- * @covers XCFHandler::getSizeAndMetadata
+ * @covers \XCFHandler::getSizeAndMetadata
*/
public function testGetSizeAndMetadata( $filename, $expected ) {
$file = $this->dataFile( $filename, 'image/x-xcf' );
@@ -67,7 +67,7 @@ class XCFHandlerTest extends MediaWikiMediaTestCase {
* @param string $metadata Serialized metadata
* @param int $expected One of the class constants of XCFHandler
* @dataProvider provideIsFileMetadataValid
- * @covers XCFHandler::isFileMetadataValid
+ * @covers \XCFHandler::isFileMetadataValid
*/
public function testIsFileMetadataValid( $metadata, $expected ) {
$actual = $this->handler->isFileMetadataValid( $this->getMockFileWithMetadata( $metadata ) );
diff --git a/tests/phpunit/includes/objectcache/ObjectCacheTest.php b/tests/phpunit/includes/objectcache/ObjectCacheTest.php
index eea4861a876e..29dcdb48cf28 100644
--- a/tests/phpunit/includes/objectcache/ObjectCacheTest.php
+++ b/tests/phpunit/includes/objectcache/ObjectCacheTest.php
@@ -3,7 +3,7 @@
use MediaWiki\MainConfigNames;
/**
- * @covers ObjectCache
+ * @covers \ObjectCache
* @group BagOStuff
* @group Database
*/
diff --git a/tests/phpunit/includes/objectcache/SqlBagOStuffIntegrationTest.php b/tests/phpunit/includes/objectcache/SqlBagOStuffIntegrationTest.php
index 5f71c1135531..b560304e3137 100644
--- a/tests/phpunit/includes/objectcache/SqlBagOStuffIntegrationTest.php
+++ b/tests/phpunit/includes/objectcache/SqlBagOStuffIntegrationTest.php
@@ -2,7 +2,7 @@
/**
* @group BagOStuff
- * @covers SqlBagOStuff
+ * @covers \SqlBagOStuff
*/
class SqlBagOStuffIntegrationTest extends BagOStuffTestBase {
protected function newCacheInstance() {
diff --git a/tests/phpunit/includes/objectcache/SqlBagOStuffMultiPrimaryIntegrationTest.php b/tests/phpunit/includes/objectcache/SqlBagOStuffMultiPrimaryIntegrationTest.php
index 455c93211d95..972567fb782f 100644
--- a/tests/phpunit/includes/objectcache/SqlBagOStuffMultiPrimaryIntegrationTest.php
+++ b/tests/phpunit/includes/objectcache/SqlBagOStuffMultiPrimaryIntegrationTest.php
@@ -3,7 +3,7 @@
/**
* @group BagOStuff
* @group Database
- * @covers SqlBagOStuff
+ * @covers \SqlBagOStuff
*/
class SqlBagOStuffMultiPrimaryIntegrationTest extends BagOStuffTestBase {
protected function newCacheInstance() {
diff --git a/tests/phpunit/includes/objectcache/SqlBagOStuffServerArrayTest.php b/tests/phpunit/includes/objectcache/SqlBagOStuffServerArrayTest.php
index 4aca6dc47c0a..21b6ea66733e 100644
--- a/tests/phpunit/includes/objectcache/SqlBagOStuffServerArrayTest.php
+++ b/tests/phpunit/includes/objectcache/SqlBagOStuffServerArrayTest.php
@@ -6,7 +6,7 @@ use Wikimedia\TestingAccessWrapper;
/**
* @group BagOStuff
* @group Database
- * @covers SqlBagOStuff
+ * @covers \SqlBagOStuff
*/
class SqlBagOStuffServerArrayTest extends BagOStuffTestBase {
protected function newCacheInstance() {
diff --git a/tests/phpunit/includes/page/ArticleTablesTest.php b/tests/phpunit/includes/page/ArticleTablesTest.php
index 2a5288f0372d..adc065198def 100644
--- a/tests/phpunit/includes/page/ArticleTablesTest.php
+++ b/tests/phpunit/includes/page/ArticleTablesTest.php
@@ -13,8 +13,8 @@ class ArticleTablesTest extends MediaWikiLangTestCase {
* templatelinks based on the user language when {{int:}} is used, only the
* content language.
*
- * @covers MediaWiki\Title\Title::getTemplateLinksFrom
- * @covers MediaWiki\Title\Title::getLinksFrom
+ * @covers \MediaWiki\Title\Title::getTemplateLinksFrom
+ * @covers \MediaWiki\Title\Title::getLinksFrom
*/
public function testTemplatelinksUsesContentLanguage() {
$title = Title::makeTitle( NS_MAIN, 'T16404' );
diff --git a/tests/phpunit/includes/page/ArticleTest.php b/tests/phpunit/includes/page/ArticleTest.php
index 9d3a8dc5375a..e1e47f25118b 100644
--- a/tests/phpunit/includes/page/ArticleTest.php
+++ b/tests/phpunit/includes/page/ArticleTest.php
@@ -35,7 +35,7 @@ class ArticleTest extends \MediaWikiIntegrationTestCase {
}
/**
- * @covers Article::__sleep
+ * @covers \Article::__sleep
*/
public function testSerialization_fails() {
$article = new Article( Title::newMainPage() );
@@ -47,7 +47,7 @@ class ArticleTest extends \MediaWikiIntegrationTestCase {
/**
* Tests that missing article page shows parser contents
* of the well-known system message for NS_MEDIAWIKI pages
- * @covers Article::showMissingArticle
+ * @covers \Article::showMissingArticle
*/
public function testMissingArticleMessage() {
// Use a well-known system message
@@ -64,7 +64,7 @@ class ArticleTest extends \MediaWikiIntegrationTestCase {
/**
* Test if patrol footer is possible to show
- * @covers Article::showPatrolFooter
+ * @covers \Article::showPatrolFooter
* @dataProvider provideShowPatrolFooter
*/
public function testShowPatrolFooter( $group, $title, $editPageText, $isEditedBySameUser, $expectedResult ) {
@@ -118,7 +118,7 @@ class ArticleTest extends \MediaWikiIntegrationTestCase {
/**
* Show patrol footer even if the page was moved (T162871).
*
- * @covers Article::showPatrolFooter
+ * @covers \Article::showPatrolFooter
*/
public function testShowPatrolFooterMovedPage() {
$oldTitle = Title::makeTitle( NS_USER, 'NewDraft' );
@@ -143,7 +143,7 @@ class ArticleTest extends \MediaWikiIntegrationTestCase {
/**
* Ensure that content that is present in the parser cache will be used.
*
- * @covers Article::generateContentOutput
+ * @covers \Article::generateContentOutput
*/
public function testUsesCachedOutput() {
$title = $this->getExistingTestPage()->getTitle();
@@ -165,7 +165,7 @@ class ArticleTest extends \MediaWikiIntegrationTestCase {
/**
* Ensure that content that is present in the parser cache will be used.
*
- * @covers Article::generateContentOutput
+ * @covers \Article::generateContentOutput
*/
public function testOutputIsCached() {
$this->overrideConfigValue(
diff --git a/tests/phpunit/includes/page/ArticleViewTest.php b/tests/phpunit/includes/page/ArticleViewTest.php
index 925094b790be..5f7fefb29059 100644
--- a/tests/phpunit/includes/page/ArticleViewTest.php
+++ b/tests/phpunit/includes/page/ArticleViewTest.php
@@ -75,8 +75,8 @@ class ArticleViewTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers Article::getOldId()
- * @covers Article::getRevIdFetched()
+ * @covers \Article::getOldId()
+ * @covers \Article::getRevIdFetched()
*/
public function testGetOldId() {
$revisions = [];
@@ -149,8 +149,8 @@ class ArticleViewTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers Article::getPage
- * @covers WikiPage::getRedirectTarget
+ * @covers \Article::getPage
+ * @covers \WikiPage::getRedirectTarget
* @covers \MediaWiki\Page\RedirectLookup::getRedirectTarget
*/
public function testViewRedirect() {
diff --git a/tests/phpunit/includes/page/ImagePage404Test.php b/tests/phpunit/includes/page/ImagePage404Test.php
index ac77314c021d..46610bb338a9 100644
--- a/tests/phpunit/includes/page/ImagePage404Test.php
+++ b/tests/phpunit/includes/page/ImagePage404Test.php
@@ -35,7 +35,7 @@ class ImagePage404Test extends MediaWikiMediaTestCase {
}
/**
- * @covers ImagePage::getThumbSizes
+ * @covers \ImagePage::getThumbSizes
* @dataProvider providerGetThumbSizes
* @param string $filename
* @param int $expectedNumberThumbs How many thumbnails to show
diff --git a/tests/phpunit/includes/page/ImagePageTest.php b/tests/phpunit/includes/page/ImagePageTest.php
index 40bebbdded6b..76f1e9d63f08 100644
--- a/tests/phpunit/includes/page/ImagePageTest.php
+++ b/tests/phpunit/includes/page/ImagePageTest.php
@@ -31,7 +31,7 @@ class ImagePageTest extends MediaWikiMediaTestCase {
}
/**
- * @covers ImagePage::getThumbSizes
+ * @covers \ImagePage::getThumbSizes
* @dataProvider providerGetThumbSizes
* @param string $filename
* @param int $expectedNumberThumbs How many thumbnails to show
@@ -56,7 +56,7 @@ class ImagePageTest extends MediaWikiMediaTestCase {
}
/**
- * @covers ImagePage::getLanguageForRendering()
+ * @covers \ImagePage::getLanguageForRendering()
* @dataProvider provideGetLanguageForRendering
*
* @param string|null $expected Expected IETF language code
diff --git a/tests/phpunit/includes/page/MergeHistoryTest.php b/tests/phpunit/includes/page/MergeHistoryTest.php
index 1e7c00f5729d..21be0525ac9d 100644
--- a/tests/phpunit/includes/page/MergeHistoryTest.php
+++ b/tests/phpunit/includes/page/MergeHistoryTest.php
@@ -35,7 +35,7 @@ class MergeHistoryTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider provideIsValidMerge
- * @covers MediaWiki\Page\MergeHistory::isValidMerge
+ * @covers \MediaWiki\Page\MergeHistory::isValidMerge
* @param string $source Source page
* @param string $dest Destination page
* @param string|bool $timestamp Timestamp up to which revisions are merged (or false for all)
@@ -82,7 +82,7 @@ class MergeHistoryTest extends MediaWikiIntegrationTestCase {
/**
* Test merge revision limit checking
- * @covers MediaWiki\Page\MergeHistory::isValidMerge
+ * @covers \MediaWiki\Page\MergeHistory::isValidMerge
*/
public function testIsValidMergeRevisionLimit() {
$limit = MergeHistory::REVISION_LIMIT;
@@ -117,8 +117,8 @@ class MergeHistoryTest extends MediaWikiIntegrationTestCase {
/**
* Test user permission checking
- * @covers MediaWiki\Page\MergeHistory::authorizeMerge
- * @covers MediaWiki\Page\MergeHistory::probablyCanMerge
+ * @covers \MediaWiki\Page\MergeHistory::authorizeMerge
+ * @covers \MediaWiki\Page\MergeHistory::probablyCanMerge
*/
public function testCheckPermissions() {
$factory = $this->getServiceContainer()->getMergeHistoryFactory();
@@ -145,7 +145,7 @@ class MergeHistoryTest extends MediaWikiIntegrationTestCase {
/**
* Test merged revision count
- * @covers MediaWiki\Page\MergeHistory::getMergedRevisionCount
+ * @covers \MediaWiki\Page\MergeHistory::getMergedRevisionCount
*/
public function testGetMergedRevisionCount() {
$factory = $this->getServiceContainer()->getMergeHistoryFactory();
@@ -163,7 +163,7 @@ class MergeHistoryTest extends MediaWikiIntegrationTestCase {
* Test update to source page for pages with
* content model that supports redirects
*
- * @covers MediaWiki\Page\MergeHistory::merge
+ * @covers \MediaWiki\Page\MergeHistory::merge
*/
public function testSourceUpdateWithRedirectSupport() {
$title = Title::makeTitle( NS_MAIN, 'Merge5' );
@@ -184,7 +184,7 @@ class MergeHistoryTest extends MediaWikiIntegrationTestCase {
* Test update to source page for pages with
* content model that does not support redirects
*
- * @covers MediaWiki\Page\MergeHistory::merge
+ * @covers \MediaWiki\Page\MergeHistory::merge
*/
public function testSourceUpdateForNoRedirectSupport() {
$this->overrideConfigValues( [
@@ -221,7 +221,7 @@ class MergeHistoryTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Page\MergeHistory::initTimestampLimits
+ * @covers \MediaWiki\Page\MergeHistory::initTimestampLimits
*/
public function testSplitTimestamp() {
// Create the source page with two revisions with the same timestamp
diff --git a/tests/phpunit/includes/page/MovePageTest.php b/tests/phpunit/includes/page/MovePageTest.php
index c068c6790f16..ce5494bb21bf 100644
--- a/tests/phpunit/includes/page/MovePageTest.php
+++ b/tests/phpunit/includes/page/MovePageTest.php
@@ -15,7 +15,7 @@ use Wikimedia\Rdbms\IConnectionProvider;
use Wikimedia\Rdbms\IDatabase;
/**
- * @covers MediaWiki\Page\MovePage
+ * @covers \MediaWiki\Page\MovePage
* @group Database
*/
class MovePageTest extends MediaWikiIntegrationTestCase {
@@ -108,10 +108,10 @@ class MovePageTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider provideIsValidMove
- * @covers MediaWiki\Page\MovePage::isValidMove
- * @covers MediaWiki\Page\MovePage::isValidMoveTarget
- * @covers MediaWiki\Page\MovePage::isValidFileMove
- * @covers MediaWiki\Page\MovePage::__construct
+ * @covers \MediaWiki\Page\MovePage::isValidMove
+ * @covers \MediaWiki\Page\MovePage::isValidMoveTarget
+ * @covers \MediaWiki\Page\MovePage::isValidFileMove
+ * @covers \MediaWiki\Page\MovePage::__construct
*
* @param string|Title $old
* @param string|Title $new
@@ -320,7 +320,7 @@ class MovePageTest extends MediaWikiIntegrationTestCase {
/**
* Test for the move operation being aborted via the TitleMove hook
- * @covers MediaWiki\Page\MovePage::move
+ * @covers \MediaWiki\Page\MovePage::move
*/
public function testMoveAbortedByTitleMoveHook() {
$error = 'Preventing move operation with TitleMove hook.';
@@ -347,7 +347,7 @@ class MovePageTest extends MediaWikiIntegrationTestCase {
/**
* Test moving subpages from one page to another
- * @covers MediaWiki\Page\MovePage::moveSubpages
+ * @covers \MediaWiki\Page\MovePage::moveSubpages
*/
public function testMoveSubpages() {
$name = ucfirst( __FUNCTION__ );
@@ -380,7 +380,7 @@ class MovePageTest extends MediaWikiIntegrationTestCase {
/**
* Test moving subpages from one page to another
- * @covers MediaWiki\Page\MovePage::moveSubpagesIfAllowed
+ * @covers \MediaWiki\Page\MovePage::moveSubpagesIfAllowed
*/
public function testMoveSubpagesIfAllowed() {
$name = ucfirst( __FUNCTION__ );
@@ -458,7 +458,7 @@ class MovePageTest extends MediaWikiIntegrationTestCase {
/**
* Test redirect handling
*
- * @covers MediaWiki\Page\MovePage::isValidMove
+ * @covers \MediaWiki\Page\MovePage::isValidMove
*/
public function testRedirects() {
$this->editPage( 'ExistentRedirect', '#REDIRECT [[Existent]]' );
diff --git a/tests/phpunit/includes/page/PageArchiveTest.php b/tests/phpunit/includes/page/PageArchiveTest.php
index f38c38cb02fa..65f443e930f5 100644
--- a/tests/phpunit/includes/page/PageArchiveTest.php
+++ b/tests/phpunit/includes/page/PageArchiveTest.php
@@ -83,7 +83,7 @@ class PageArchiveTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers PageArchive::undeleteAsUser
+ * @covers \PageArchive::undeleteAsUser
*/
public function testUndeleteRevisions() {
// TODO: MCR: Test undeletion with multiple slots. Check that slots remain untouched.
@@ -181,9 +181,9 @@ class PageArchiveTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers PageArchive::listPagesBySearch
- * @covers PageArchive::listPagesByPrefix
- * @covers PageArchive::listPages
+ * @covers \PageArchive::listPagesBySearch
+ * @covers \PageArchive::listPagesByPrefix
+ * @covers \PageArchive::listPages
*/
public function testListPagesBySearch() {
$pages = PageArchive::listPagesBySearch( 'PageArchiveTest_thePage' );
@@ -202,8 +202,8 @@ class PageArchiveTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers PageArchive::listPagesByPrefix
- * @covers PageArchive::listPages
+ * @covers \PageArchive::listPagesByPrefix
+ * @covers \PageArchive::listPages
*/
public function testListPagesByPrefix() {
$pages = PageArchive::listPagesByPrefix( 'PageArchiveTest' );
diff --git a/tests/phpunit/includes/page/WikiCategoryPageTest.php b/tests/phpunit/includes/page/WikiCategoryPageTest.php
index 4c81b1a95f83..4dee15e288c1 100644
--- a/tests/phpunit/includes/page/WikiCategoryPageTest.php
+++ b/tests/phpunit/includes/page/WikiCategoryPageTest.php
@@ -6,7 +6,7 @@ use MediaWiki\Title\Title;
class WikiCategoryPageTest extends MediaWikiLangTestCase {
/**
- * @covers WikiCategoryPage::isHidden
+ * @covers \WikiCategoryPage::isHidden
*/
public function testHiddenCategory_PropertyNotSet() {
$title = Title::makeTitle( NS_CATEGORY, 'CategoryPage' );
@@ -33,7 +33,7 @@ class WikiCategoryPageTest extends MediaWikiLangTestCase {
/**
* @dataProvider provideCategoryContent
- * @covers WikiCategoryPage::isHidden
+ * @covers \WikiCategoryPage::isHidden
*/
public function testHiddenCategory_PropertyIsSet( $isHidden ) {
$categoryPageID = 42;
@@ -53,7 +53,7 @@ class WikiCategoryPageTest extends MediaWikiLangTestCase {
}
/**
- * @covers WikiCategoryPage::isExpectedUnusedCategory
+ * @covers \WikiCategoryPage::isExpectedUnusedCategory
*/
public function testExpectUnusedCategory_PropertyNotSet() {
$title = Title::makeTitle( NS_CATEGORY, 'CategoryPage' );
@@ -73,7 +73,7 @@ class WikiCategoryPageTest extends MediaWikiLangTestCase {
/**
* @dataProvider provideCategoryContent
- * @covers WikiCategoryPage::isExpectedUnusedCategory
+ * @covers \WikiCategoryPage::isExpectedUnusedCategory
*/
public function testExpectUnusedCategory_PropertyIsSet( $isExpectedUnusedCategory ) {
$categoryPageID = 42;
diff --git a/tests/phpunit/includes/page/WikiFilePageTest.php b/tests/phpunit/includes/page/WikiFilePageTest.php
index bb80a6e3e411..e7b2d331594b 100644
--- a/tests/phpunit/includes/page/WikiFilePageTest.php
+++ b/tests/phpunit/includes/page/WikiFilePageTest.php
@@ -4,7 +4,7 @@ use MediaWiki\Linker\LinkTarget;
use MediaWiki\Title\Title;
/**
- * @covers WikiFilePage
+ * @covers \WikiFilePage
* @group Database
*/
class WikiFilePageTest extends MediaWikiLangTestCase {
diff --git a/tests/phpunit/includes/page/WikiPageDbTest.php b/tests/phpunit/includes/page/WikiPageDbTest.php
index 3af355d69012..f234fdb42263 100644
--- a/tests/phpunit/includes/page/WikiPageDbTest.php
+++ b/tests/phpunit/includes/page/WikiPageDbTest.php
@@ -20,7 +20,7 @@ use PHPUnit\Framework\Assert;
use Wikimedia\TestingAccessWrapper;
/**
- * @covers WikiPage
+ * @covers \WikiPage
* @group Database
*/
class WikiPageDbTest extends MediaWikiLangTestCase {
@@ -651,7 +651,7 @@ class WikiPageDbTest extends MediaWikiLangTestCase {
/**
* @dataProvider provideGetRedirectTarget
- * @covers WikiPage
+ * @covers \WikiPage
* @covers \MediaWiki\Page\RedirectStore
*/
public function testGetRedirectTarget( $title, $model, $text, $target ) {
diff --git a/tests/phpunit/includes/parser/CacheTimeTest.php b/tests/phpunit/includes/parser/CacheTimeTest.php
index af87ff326962..755408411c1c 100644
--- a/tests/phpunit/includes/parser/CacheTimeTest.php
+++ b/tests/phpunit/includes/parser/CacheTimeTest.php
@@ -10,7 +10,7 @@ use ParserOptions;
use Wikimedia\Tests\SerializationTestTrait;
/**
- * @covers CacheTime
+ * @covers \CacheTime
* @package MediaWiki\Tests\Parser
*/
class CacheTimeTest extends MediaWikiIntegrationTestCase {
diff --git a/tests/phpunit/includes/parser/CoreParserFunctionsTest.php b/tests/phpunit/includes/parser/CoreParserFunctionsTest.php
index 053f8a95ac2c..aceebb46297b 100644
--- a/tests/phpunit/includes/parser/CoreParserFunctionsTest.php
+++ b/tests/phpunit/includes/parser/CoreParserFunctionsTest.php
@@ -5,7 +5,7 @@ use MediaWiki\User\User;
/**
* @group Database
- * @covers CoreParserFunctions
+ * @covers \CoreParserFunctions
*/
class CoreParserFunctionsTest extends MediaWikiLangTestCase {
diff --git a/tests/phpunit/includes/parser/ExtraParserTest.php b/tests/phpunit/includes/parser/ExtraParserTest.php
index 958c7e497d2c..b49c1c6ede17 100644
--- a/tests/phpunit/includes/parser/ExtraParserTest.php
+++ b/tests/phpunit/includes/parser/ExtraParserTest.php
@@ -45,7 +45,7 @@ class ExtraParserTest extends MediaWikiIntegrationTestCase {
/**
* @see T10689
- * @covers Parser::parse
+ * @covers \Parser::parse
*/
public function testLongNumericLinesDontKillTheParser() {
$longLine = '1.' . str_repeat( '1234567890', 100000 ) . "\n";
@@ -57,7 +57,7 @@ class ExtraParserTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers Parser::braceSubstitution
+ * @covers \Parser::braceSubstitution
* @covers \MediaWiki\SpecialPage\SpecialPageFactory::capturePath
*/
public function testSpecialPageTransclusionRestoresGlobalState() {
@@ -73,7 +73,7 @@ class ExtraParserTest extends MediaWikiIntegrationTestCase {
/**
* Test the parser entry points
- * @covers Parser::parse
+ * @covers \Parser::parse
*/
public function testParse() {
$title = Title::newFromText( __FUNCTION__ );
@@ -85,7 +85,7 @@ class ExtraParserTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers Parser::preSaveTransform
+ * @covers \Parser::preSaveTransform
*/
public function testPreSaveTransform() {
$title = Title::newFromText( __FUNCTION__ );
@@ -108,7 +108,7 @@ class ExtraParserTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers Parser::preprocess
+ * @covers \Parser::preprocess
*/
public function testPreprocess() {
$title = Title::newFromText( __FUNCTION__ );
@@ -122,7 +122,7 @@ class ExtraParserTest extends MediaWikiIntegrationTestCase {
/**
* cleanSig() makes all templates substs and removes tildes
- * @covers Parser::cleanSig
+ * @covers \Parser::cleanSig
*/
public function testCleanSig() {
$outputText = $this->parser->cleanSig( "{{Foo}} ~~~~" );
@@ -132,7 +132,7 @@ class ExtraParserTest extends MediaWikiIntegrationTestCase {
/**
* cleanSig() should do nothing if disabled
- * @covers Parser::cleanSig
+ * @covers \Parser::cleanSig
*/
public function testCleanSigDisabled() {
$this->overrideConfigValue( MainConfigNames::CleanSignatures, false );
@@ -145,7 +145,7 @@ class ExtraParserTest extends MediaWikiIntegrationTestCase {
/**
* cleanSigInSig() just removes tildes
* @dataProvider provideStringsForCleanSigInSig
- * @covers Parser::cleanSigInSig
+ * @covers \Parser::cleanSigInSig
*/
public function testCleanSigInSig( $in, $out ) {
$this->assertEquals( Parser::cleanSigInSig( $in ), $out );
@@ -160,7 +160,7 @@ class ExtraParserTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers Parser::getSection
+ * @covers \Parser::getSection
*/
public function testGetSection() {
$outputText2 = $this->parser->getSection(
@@ -179,7 +179,7 @@ class ExtraParserTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers Parser::replaceSection
+ * @covers \Parser::replaceSection
*/
public function testReplaceSection() {
$outputText = $this->parser->replaceSection(
@@ -194,7 +194,7 @@ class ExtraParserTest extends MediaWikiIntegrationTestCase {
/**
* Templates and comments are not affected, but noinclude/onlyinclude is.
- * @covers Parser::getPreloadText
+ * @covers \Parser::getPreloadText
*/
public function testGetPreloadText() {
$title = Title::newFromText( __FUNCTION__ );
@@ -224,7 +224,7 @@ class ExtraParserTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers Parser::parse
+ * @covers \Parser::parse
*/
public function testTrackingCategory() {
$title = Title::newFromText( __FUNCTION__ );
@@ -237,7 +237,7 @@ class ExtraParserTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers Parser::parse
+ * @covers \Parser::parse
*/
public function testTrackingCategorySpecial() {
// Special pages shouldn't have tracking cats.
@@ -248,7 +248,7 @@ class ExtraParserTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers Parser::parseLinkParameter
+ * @covers \Parser::parseLinkParameter
* @dataProvider provideParseLinkParameter
*/
public function testParseLinkParameter( $input, $expected, $expectedLinks, $desc ) {
diff --git a/tests/phpunit/includes/parser/LinkHolderArrayIntegrationTest.php b/tests/phpunit/includes/parser/LinkHolderArrayIntegrationTest.php
index e6bf34afaabe..4344ae3b6850 100644
--- a/tests/phpunit/includes/parser/LinkHolderArrayIntegrationTest.php
+++ b/tests/phpunit/includes/parser/LinkHolderArrayIntegrationTest.php
@@ -8,13 +8,13 @@ use MediaWiki\Title\Title;
use Wikimedia\TestingAccessWrapper;
/**
- * @covers LinkHolderArray
+ * @covers \LinkHolderArray
*/
class LinkHolderArrayIntegrationTest extends MediaWikiLangTestCase {
/**
* @dataProvider provideIsBig
- * @covers LinkHolderArray::isBig
+ * @covers \LinkHolderArray::isBig
*
* @param int $size
* @param int $global
@@ -43,7 +43,7 @@ class LinkHolderArrayIntegrationTest extends MediaWikiLangTestCase {
/**
* @dataProvider provideMakeHolder_withNsText
- * @covers LinkHolderArray::makeHolder
+ * @covers \LinkHolderArray::makeHolder
*
* @param bool $isExternal
* @param string $expected
diff --git a/tests/phpunit/includes/parser/MagicVariableTest.php b/tests/phpunit/includes/parser/MagicVariableTest.php
index f772a24847e5..17c182cd0c43 100644
--- a/tests/phpunit/includes/parser/MagicVariableTest.php
+++ b/tests/phpunit/includes/parser/MagicVariableTest.php
@@ -20,7 +20,7 @@ use Wikimedia\TestingAccessWrapper;
/**
* @group Database
- * @covers Parser::expandMagicVariable
+ * @covers \Parser::expandMagicVariable
*/
class MagicVariableTest extends MediaWikiIntegrationTestCase {
/**
diff --git a/tests/phpunit/includes/parser/PageBundleJsonTraitTest.php b/tests/phpunit/includes/parser/PageBundleJsonTraitTest.php
index 55b9d88a01b7..bcf85e5a57f2 100644
--- a/tests/phpunit/includes/parser/PageBundleJsonTraitTest.php
+++ b/tests/phpunit/includes/parser/PageBundleJsonTraitTest.php
@@ -4,7 +4,7 @@ use MediaWiki\Parser\Parsoid\PageBundleJsonTrait;
use Wikimedia\Parsoid\Core\PageBundle;
/**
- * @covers MediaWiki\Parser\Parsoid\PageBundleJsonTrait
+ * @covers \MediaWiki\Parser\Parsoid\PageBundleJsonTrait
*/
class PageBundleJsonTraitTest extends MediaWikiIntegrationTestCase {
diff --git a/tests/phpunit/includes/parser/ParserCacheTest.php b/tests/phpunit/includes/parser/ParserCacheTest.php
index 74a99027aabf..b5939052f48e 100644
--- a/tests/phpunit/includes/parser/ParserCacheTest.php
+++ b/tests/phpunit/includes/parser/ParserCacheTest.php
@@ -32,7 +32,7 @@ use Wikimedia\UUID\GlobalIdGenerator;
use WikiPage;
/**
- * @covers ParserCache
+ * @covers \ParserCache
* @package MediaWiki\Tests\Parser
*/
class ParserCacheTest extends MediaWikiIntegrationTestCase {
@@ -136,7 +136,7 @@ class ParserCacheTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers ParserCache::getMetadata
+ * @covers \ParserCache::getMetadata
*/
public function testGetMetadataMissing() {
$cache = $this->createParserCache();
@@ -145,7 +145,7 @@ class ParserCacheTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers ParserCache::getMetadata
+ * @covers \ParserCache::getMetadata
*/
public function testGetMetadataAllGood() {
$cache = $this->createParserCache();
@@ -162,7 +162,7 @@ class ParserCacheTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers ParserCache::getMetadata
+ * @covers \ParserCache::getMetadata
*/
public function testGetMetadataExpired() {
$cache = $this->createParserCache();
@@ -180,7 +180,7 @@ class ParserCacheTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers ParserCache::getMetadata
+ * @covers \ParserCache::getMetadata
*/
public function testGetMetadataOutdated() {
$cache = $this->createParserCache();
@@ -198,7 +198,7 @@ class ParserCacheTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers ParserCache::makeParserOutputKey
+ * @covers \ParserCache::makeParserOutputKey
*/
public function testMakeParserOutputKey() {
$cache = $this->createParserCache();
@@ -217,7 +217,7 @@ class ParserCacheTest extends MediaWikiIntegrationTestCase {
/*
* Test that fetching without storing first returns false.
- * @covers ParserCache::get
+ * @covers \ParserCache::get
*/
public function testGetEmpty() {
$cache = $this->createParserCache();
@@ -228,8 +228,8 @@ class ParserCacheTest extends MediaWikiIntegrationTestCase {
/**
* Test that fetching with the same options return the saved value.
- * @covers ParserCache::get
- * @covers ParserCache::save
+ * @covers \ParserCache::get
+ * @covers \ParserCache::save
*/
public function testSaveGetSameOptions() {
$cache = $this->createParserCache();
@@ -249,8 +249,8 @@ class ParserCacheTest extends MediaWikiIntegrationTestCase {
/**
* Test that fetching with different unused option returns a value.
- * @covers ParserCache::get
- * @covers ParserCache::save
+ * @covers \ParserCache::get
+ * @covers \ParserCache::save
*/
public function testSaveGetDifferentUnusedOption() {
$cache = $this->createParserCache();
@@ -273,8 +273,8 @@ class ParserCacheTest extends MediaWikiIntegrationTestCase {
/**
* Test that non-cacheable output is not stored
- * @covers ParserCache::save
- * @covers ParserCache::get
+ * @covers \ParserCache::save
+ * @covers \ParserCache::get
*/
public function testDoesNotStoreNonCacheable() {
$cache = $this->createParserCache();
@@ -291,8 +291,8 @@ class ParserCacheTest extends MediaWikiIntegrationTestCase {
/**
* Test that ParserCacheFilter can be used to prevent content from being cached
- * @covers ParserCache::save
- * @covers ParserCache::get
+ * @covers \ParserCache::save
+ * @covers \ParserCache::get
*/
public function testDoesNotStoreFiltered() {
$cache = $this->createParserCache();
@@ -315,7 +315,7 @@ class ParserCacheTest extends MediaWikiIntegrationTestCase {
/**
* Test that ParserOptions::isSafeToCache is respected on save
- * @covers ParserCache::save
+ * @covers \ParserCache::save
*/
public function testDoesNotStoreNotSafeToCacheAndUsed() {
$cache = $this->createParserCache();
@@ -334,7 +334,7 @@ class ParserCacheTest extends MediaWikiIntegrationTestCase {
/**
* Test that ParserOptions::isSafeToCache is respected on get
- * @covers ParserCache::get
+ * @covers \ParserCache::get
*/
public function testDoesNotGetNotSafeToCache() {
$cache = $this->createParserCache();
@@ -353,8 +353,8 @@ class ParserCacheTest extends MediaWikiIntegrationTestCase {
/**
* Test that ParserOptions::isSafeToCache is respected on save
- * @covers ParserCache::save
- * @covers ParserCache::get
+ * @covers \ParserCache::save
+ * @covers \ParserCache::get
*/
public function testStoresNotSafeToCacheAndUnused() {
$cache = $this->createParserCache();
@@ -369,8 +369,8 @@ class ParserCacheTest extends MediaWikiIntegrationTestCase {
/**
* Test that fetching with different used option don't return a value.
- * @covers ParserCache::get
- * @covers ParserCache::save
+ * @covers \ParserCache::get
+ * @covers \ParserCache::save
*/
public function testSaveGetDifferentUsedOption() {
$cache = $this->createParserCache();
@@ -389,8 +389,8 @@ class ParserCacheTest extends MediaWikiIntegrationTestCase {
/**
* Test that output with expired metadata can be retrieved with getDirty
- * @covers ParserCache::getDirty
- * @covers ParserCache::get
+ * @covers \ParserCache::getDirty
+ * @covers \ParserCache::get
*/
public function testGetExpiredMetadata() {
$cache = $this->createParserCache();
@@ -410,8 +410,8 @@ class ParserCacheTest extends MediaWikiIntegrationTestCase {
/**
* Test that expired output with not expired metadata can be retrieved with getDirty
- * @covers ParserCache::getDirty
- * @covers ParserCache::get
+ * @covers \ParserCache::getDirty
+ * @covers \ParserCache::get
*/
public function testGetExpiredContent() {
$cache = $this->createParserCache();
@@ -441,8 +441,8 @@ class ParserCacheTest extends MediaWikiIntegrationTestCase {
/**
* Test that output with outdated metadata can be retrieved with getDirty
- * @covers ParserCache::getDirty
- * @covers ParserCache::get
+ * @covers \ParserCache::getDirty
+ * @covers \ParserCache::get
*/
public function testGetOutdatedMetadata() {
$cache = $this->createParserCache();
@@ -463,8 +463,8 @@ class ParserCacheTest extends MediaWikiIntegrationTestCase {
/**
* Test that outdated output with good metadata can be retrieved with getDirty
- * @covers ParserCache::getDirty
- * @covers ParserCache::get
+ * @covers \ParserCache::getDirty
+ * @covers \ParserCache::get
*/
public function testGetOutdatedContent() {
$cache = $this->createParserCache();
@@ -492,7 +492,7 @@ class ParserCacheTest extends MediaWikiIntegrationTestCase {
/**
* Test that fetching after deleting a key returns false.
- * @covers ParserCache::deleteOptionsKey
+ * @covers \ParserCache::deleteOptionsKey
*/
public function testDeleteOptionsKey() {
$cache = $this->createParserCache();
@@ -509,7 +509,7 @@ class ParserCacheTest extends MediaWikiIntegrationTestCase {
/**
* Test that RejectParserCacheValue hook can reject ParserOutput
- * @covers ParserCache::get
+ * @covers \ParserCache::get
*/
public function testRejectedByHook() {
$parserOutput = new ParserOutput( 'TEST_TEXT' );
@@ -539,7 +539,7 @@ class ParserCacheTest extends MediaWikiIntegrationTestCase {
/**
* Test that ParserCacheSaveComplete hook is run
- * @covers ParserCache::save
+ * @covers \ParserCache::save
*/
public function testParserCacheSaveCompleteHook() {
$parserOutput = new ParserOutput( 'TEST_TEXT' );
@@ -562,7 +562,7 @@ class ParserCacheTest extends MediaWikiIntegrationTestCase {
/**
* Tests that parser cache respects skipped if page does not exist
- * @covers ParserCache::get
+ * @covers \ParserCache::get
*/
public function testSkipIfNotExist() {
$mockPage = $this->createNoOpMock( PageRecord::class, [ 'exists', 'assertWiki' ] );
@@ -579,7 +579,7 @@ class ParserCacheTest extends MediaWikiIntegrationTestCase {
/**
* Tests that parser cache respects skipped if page is redirect
- * @covers ParserCache::get
+ * @covers \ParserCache::get
*/
public function testSkipIfRedirect() {
$cache = $this->createParserCache();
@@ -591,7 +591,7 @@ class ParserCacheTest extends MediaWikiIntegrationTestCase {
/**
* Tests that getCacheStorage returns underlying BagOStuff
- * @covers ParserCache::getCacheStorage
+ * @covers \ParserCache::getCacheStorage
*/
public function testGetCacheStorage() {
$storage = new EmptyBagOStuff();
@@ -600,7 +600,7 @@ class ParserCacheTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers ParserCache::save
+ * @covers \ParserCache::save
*/
public function testSaveNoText() {
$this->expectException( InvalidArgumentException::class );
@@ -626,8 +626,8 @@ class ParserCacheTest extends MediaWikiIntegrationTestCase {
* back to a version of the code that doesn't know about JSON.
*
* @dataProvider provideCorruptData
- * @covers ParserCache::get
- * @covers ParserCache::restoreFromJson
+ * @covers \ParserCache::get
+ * @covers \ParserCache::restoreFromJson
* @param string $data
*/
public function testCorruptData( string $data ) {
@@ -655,7 +655,7 @@ class ParserCacheTest extends MediaWikiIntegrationTestCase {
* We want to be sure that we don't crash horribly if we have to roll
* back to a version of the code that doesn't know about JSON.
*
- * @covers ParserCache::getMetadata
+ * @covers \ParserCache::getMetadata
*/
public function testCorruptMetadata() {
$cacheStorage = new HashBagOStuff();
@@ -682,7 +682,7 @@ class ParserCacheTest extends MediaWikiIntegrationTestCase {
* Test what happens when upgrading from 1.35 or earlier,
* when old cache entries do not yet use JSON.
*
- * @covers ParserCache::get
+ * @covers \ParserCache::get
*/
public function testMigrationToJson() {
$bagOStuff = new HashBagOStuff();
@@ -741,7 +741,7 @@ class ParserCacheTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers ParserCache::convertForCache
+ * @covers \ParserCache::convertForCache
*/
public function testNonSerializableJsonIsReported() {
$testLogger = new TestLogger( true );
@@ -757,7 +757,7 @@ class ParserCacheTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers ParserCache::convertForCache
+ * @covers \ParserCache::convertForCache
*/
public function testCyclicStructuresDoNotBlowUpInJson() {
$this->markTestSkipped( 'Temporarily disabled: T314338' );
@@ -778,7 +778,7 @@ class ParserCacheTest extends MediaWikiIntegrationTestCase {
/**
* Tests that unicode characters are not \u escaped
*
- * @covers ParserCache::convertForCache
+ * @covers \ParserCache::convertForCache
*/
public function testJsonEncodeUnicode() {
$unicodeCharacter = "Э";
diff --git a/tests/phpunit/includes/parser/ParserMethodsTest.php b/tests/phpunit/includes/parser/ParserMethodsTest.php
index af44496dd854..663251ba7b5f 100644
--- a/tests/phpunit/includes/parser/ParserMethodsTest.php
+++ b/tests/phpunit/includes/parser/ParserMethodsTest.php
@@ -13,8 +13,8 @@ use MediaWiki\User\UserIdentityValue;
/**
* @group Database
- * @covers Parser
- * @covers BlockLevelPass
+ * @covers \Parser
+ * @covers \BlockLevelPass
*/
class ParserMethodsTest extends MediaWikiLangTestCase {
use MockTitleTrait;
@@ -151,7 +151,7 @@ class ParserMethodsTest extends MediaWikiLangTestCase {
}
/**
- * @covers Parser
+ * @covers \Parser
* @covers \MediaWiki\Parser\ParserOutput::getSections
*/
public function testGetSections() {
diff --git a/tests/phpunit/includes/parser/ParserOptionsTest.php b/tests/phpunit/includes/parser/ParserOptionsTest.php
index 5ef58b55e0fe..3f8ead9ef465 100644
--- a/tests/phpunit/includes/parser/ParserOptionsTest.php
+++ b/tests/phpunit/includes/parser/ParserOptionsTest.php
@@ -11,7 +11,7 @@ use MediaWiki\User\UserIdentityValue;
use Wikimedia\ScopedCallback;
/**
- * @covers ParserOptions
+ * @covers \ParserOptions
* @group Database
*/
class ParserOptionsTest extends MediaWikiLangTestCase {
diff --git a/tests/phpunit/includes/parser/ParserOutputTest.php b/tests/phpunit/includes/parser/ParserOutputTest.php
index 5b179dabd8f1..d5f747cc37de 100644
--- a/tests/phpunit/includes/parser/ParserOutputTest.php
+++ b/tests/phpunit/includes/parser/ParserOutputTest.php
@@ -17,7 +17,7 @@ use Wikimedia\Tests\SerializationTestTrait;
/**
* @covers \MediaWiki\Parser\ParserOutput
- * @covers CacheTime
+ * @covers \CacheTime
* @group Database
* ^--- trigger DB shadowing because we are using Title magic
*/
diff --git a/tests/phpunit/includes/parser/ParserPreloadTest.php b/tests/phpunit/includes/parser/ParserPreloadTest.php
index b5e9e7df5c23..81fef9e7ed33 100644
--- a/tests/phpunit/includes/parser/ParserPreloadTest.php
+++ b/tests/phpunit/includes/parser/ParserPreloadTest.php
@@ -8,20 +8,20 @@ use MediaWiki\User\User;
* Basic tests for Parser::getPreloadText
* @author Antoine Musso
*
- * @covers Parser
- * @covers StripState
+ * @covers \Parser
+ * @covers \StripState
*
- * @covers Preprocessor_Hash
- * @covers PPDStack_Hash
- * @covers PPDStackElement_Hash
- * @covers PPDPart_Hash
- * @covers PPFrame_Hash
- * @covers PPTemplateFrame_Hash
- * @covers PPCustomFrame_Hash
- * @covers PPNode_Hash_Tree
- * @covers PPNode_Hash_Text
- * @covers PPNode_Hash_Array
- * @covers PPNode_Hash_Attr
+ * @covers \Preprocessor_Hash
+ * @covers \PPDStack_Hash
+ * @covers \PPDStackElement_Hash
+ * @covers \PPDPart_Hash
+ * @covers \PPFrame_Hash
+ * @covers \PPTemplateFrame_Hash
+ * @covers \PPCustomFrame_Hash
+ * @covers \PPNode_Hash_Tree
+ * @covers \PPNode_Hash_Text
+ * @covers \PPNode_Hash_Array
+ * @covers \PPNode_Hash_Attr
*/
class ParserPreloadTest extends MediaWikiIntegrationTestCase {
/**
diff --git a/tests/phpunit/includes/parser/ParserTest.php b/tests/phpunit/includes/parser/ParserTest.php
index 1bbd8410d93e..9de78d0f2060 100644
--- a/tests/phpunit/includes/parser/ParserTest.php
+++ b/tests/phpunit/includes/parser/ParserTest.php
@@ -19,7 +19,7 @@ use MediaWiki\User\UserNameUtils;
use MediaWiki\Utils\UrlUtils;
/**
- * @covers Parser::__construct
+ * @covers \Parser::__construct
*/
class ParserTest extends MediaWikiIntegrationTestCase {
/**
@@ -71,7 +71,7 @@ class ParserTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers Parser::__construct
+ * @covers \Parser::__construct
*/
public function testConstructorArguments() {
$args = $this->createConstructorArguments();
@@ -124,9 +124,9 @@ class ParserTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers Parser::setPage
- * @covers Parser::getPage
- * @covers Parser::getTitle
+ * @covers \Parser::setPage
+ * @covers \Parser::getPage
+ * @covers \Parser::getTitle
*/
public function testSetPage() {
$parser = $this->newParser();
@@ -139,9 +139,9 @@ class ParserTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers Parser::setPage
- * @covers Parser::getPage
- * @covers Parser::getTitle
+ * @covers \Parser::setPage
+ * @covers \Parser::getPage
+ * @covers \Parser::getTitle
*/
public function testSetTitle() {
$parser = $this->newParser();
diff --git a/tests/phpunit/includes/parser/PreprocessorTest.php b/tests/phpunit/includes/parser/PreprocessorTest.php
index d08011ce2b01..fd5dbc4f1bcd 100644
--- a/tests/phpunit/includes/parser/PreprocessorTest.php
+++ b/tests/phpunit/includes/parser/PreprocessorTest.php
@@ -4,19 +4,19 @@ use MediaWiki\Parser\Parser;
use MediaWiki\User\User;
/**
- * @covers Preprocessor
+ * @covers \Preprocessor
*
- * @covers Preprocessor_Hash
- * @covers PPDStack_Hash
- * @covers PPDStackElement_Hash
- * @covers PPDPart_Hash
- * @covers PPFrame_Hash
- * @covers PPTemplateFrame_Hash
- * @covers PPCustomFrame_Hash
- * @covers PPNode_Hash_Tree
- * @covers PPNode_Hash_Text
- * @covers PPNode_Hash_Array
- * @covers PPNode_Hash_Attr
+ * @covers \Preprocessor_Hash
+ * @covers \PPDStack_Hash
+ * @covers \PPDStackElement_Hash
+ * @covers \PPDPart_Hash
+ * @covers \PPFrame_Hash
+ * @covers \PPTemplateFrame_Hash
+ * @covers \PPCustomFrame_Hash
+ * @covers \PPNode_Hash_Tree
+ * @covers \PPNode_Hash_Text
+ * @covers \PPNode_Hash_Array
+ * @covers \PPNode_Hash_Attr
*/
class PreprocessorTest extends MediaWikiIntegrationTestCase {
protected $mTitle = 'Page title';
diff --git a/tests/phpunit/includes/parser/StripStateTest.php b/tests/phpunit/includes/parser/StripStateTest.php
index 671f525e3422..2c34900b533a 100644
--- a/tests/phpunit/includes/parser/StripStateTest.php
+++ b/tests/phpunit/includes/parser/StripStateTest.php
@@ -3,7 +3,7 @@
use MediaWiki\Parser\Parser;
/**
- * @covers StripState
+ * @covers \StripState
*/
class StripStateTest extends MediaWikiIntegrationTestCase {
protected function setUp(): void {
diff --git a/tests/phpunit/includes/parser/TagHooksTest.php b/tests/phpunit/includes/parser/TagHooksTest.php
index c33e15a09c58..9a97e593504f 100644
--- a/tests/phpunit/includes/parser/TagHooksTest.php
+++ b/tests/phpunit/includes/parser/TagHooksTest.php
@@ -7,21 +7,21 @@ use MediaWiki\User\User;
* @group Database
* @group Parser
*
- * @covers Parser
- * @covers BlockLevelPass
- * @covers StripState
+ * @covers \Parser
+ * @covers \BlockLevelPass
+ * @covers \StripState
*
- * @covers Preprocessor_Hash
- * @covers PPDStack_Hash
- * @covers PPDStackElement_Hash
- * @covers PPDPart_Hash
- * @covers PPFrame_Hash
- * @covers PPTemplateFrame_Hash
- * @covers PPCustomFrame_Hash
- * @covers PPNode_Hash_Tree
- * @covers PPNode_Hash_Text
- * @covers PPNode_Hash_Array
- * @covers PPNode_Hash_Attr
+ * @covers \Preprocessor_Hash
+ * @covers \PPDStack_Hash
+ * @covers \PPDStackElement_Hash
+ * @covers \PPDPart_Hash
+ * @covers \PPFrame_Hash
+ * @covers \PPTemplateFrame_Hash
+ * @covers \PPCustomFrame_Hash
+ * @covers \PPNode_Hash_Tree
+ * @covers \PPNode_Hash_Text
+ * @covers \PPNode_Hash_Array
+ * @covers \PPNode_Hash_Attr
*/
class TagHooksTest extends MediaWikiIntegrationTestCase {
public static function provideValidNames() {
diff --git a/tests/phpunit/includes/password/UserPasswordPolicyTest.php b/tests/phpunit/includes/password/UserPasswordPolicyTest.php
index 9eec32527774..36e395c1ebda 100644
--- a/tests/phpunit/includes/password/UserPasswordPolicyTest.php
+++ b/tests/phpunit/includes/password/UserPasswordPolicyTest.php
@@ -25,7 +25,7 @@ use MediaWiki\User\User;
/**
* @group Database
- * @covers UserPasswordPolicy
+ * @covers \UserPasswordPolicy
*/
class UserPasswordPolicyTest extends MediaWikiIntegrationTestCase {
diff --git a/tests/phpunit/includes/preferences/DefaultPreferencesFactoryTest.php b/tests/phpunit/includes/preferences/DefaultPreferencesFactoryTest.php
index 99c05e8eded7..9db4e1f35d5d 100644
--- a/tests/phpunit/includes/preferences/DefaultPreferencesFactoryTest.php
+++ b/tests/phpunit/includes/preferences/DefaultPreferencesFactoryTest.php
@@ -53,7 +53,7 @@ use Wikimedia\TestingAccessWrapper;
/**
* @group Preferences
* @group Database
- * @coversDefaultClass MediaWiki\Preferences\DefaultPreferencesFactory
+ * @coversDefaultClass \MediaWiki\Preferences\DefaultPreferencesFactory
*/
class DefaultPreferencesFactoryTest extends \MediaWikiIntegrationTestCase {
use DummyServicesTrait;
diff --git a/tests/phpunit/includes/preferences/SignatureValidatorTest.php b/tests/phpunit/includes/preferences/SignatureValidatorTest.php
index 1a113477ea71..bc011d7ccef6 100644
--- a/tests/phpunit/includes/preferences/SignatureValidatorTest.php
+++ b/tests/phpunit/includes/preferences/SignatureValidatorTest.php
@@ -55,7 +55,7 @@ class SignatureValidatorTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Preferences\SignatureValidator::applyPreSaveTransform()
+ * @covers \MediaWiki\Preferences\SignatureValidator::applyPreSaveTransform()
* @dataProvider provideApplyPreSaveTransform
*/
public function testApplyPreSaveTransform( $signature, $expected ) {
@@ -77,7 +77,7 @@ class SignatureValidatorTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Preferences\SignatureValidator::checkUserLinks()
+ * @covers \MediaWiki\Preferences\SignatureValidator::checkUserLinks()
* @dataProvider provideCheckUserLinks
*/
public function testCheckUserLinks( $signature, $expected ) {
@@ -105,7 +105,7 @@ class SignatureValidatorTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Preferences\SignatureValidator::checkLintErrors()
+ * @covers \MediaWiki\Preferences\SignatureValidator::checkLintErrors()
* @dataProvider provideCheckLintErrors
*/
public function testCheckLintErrors( $signature, $expected ) {
@@ -131,7 +131,7 @@ class SignatureValidatorTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Preferences\SignatureValidator::checkLineBreaks()
+ * @covers \MediaWiki\Preferences\SignatureValidator::checkLineBreaks()
* @dataProvider provideCheckLineBreaks
*/
public function testCheckLineBreaks( $signature, $expected ) {
diff --git a/tests/phpunit/includes/rcfeed/RCFeedIntegrationTest.php b/tests/phpunit/includes/rcfeed/RCFeedIntegrationTest.php
index 1f8ead109dd7..1e89d2176e3e 100644
--- a/tests/phpunit/includes/rcfeed/RCFeedIntegrationTest.php
+++ b/tests/phpunit/includes/rcfeed/RCFeedIntegrationTest.php
@@ -7,11 +7,11 @@ use MediaWiki\Title\Title;
/**
* @group medium
* @group Database
- * @covers FormattedRCFeed
- * @covers RecentChange
- * @covers JSONRCFeedFormatter
- * @covers MachineReadableRCFeedFormatter
- * @covers RCFeed
+ * @covers \FormattedRCFeed
+ * @covers \RecentChange
+ * @covers \JSONRCFeedFormatter
+ * @covers \MachineReadableRCFeedFormatter
+ * @covers \RCFeed
*/
class RCFeedIntegrationTest extends MediaWikiIntegrationTestCase {
protected function setUp(): void {
diff --git a/tests/phpunit/includes/registration/ExtensionRegistrationTest.php b/tests/phpunit/includes/registration/ExtensionRegistrationTest.php
index ba3f0eb0fa38..a46be60ed75f 100644
--- a/tests/phpunit/includes/registration/ExtensionRegistrationTest.php
+++ b/tests/phpunit/includes/registration/ExtensionRegistrationTest.php
@@ -13,7 +13,7 @@ use MediaWikiIntegrationTestCase;
use Wikimedia\TestingAccessWrapper;
/**
- * @covers ExtensionRegistry
+ * @covers \ExtensionRegistry
*/
class ExtensionRegistrationTest extends MediaWikiIntegrationTestCase {
diff --git a/tests/phpunit/includes/search/ParserOutputSearchDataExtractorTest.php b/tests/phpunit/includes/search/ParserOutputSearchDataExtractorTest.php
index a479a50c42dd..2a419179a679 100644
--- a/tests/phpunit/includes/search/ParserOutputSearchDataExtractorTest.php
+++ b/tests/phpunit/includes/search/ParserOutputSearchDataExtractorTest.php
@@ -5,7 +5,7 @@ use MediaWiki\Title\Title;
/**
* @group Search
- * @covers MediaWiki\Search\ParserOutputSearchDataExtractor
+ * @covers \MediaWiki\Search\ParserOutputSearchDataExtractor
* @group Database
*/
class ParserOutputSearchDataExtractorTest extends MediaWikiLangTestCase {
diff --git a/tests/phpunit/includes/search/PrefixSearchTest.php b/tests/phpunit/includes/search/PrefixSearchTest.php
index 002d453aa992..7ce1556639a0 100644
--- a/tests/phpunit/includes/search/PrefixSearchTest.php
+++ b/tests/phpunit/includes/search/PrefixSearchTest.php
@@ -6,7 +6,7 @@ use MediaWiki\Title\Title;
/**
* @group Search
* @group Database
- * @covers PrefixSearch
+ * @covers \PrefixSearch
*/
class PrefixSearchTest extends MediaWikiLangTestCase {
private const NS_NONCAP = 12346;
@@ -188,8 +188,8 @@ class PrefixSearchTest extends MediaWikiLangTestCase {
/**
* @dataProvider provideSearch
- * @covers PrefixSearch::search
- * @covers PrefixSearch::searchBackend
+ * @covers \PrefixSearch::search
+ * @covers \PrefixSearch::searchBackend
*/
public function testSearch( array $case ) {
$this->searchProvision( null );
@@ -207,8 +207,8 @@ class PrefixSearchTest extends MediaWikiLangTestCase {
/**
* @dataProvider provideSearch
- * @covers PrefixSearch::search
- * @covers PrefixSearch::searchBackend
+ * @covers \PrefixSearch::search
+ * @covers \PrefixSearch::searchBackend
*/
public function testSearchWithOffset( array $case ) {
$this->searchProvision( null );
@@ -344,7 +344,7 @@ class PrefixSearchTest extends MediaWikiLangTestCase {
/**
* @dataProvider provideSearchBackend
- * @covers PrefixSearch::searchBackend
+ * @covers \PrefixSearch::searchBackend
*/
public function testSearchBackend( array $case ) {
$this->filterDeprecated( '/Use of PrefixSearchBackend hook/' );
diff --git a/tests/phpunit/includes/search/SearchEnginePrefixTest.php b/tests/phpunit/includes/search/SearchEnginePrefixTest.php
index dea2883c0021..1ca0a6c72cac 100644
--- a/tests/phpunit/includes/search/SearchEnginePrefixTest.php
+++ b/tests/phpunit/includes/search/SearchEnginePrefixTest.php
@@ -182,7 +182,7 @@ class SearchEnginePrefixTest extends MediaWikiLangTestCase {
/**
* @dataProvider provideSearch
- * @covers SearchEngine::defaultPrefixSearch
+ * @covers \SearchEngine::defaultPrefixSearch
*/
public function testSearch( array $case ) {
$this->search->setLimitOffset( 3 );
@@ -200,7 +200,7 @@ class SearchEnginePrefixTest extends MediaWikiLangTestCase {
/**
* @dataProvider provideSearch
- * @covers SearchEngine::defaultPrefixSearch
+ * @covers \SearchEngine::defaultPrefixSearch
*/
public function testSearchWithOffset( array $case ) {
$this->search->setLimitOffset( 3, 1 );
@@ -349,7 +349,7 @@ class SearchEnginePrefixTest extends MediaWikiLangTestCase {
/**
* @dataProvider provideSearchBackend
- * @covers PrefixSearch::searchBackend
+ * @covers \PrefixSearch::searchBackend
*/
public function testSearchBackend( array $case ) {
$search = $this->mockSearchWithResults( $case['provision'] );
@@ -383,7 +383,7 @@ class SearchEnginePrefixTest extends MediaWikiLangTestCase {
/**
* @dataProvider paginationProvider
- * @covers SearchSuggestionSet::hasMoreResults
+ * @covers \SearchSuggestionSet::hasMoreResults
*/
public function testPagination( $hasMoreResults, $provision ) {
$search = $this->mockSearchWithResults( $provision );
diff --git a/tests/phpunit/includes/search/SearchEngineTest.php b/tests/phpunit/includes/search/SearchEngineTest.php
index efc5ef009eaa..48dd9f3a9483 100644
--- a/tests/phpunit/includes/search/SearchEngineTest.php
+++ b/tests/phpunit/includes/search/SearchEngineTest.php
@@ -6,7 +6,7 @@ use MediaWiki\MainConfigNames;
* @group Search
* @group Database
*
- * @covers SearchEngine<extended>
+ * @covers \SearchEngine<extended>
* @note Coverage will only ever show one of on of the Search* classes
*/
class SearchEngineTest extends MediaWikiLangTestCase {
@@ -274,8 +274,8 @@ class SearchEngineTest extends MediaWikiLangTestCase {
* (in other test that the default search backend can benefit from wgCapitalLinksOverride)
* Guard against regressions like T208255
* @dataProvider provideCompletionSearchMustRespectCapitalLinkOverrides
- * @covers SearchEngine::completionSearch
- * @covers PrefixSearch::defaultSearchBackend
+ * @covers \SearchEngine::completionSearch
+ * @covers \PrefixSearch::defaultSearchBackend
* @param string $search
* @param string $expectedSuggestion
* @param int[] $namespaces
@@ -292,7 +292,7 @@ class SearchEngineTest extends MediaWikiLangTestCase {
}
/**
- * @covers SearchEngine::getSearchIndexFields
+ * @covers \SearchEngine::getSearchIndexFields
*/
public function testSearchIndexFields() {
/**
diff --git a/tests/phpunit/includes/search/SearchHighlighterTest.php b/tests/phpunit/includes/search/SearchHighlighterTest.php
index d5c535eac332..b43e6cf2786f 100644
--- a/tests/phpunit/includes/search/SearchHighlighterTest.php
+++ b/tests/phpunit/includes/search/SearchHighlighterTest.php
@@ -6,7 +6,7 @@
class SearchHighlighterTest extends \MediaWikiIntegrationTestCase {
/**
* @dataProvider provideHighlightSimple
- * @covers SearchHighlighter::highlightSimple
+ * @covers \SearchHighlighter::highlightSimple
*/
public function testHighlightSimple( string $wikiText, string $searchTerm, string $expectedOutput, int $contextChars ) {
$highlighter = new \SearchHighlighter( false );
diff --git a/tests/phpunit/includes/search/SearchNearMatchResultSetTest.php b/tests/phpunit/includes/search/SearchNearMatchResultSetTest.php
index 23301b74dfdc..2881678ae405 100644
--- a/tests/phpunit/includes/search/SearchNearMatchResultSetTest.php
+++ b/tests/phpunit/includes/search/SearchNearMatchResultSetTest.php
@@ -4,8 +4,8 @@ use MediaWiki\Title\Title;
class SearchNearMatchResultSetTest extends PHPUnit\Framework\TestCase {
/**
- * @covers SearchNearMatchResultSet::__construct
- * @covers SearchNearMatchResultSet::numRows
+ * @covers \SearchNearMatchResultSet::__construct
+ * @covers \SearchNearMatchResultSet::numRows
*/
public function testNumRows() {
$resultSet = new SearchNearMatchResultSet( null );
diff --git a/tests/phpunit/includes/search/SearchResultSetTest.php b/tests/phpunit/includes/search/SearchResultSetTest.php
index 76d1ea2b6a7a..371d1c10e05f 100644
--- a/tests/phpunit/includes/search/SearchResultSetTest.php
+++ b/tests/phpunit/includes/search/SearchResultSetTest.php
@@ -10,9 +10,9 @@ class SearchResultSetTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers SearchResultSet::getIterator
- * @covers BaseSearchResultSet::next
- * @covers BaseSearchResultSet::rewind
+ * @covers \SearchResultSet::getIterator
+ * @covers \BaseSearchResultSet::next
+ * @covers \BaseSearchResultSet::rewind
*/
public function testIterate() {
$title = Title::makeTitle( NS_MAIN, __METHOD__ );
@@ -38,8 +38,8 @@ class SearchResultSetTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers SearchResultSetTrait::augmentResult
- * @covers SearchResultSetTrait::setAugmentedData
+ * @covers \SearchResultSetTrait::augmentResult
+ * @covers \SearchResultSetTrait::setAugmentedData
*/
public function testDelayedResultAugment() {
$title = Title::makeTitle( NS_MAIN, __METHOD__ );
@@ -55,9 +55,9 @@ class SearchResultSetTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers SearchResultSet::shrink
- * @covers SearchResultSet::count
- * @covers SearchResultSet::hasMoreResults
+ * @covers \SearchResultSet::shrink
+ * @covers \SearchResultSet::count
+ * @covers \SearchResultSet::hasMoreResults
*/
public function testHasMoreResults() {
$title = Title::makeTitle( NS_MAIN, __METHOD__ );
@@ -72,7 +72,7 @@ class SearchResultSetTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers SearchResultSet::shrink
+ * @covers \SearchResultSet::shrink
*/
public function testShrink() {
$title = Title::makeTitle( NS_MAIN, __METHOD__ );
diff --git a/tests/phpunit/includes/search/SearchResultTraitTest.php b/tests/phpunit/includes/search/SearchResultTraitTest.php
index f870542025ea..339d01875914 100644
--- a/tests/phpunit/includes/search/SearchResultTraitTest.php
+++ b/tests/phpunit/includes/search/SearchResultTraitTest.php
@@ -2,8 +2,8 @@
class SearchResultTraitTest extends MediaWikiIntegrationTestCase {
/**
- * @covers SearchResultTrait::getExtensionData
- * @covers SearchResultTrait::setExtensionData
+ * @covers \SearchResultTrait::getExtensionData
+ * @covers \SearchResultTrait::setExtensionData
*/
public function testExtensionData() {
$result = new class() {
@@ -21,8 +21,8 @@ class SearchResultTraitTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers SearchResultTrait::getExtensionData
- * @covers SearchResultTrait::setExtensionData
+ * @covers \SearchResultTrait::getExtensionData
+ * @covers \SearchResultTrait::setExtensionData
*/
public function testExtensionDataArrayBC() {
$result = new class() {
diff --git a/tests/phpunit/includes/session/BotPasswordSessionProviderTest.php b/tests/phpunit/includes/session/BotPasswordSessionProviderTest.php
index 44b464455449..9831fa5a9032 100644
--- a/tests/phpunit/includes/session/BotPasswordSessionProviderTest.php
+++ b/tests/phpunit/includes/session/BotPasswordSessionProviderTest.php
@@ -18,7 +18,7 @@ use Wikimedia\TestingAccessWrapper;
/**
* @group Session
* @group Database
- * @covers MediaWiki\Session\BotPasswordSessionProvider
+ * @covers \MediaWiki\Session\BotPasswordSessionProvider
*/
class BotPasswordSessionProviderTest extends MediaWikiIntegrationTestCase {
use SessionProviderTestTrait;
diff --git a/tests/phpunit/includes/session/ImmutableSessionProviderWithCookieTest.php b/tests/phpunit/includes/session/ImmutableSessionProviderWithCookieTest.php
index fe3fb1c77b73..e7abbba15058 100644
--- a/tests/phpunit/includes/session/ImmutableSessionProviderWithCookieTest.php
+++ b/tests/phpunit/includes/session/ImmutableSessionProviderWithCookieTest.php
@@ -18,7 +18,7 @@ use Wikimedia\TestingAccessWrapper;
/**
* @group Session
* @group Database
- * @covers MediaWiki\Session\ImmutableSessionProviderWithCookie
+ * @covers \MediaWiki\Session\ImmutableSessionProviderWithCookie
*/
class ImmutableSessionProviderWithCookieTest extends MediaWikiIntegrationTestCase {
use SessionProviderTestTrait;
diff --git a/tests/phpunit/includes/session/PHPSessionHandlerTest.php b/tests/phpunit/includes/session/PHPSessionHandlerTest.php
index 39a2a28f141a..0a63bd870f9f 100644
--- a/tests/phpunit/includes/session/PHPSessionHandlerTest.php
+++ b/tests/phpunit/includes/session/PHPSessionHandlerTest.php
@@ -13,7 +13,7 @@ use Wikimedia\TestingAccessWrapper;
/**
* @group Session
- * @covers MediaWiki\Session\PHPSessionHandler
+ * @covers \MediaWiki\Session\PHPSessionHandler
*/
class PHPSessionHandlerTest extends MediaWikiIntegrationTestCase {
diff --git a/tests/phpunit/includes/session/SessionBackendTest.php b/tests/phpunit/includes/session/SessionBackendTest.php
index 411881f87372..f9b63c6c4766 100644
--- a/tests/phpunit/includes/session/SessionBackendTest.php
+++ b/tests/phpunit/includes/session/SessionBackendTest.php
@@ -22,7 +22,7 @@ use Wikimedia\TestingAccessWrapper;
/**
* @group Session
* @group Database
- * @covers MediaWiki\Session\SessionBackend
+ * @covers \MediaWiki\Session\SessionBackend
*/
class SessionBackendTest extends MediaWikiIntegrationTestCase {
use SessionProviderTestTrait;
diff --git a/tests/phpunit/includes/session/SessionInfoTest.php b/tests/phpunit/includes/session/SessionInfoTest.php
index 04067ad55804..85b76dd8f8f2 100644
--- a/tests/phpunit/includes/session/SessionInfoTest.php
+++ b/tests/phpunit/includes/session/SessionInfoTest.php
@@ -11,7 +11,7 @@ use MediaWikiIntegrationTestCase;
/**
* @group Session
* @group Database
- * @covers MediaWiki\Session\SessionInfo
+ * @covers \MediaWiki\Session\SessionInfo
*/
class SessionInfoTest extends MediaWikiIntegrationTestCase {
use SessionProviderTestTrait;
diff --git a/tests/phpunit/includes/session/SessionManagerTest.php b/tests/phpunit/includes/session/SessionManagerTest.php
index 4cbe0e69be68..29c43e3846f0 100644
--- a/tests/phpunit/includes/session/SessionManagerTest.php
+++ b/tests/phpunit/includes/session/SessionManagerTest.php
@@ -22,7 +22,7 @@ use Wikimedia\TestingAccessWrapper;
/**
* @group Session
* @group Database
- * @covers MediaWiki\Session\SessionManager
+ * @covers \MediaWiki\Session\SessionManager
*/
class SessionManagerTest extends MediaWikiIntegrationTestCase {
use SessionProviderTestTrait;
diff --git a/tests/phpunit/includes/session/SessionProviderTest.php b/tests/phpunit/includes/session/SessionProviderTest.php
index 446fd2277cb4..da650573254d 100644
--- a/tests/phpunit/includes/session/SessionProviderTest.php
+++ b/tests/phpunit/includes/session/SessionProviderTest.php
@@ -17,7 +17,7 @@ use Wikimedia\TestingAccessWrapper;
/**
* @group Session
* @group Database
- * @covers MediaWiki\Session\SessionProvider
+ * @covers \MediaWiki\Session\SessionProvider
*/
class SessionProviderTest extends MediaWikiIntegrationTestCase {
use SessionProviderTestTrait;
diff --git a/tests/phpunit/includes/skins/SideBarTest.php b/tests/phpunit/includes/skins/SideBarTest.php
index ac2413bf356d..e92997588f7b 100644
--- a/tests/phpunit/includes/skins/SideBarTest.php
+++ b/tests/phpunit/includes/skins/SideBarTest.php
@@ -5,8 +5,8 @@ use MediaWiki\MediaWikiServices;
use MediaWiki\Title\Title;
/**
- * @covers Skin
- * @covers SkinTemplate
+ * @covers \Skin
+ * @covers \SkinTemplate
* @group Skin
* @group Database
*/
diff --git a/tests/phpunit/includes/skins/SkinMustacheTest.php b/tests/phpunit/includes/skins/SkinMustacheTest.php
index 9b8fadaf067f..f5d879d38e10 100644
--- a/tests/phpunit/includes/skins/SkinMustacheTest.php
+++ b/tests/phpunit/includes/skins/SkinMustacheTest.php
@@ -8,7 +8,7 @@ use MediaWiki\Title\Title;
use PHPUnit\Framework\MockObject\MockObject;
/**
- * @covers SkinMustache
+ * @covers \SkinMustache
* @group Skin
* @group Database
*/
@@ -93,11 +93,11 @@ class SkinMustacheTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers Skin
- * @covers MediaWiki\Skin\SkinComponentLogo
- * @covers MediaWiki\Skin\SkinComponentSearch
- * @covers MediaWiki\Skin\SkinComponentTableOfContents
- * @covers MediaWiki\Skin\SkinComponentFooter
+ * @covers \Skin
+ * @covers \MediaWiki\Skin\SkinComponentLogo
+ * @covers \MediaWiki\Skin\SkinComponentSearch
+ * @covers \MediaWiki\Skin\SkinComponentTableOfContents
+ * @covers \MediaWiki\Skin\SkinComponentFooter
*/
public function testGetTemplateData() {
$config = $this->getServiceContainer()->getMainConfig();
diff --git a/tests/phpunit/includes/skins/SkinTemplateTest.php b/tests/phpunit/includes/skins/SkinTemplateTest.php
index f53e2206feb7..acee7827ac75 100644
--- a/tests/phpunit/includes/skins/SkinTemplateTest.php
+++ b/tests/phpunit/includes/skins/SkinTemplateTest.php
@@ -11,8 +11,8 @@ class SkinQuickTemplateTest extends QuickTemplate {
}
/**
- * @covers SkinTemplate
- * @covers Skin
+ * @covers \SkinTemplate
+ * @covers \Skin
* @group Skin
* @group Database
* @author Bene* < benestar.wikimedia@gmail.com >
diff --git a/tests/phpunit/includes/skins/SkinTest.php b/tests/phpunit/includes/skins/SkinTest.php
index 8ec0f6976ca8..752aa94e4028 100644
--- a/tests/phpunit/includes/skins/SkinTest.php
+++ b/tests/phpunit/includes/skins/SkinTest.php
@@ -14,7 +14,7 @@ use MediaWiki\User\UserIdentityLookup;
use MediaWiki\User\UserIdentityValue;
/**
- * @covers Skin
+ * @covers \Skin
* @group Database
*/
class SkinTest extends MediaWikiIntegrationTestCase {
@@ -22,7 +22,7 @@ class SkinTest extends MediaWikiIntegrationTestCase {
use MockBlockTrait;
/**
- * @covers Skin
+ * @covers \Skin
*/
public function testGetSkinName() {
$skin = new SkinFallback();
diff --git a/tests/phpunit/includes/title/MediaWikiTitleCodecTest.php b/tests/phpunit/includes/title/MediaWikiTitleCodecTest.php
index 3edbd3d09f28..ca73fd98f71e 100644
--- a/tests/phpunit/includes/title/MediaWikiTitleCodecTest.php
+++ b/tests/phpunit/includes/title/MediaWikiTitleCodecTest.php
@@ -522,9 +522,9 @@ class MediaWikiTitleCodecTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider provideMakeTitleValueSafe
- * @covers MediaWiki\Title\Title::makeTitleSafe
- * @covers MediaWiki\Title\Title::makeName
- * @covers MediaWiki\Title\Title::secureAndSplit
+ * @covers \MediaWiki\Title\Title::makeTitleSafe
+ * @covers \MediaWiki\Title\Title::makeName
+ * @covers \MediaWiki\Title\Title::secureAndSplit
*/
public function testMakeTitleSafe(
$expected, $ns, $text, $fragment = '', $interwiki = '', $lang = 'en'
diff --git a/tests/phpunit/includes/title/NamespaceInfoTest.php b/tests/phpunit/includes/title/NamespaceInfoTest.php
index be9b411db601..be3aad2f4a07 100644
--- a/tests/phpunit/includes/title/NamespaceInfoTest.php
+++ b/tests/phpunit/includes/title/NamespaceInfoTest.php
@@ -600,7 +600,7 @@ class NamespaceInfoTest extends MediaWikiIntegrationTestCase {
* @covers \MediaWiki\Title\NamespaceInfo::getSubject
* @covers \MediaWiki\Title\NamespaceInfo::getSubjectPage
* @covers \MediaWiki\Title\NamespaceInfo::isMethodValidFor
- * @covers MediaWiki\Title\Title::getSubjectPage
+ * @covers \MediaWiki\Title\Title::getSubjectPage
*
* @param int $subject
* @param int $talk
@@ -643,7 +643,7 @@ class NamespaceInfoTest extends MediaWikiIntegrationTestCase {
* @covers \MediaWiki\Title\NamespaceInfo::getTalk
* @covers \MediaWiki\Title\NamespaceInfo::getTalkPage
* @covers \MediaWiki\Title\NamespaceInfo::isMethodValidFor
- * @covers MediaWiki\Title\Title::getTalkPage
+ * @covers \MediaWiki\Title\Title::getTalkPage
*
* @param int $subject
* @param int $talk
@@ -771,7 +771,7 @@ class NamespaceInfoTest extends MediaWikiIntegrationTestCase {
* @dataProvider provideSubjectTalk
* @covers \MediaWiki\Title\NamespaceInfo::getAssociated
* @covers \MediaWiki\Title\NamespaceInfo::getAssociatedPage
- * @covers MediaWiki\Title\Title::getOtherPage
+ * @covers \MediaWiki\Title\Title::getOtherPage
*
* @param int $subject
* @param int $talk
diff --git a/tests/phpunit/includes/title/TemplateCategoriesTest.php b/tests/phpunit/includes/title/TemplateCategoriesTest.php
index 4d0dbceee0da..ea5dccabe521 100644
--- a/tests/phpunit/includes/title/TemplateCategoriesTest.php
+++ b/tests/phpunit/includes/title/TemplateCategoriesTest.php
@@ -17,7 +17,7 @@ class TemplateCategoriesTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Title\Title::getParentCategories
+ * @covers \MediaWiki\Title\Title::getParentCategories
*/
public function testTemplateCategories() {
$user = new User();
diff --git a/tests/phpunit/includes/title/TitleTest.php b/tests/phpunit/includes/title/TitleTest.php
index 37d754b610d7..88233ad71d5c 100644
--- a/tests/phpunit/includes/title/TitleTest.php
+++ b/tests/phpunit/includes/title/TitleTest.php
@@ -103,7 +103,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider provideInNamespace
- * @covers MediaWiki\Title\Title::inNamespace
+ * @covers \MediaWiki\Title\Title::inNamespace
*/
public function testInNamespace( $title, $ns, $expectedBool ) {
$title = Title::newFromText( $title );
@@ -111,7 +111,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Title\Title::inNamespaces
+ * @covers \MediaWiki\Title\Title::inNamespaces
*/
public function testInNamespaces() {
$mainpage = Title::newFromText( 'Main Page' );
@@ -136,7 +136,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider provideHasSubjectNamespace
- * @covers MediaWiki\Title\Title::hasSubjectNamespace
+ * @covers \MediaWiki\Title\Title::hasSubjectNamespace
*/
public function testHasSubjectNamespace( $title, $ns, $expectedBool ) {
$title = Title::newFromText( $title );
@@ -170,7 +170,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider dataGetContentModel
- * @covers MediaWiki\Title\Title::getContentModel
+ * @covers \MediaWiki\Title\Title::getContentModel
*/
public function testGetContentModel( $title, $expectedModelId ) {
$title = Title::newFromText( $title );
@@ -179,7 +179,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider dataGetContentModel
- * @covers MediaWiki\Title\Title::hasContentModel
+ * @covers \MediaWiki\Title\Title::hasContentModel
*/
public function testHasContentModel( $title, $expectedModelId ) {
$title = Title::newFromText( $title );
@@ -217,10 +217,10 @@ class TitleTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider provideIsSiteConfigPage
- * @covers MediaWiki\Title\Title::isSiteConfigPage
- * @covers MediaWiki\Title\Title::isSiteJsConfigPage
- * @covers MediaWiki\Title\Title::isSiteJsonConfigPage
- * @covers MediaWiki\Title\Title::isSiteCssConfigPage
+ * @covers \MediaWiki\Title\Title::isSiteConfigPage
+ * @covers \MediaWiki\Title\Title::isSiteJsConfigPage
+ * @covers \MediaWiki\Title\Title::isSiteJsonConfigPage
+ * @covers \MediaWiki\Title\Title::isSiteCssConfigPage
*/
public function testSiteConfigPage( $title, $expected ) {
$title = Title::newFromText( $title );
@@ -274,10 +274,10 @@ class TitleTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider provideIsUserConfigPage
- * @covers MediaWiki\Title\Title::isUserConfigPage
- * @covers MediaWiki\Title\Title::isUserJsConfigPage
- * @covers MediaWiki\Title\Title::isUserJsonConfigPage
- * @covers MediaWiki\Title\Title::isUserCssConfigPage
+ * @covers \MediaWiki\Title\Title::isUserConfigPage
+ * @covers \MediaWiki\Title\Title::isUserJsConfigPage
+ * @covers \MediaWiki\Title\Title::isUserJsonConfigPage
+ * @covers \MediaWiki\Title\Title::isUserCssConfigPage
*/
public function testIsUserConfigPage( $title, $expected ) {
$title = Title::newFromText( $title );
@@ -331,7 +331,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider provideIsWikitextPage
- * @covers MediaWiki\Title\Title::isWikitextPage
+ * @covers \MediaWiki\Title\Title::isWikitextPage
*/
public function testIsWikitextPage( $title, $expectedBool ) {
$title = Title::newFromText( $title );
@@ -351,7 +351,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider provideGetOtherpage
- * @covers MediaWiki\Title\Title::getOtherPage
+ * @covers \MediaWiki\Title\Title::getOtherPage
*
* @param string $text
* @param string|null $expected
@@ -366,7 +366,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Title\Title::clearCaches
+ * @covers \MediaWiki\Title\Title::clearCaches
*/
public function testClearCaches() {
$linkCache = $this->getServiceContainer()->getLinkCache();
@@ -382,7 +382,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Title\Title::getFieldFromPageStore
+ * @covers \MediaWiki\Title\Title::getFieldFromPageStore
*/
public function testUseCaches() {
$title1 = Title::makeTitle( NS_MAIN, __METHOD__ . '998724352' );
@@ -459,10 +459,10 @@ class TitleTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider provideGetLinkURL
*
- * @covers MediaWiki\Title\Title::getLinkURL
- * @covers MediaWiki\Title\Title::getFullURL
- * @covers MediaWiki\Title\Title::getLocalURL
- * @covers MediaWiki\Title\Title::getFragmentForURL
+ * @covers \MediaWiki\Title\Title::getLinkURL
+ * @covers \MediaWiki\Title\Title::getFullURL
+ * @covers \MediaWiki\Title\Title::getLocalURL
+ * @covers \MediaWiki\Title\Title::getFragmentForURL
*/
public function testGetLinkURL(
$expected,
@@ -494,7 +494,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider provideProperPage
- * @covers MediaWiki\Title\Title::toPageIdentity
+ * @covers \MediaWiki\Title\Title::toPageIdentity
*/
public function testToPageIdentity( $ns, $text ) {
$title = Title::makeTitle( $ns, $text );
@@ -510,7 +510,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider provideProperPage
- * @covers MediaWiki\Title\Title::toPageRecord
+ * @covers \MediaWiki\Title\Title::toPageRecord
*/
public function testToPageRecord( $ns, $text ) {
$title = Title::makeTitle( $ns, $text );
@@ -535,7 +535,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider provideImproperPage
- * @covers MediaWiki\Title\Title::toPageRecord
+ * @covers \MediaWiki\Title\Title::toPageRecord
*/
public function testToPageRecord_fail( $ns, $text, $fragment = '', $interwiki = '' ) {
$title = Title::makeTitle( $ns, $text, $fragment, $interwiki );
@@ -570,7 +570,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider provideImproperPage
- * @covers MediaWiki\Title\Title::getId
+ * @covers \MediaWiki\Title\Title::getId
*/
public function testGetId_fail( $ns, $text, $fragment = '', $interwiki = '' ) {
$title = Title::makeTitle( $ns, $text, $fragment, $interwiki );
@@ -581,7 +581,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider provideImproperPage
- * @covers MediaWiki\Title\Title::getId
+ * @covers \MediaWiki\Title\Title::getId
*/
public function testGetId_fragment() {
$title = Title::makeTitle( NS_MAIN, 'Test', 'References' );
@@ -592,7 +592,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider provideImproperPage
- * @covers MediaWiki\Title\Title::toPageIdentity
+ * @covers \MediaWiki\Title\Title::toPageIdentity
*/
public function testToPageIdentity_fail( $ns, $text, $fragment = '', $interwiki = '' ) {
$title = Title::makeTitle( $ns, $text, $fragment, $interwiki );
@@ -612,7 +612,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider provideMakeTitle
- * @covers MediaWiki\Title\Title::makeTitle
+ * @covers \MediaWiki\Title\Title::makeTitle
*/
public function testMakeTitle( $expected, $ns, $text, $fragment = '', $interwiki = '' ) {
$title = Title::makeTitle( $ns, $text, $fragment, $interwiki );
@@ -631,7 +631,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider provideMakeTitle_invalid
- * @covers MediaWiki\Title\Title::makeTitle
+ * @covers \MediaWiki\Title\Title::makeTitle
*/
public function testMakeTitle_invalid( $expected, $ns, $text, $fragment = '', $interwiki = '' ) {
$title = Title::makeTitle( $ns, $text, $fragment, $interwiki );
@@ -655,7 +655,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider provideMakeName
- * @covers MediaWiki\Title\Title::makeName
+ * @covers \MediaWiki\Title\Title::makeName
*/
public function testMakeName( $expected, $ns, $text, $fragment = '', $interwiki = '' ) {
$titleName = Title::makeName( $ns, $text, $fragment, $interwiki );
@@ -680,7 +680,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider provideMakeTitleSafe
- * @covers MediaWiki\Title\Title::makeTitleSafe
+ * @covers \MediaWiki\Title\Title::makeTitleSafe
*/
public function testMakeTitleSafe( $expected, $ns, $text, $fragment = '', $interwiki = '' ) {
$title = Title::makeTitleSafe( $ns, $text, $fragment, $interwiki );
@@ -697,7 +697,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider provideMakeTitleSafe_invalid
- * @covers MediaWiki\Title\Title::makeTitleSafe
+ * @covers \MediaWiki\Title\Title::makeTitleSafe
*/
public function testMakeTitleSafe_invalid( $ns, $text, $fragment = '', $interwiki = '' ) {
$title = Title::makeTitleSafe( $ns, $text, $fragment, $interwiki );
@@ -706,9 +706,9 @@ class TitleTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Title\Title::getContentModel
- * @covers MediaWiki\Title\Title::setContentModel
- * @covers MediaWiki\Title\Title::uncache
+ * @covers \MediaWiki\Title\Title::getContentModel
+ * @covers \MediaWiki\Title\Title::setContentModel
+ * @covers \MediaWiki\Title\Title::uncache
*/
public function testSetContentModel() {
// NOTE: must use newFromText to test behavior of internal instance cache (T281337)
@@ -723,8 +723,8 @@ class TitleTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Title\Title::newFromID
- * @covers MediaWiki\Title\Title::newFromRow
+ * @covers \MediaWiki\Title\Title::newFromID
+ * @covers \MediaWiki\Title\Title::newFromRow
*/
public function testNewFromId() {
// First id
@@ -757,7 +757,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Title\Title::newFromID
+ * @covers \MediaWiki\Title\Title::newFromID
*/
public function testNewFromMissingId() {
// Testing return of null for an id that does not exist
@@ -860,7 +860,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
/**
* See also mediawiki.Title.test.js
- * @covers MediaWiki\Title\Title::secureAndSplit
+ * @covers \MediaWiki\Title\Title::secureAndSplit
* @dataProvider provideValidSecureAndSplit
* @note This mainly tests MediaWikiTitleCodec::parseTitle().
*/
@@ -870,7 +870,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
/**
* See also mediawiki.Title.test.js
- * @covers MediaWiki\Title\Title::secureAndSplit
+ * @covers \MediaWiki\Title\Title::secureAndSplit
* @dataProvider provideInvalidSecureAndSplit
* @note This mainly tests MediaWikiTitleCodec::parseTitle().
*/
@@ -893,7 +893,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider provideSpecialNamesWithAndWithoutParameter
- * @covers MediaWiki\Title\Title::fixSpecialName
+ * @covers \MediaWiki\Title\Title::fixSpecialName
*/
public function testFixSpecialNameRetainsParameter( $text, $expectedParam ) {
$title = Title::newFromText( $text );
@@ -962,7 +962,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
* Superseded by OutputPageTest::testGetJsVarsAboutPageLang
*
* @dataProvider provideGetPageViewLanguage
- * @covers MediaWiki\Title\Title::getPageViewLanguage
+ * @covers \MediaWiki\Title\Title::getPageViewLanguage
*/
public function testGetPageViewLanguage( $expected, $titleText, $contLang,
$lang, $variant, $msg = ''
@@ -997,7 +997,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider provideSubpage
- * @covers MediaWiki\Title\Title::getSubpage
+ * @covers \MediaWiki\Title\Title::getSubpage
*/
public function testSubpage( $title, $sub, LinkTarget $expected ) {
$title = Title::newFromText( $title );
@@ -1022,7 +1022,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Title\Title::isAlwaysKnown
+ * @covers \MediaWiki\Title\Title::isAlwaysKnown
* @dataProvider provideIsAlwaysKnown
* @param string $page
* @param bool $isKnown
@@ -1061,7 +1061,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Title\Title::isValid
+ * @covers \MediaWiki\Title\Title::isValid
* @dataProvider provideIsValid
* @param Title $title
* @param bool $isValid
@@ -1084,7 +1084,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Title\Title::isValidRedirectTarget
+ * @covers \MediaWiki\Title\Title::isValidRedirectTarget
* @dataProvider provideIsValidRedirectTarget
* @param Title $title
* @param bool $isValid
@@ -1120,7 +1120,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Title\Title::canExist
+ * @covers \MediaWiki\Title\Title::canExist
* @dataProvider provideCanExist
* @param Title $title
* @param bool $canExist
@@ -1130,7 +1130,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Title\Title::isAlwaysKnown
+ * @covers \MediaWiki\Title\Title::isAlwaysKnown
*/
public function testIsAlwaysKnownOnInterwiki() {
$title = Title::makeTitle( NS_MAIN, 'Interwiki link', '', 'externalwiki' );
@@ -1154,7 +1154,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider provideGetSkinFromConfigSubpage
- * @covers MediaWiki\Title\Title::getSkinFromConfigSubpage
+ * @covers \MediaWiki\Title\Title::getSkinFromConfigSubpage
*/
public function testGetSkinFromConfigSubpage( $title, $expected ) {
$title = Title::newFromText( $title );
@@ -1162,7 +1162,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Title\Title::getWikiId
+ * @covers \MediaWiki\Title\Title::getWikiId
*/
public function testGetWikiId() {
$title = Title::newFromText( 'Foo' );
@@ -1170,9 +1170,9 @@ class TitleTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Title\Title::getFragment
- * @covers MediaWiki\Title\Title::getFragment
- * @covers MediaWiki\Title\Title::uncache
+ * @covers \MediaWiki\Title\Title::getFragment
+ * @covers \MediaWiki\Title\Title::getFragment
+ * @covers \MediaWiki\Title\Title::uncache
*/
public function testSetFragment() {
// NOTE: must use newFromText to test behavior of internal instance cache (T281337)
@@ -1187,7 +1187,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Title\Title::__clone
+ * @covers \MediaWiki\Title\Title::__clone
*/
public function testClone() {
// NOTE: must use newFromText to test behavior of internal instance cache (T281337)
@@ -1221,7 +1221,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider provideBaseTitleCases
- * @covers MediaWiki\Title\Title::getBaseText
+ * @covers \MediaWiki\Title\Title::getBaseText
*/
public function testGetBaseText( $namespace, $title, $expected ) {
$title = Title::makeTitle( $namespace, $title );
@@ -1230,7 +1230,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider provideBaseTitleCases
- * @covers MediaWiki\Title\Title::getBaseTitle
+ * @covers \MediaWiki\Title\Title::getBaseTitle
*/
public function testGetBaseTitle( $namespace, $title, $expected ) {
$title = Title::makeTitle( $namespace, $title );
@@ -1263,7 +1263,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider provideRootTitleCases
- * @covers MediaWiki\Title\Title::getRootText
+ * @covers \MediaWiki\Title\Title::getRootText
*/
public function testGetRootText( $namespace, $title, $expected ) {
$title = Title::makeTitle( $namespace, $title );
@@ -1272,7 +1272,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider provideRootTitleCases
- * @covers MediaWiki\Title\Title::getRootTitle
+ * @covers \MediaWiki\Title\Title::getRootTitle
*/
public function testGetRootTitle( $namespace, $title, $expected ) {
$title = Title::makeTitle( $namespace, $title );
@@ -1304,7 +1304,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider provideSubpageTitleCases
- * @covers MediaWiki\Title\Title::getSubpageText
+ * @covers \MediaWiki\Title\Title::getSubpageText
*/
public function testGetSubpageText( $namespace, $title, $expected ) {
$title = Title::makeTitle( $namespace, $title );
@@ -1320,7 +1320,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Title\Title::getTitleValue
+ * @covers \MediaWiki\Title\Title::getTitleValue
* @dataProvider provideGetTitleValue
*/
public function testGetTitleValue( $text ) {
@@ -1352,7 +1352,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Title\Title::getFragment
+ * @covers \MediaWiki\Title\Title::getFragment
* @dataProvider provideGetFragment
*
* @param string $full
@@ -1364,7 +1364,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Title\Title::exists
+ * @covers \MediaWiki\Title\Title::exists
*/
public function testExists() {
$title = Title::makeTitle( NS_PROJECT, 'New page' );
@@ -1396,8 +1396,8 @@ class TitleTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Title\Title::getArticleID
- * @covers MediaWiki\Title\Title::getId
+ * @covers \MediaWiki\Title\Title::getArticleID
+ * @covers \MediaWiki\Title\Title::getId
*/
public function testGetArticleID() {
$title = Title::makeTitle( NS_PROJECT, __METHOD__ );
@@ -1429,7 +1429,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider provideNonProperTitles
- * @covers MediaWiki\Title\Title::getArticleID
+ * @covers \MediaWiki\Title\Title::getArticleID
*/
public function testGetArticleIDFromNonProperTitle( $title ) {
// make sure nothing explodes
@@ -1506,7 +1506,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider provideCanHaveTalkPage
- * @covers MediaWiki\Title\Title::canHaveTalkPage
+ * @covers \MediaWiki\Title\Title::canHaveTalkPage
*
* @param Title $title
* @param bool $expected
@@ -1518,7 +1518,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider provideGetTalkPage_good
- * @covers MediaWiki\Title\Title::getTalkPageIfDefined
+ * @covers \MediaWiki\Title\Title::getTalkPageIfDefined
*/
public function testGetTalkPage_good( Title $title, Title $expected ) {
$actual = $title->getTalkPage();
@@ -1527,7 +1527,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider provideGetTalkPage_bad
- * @covers MediaWiki\Title\Title::getTalkPageIfDefined
+ * @covers \MediaWiki\Title\Title::getTalkPageIfDefined
*/
public function testGetTalkPage_bad( Title $title ) {
$this->expectException( MWException::class );
@@ -1536,7 +1536,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider provideGetTalkPage_broken
- * @covers MediaWiki\Title\Title::getTalkPageIfDefined
+ * @covers \MediaWiki\Title\Title::getTalkPageIfDefined
*/
public function testGetTalkPage_broken( Title $title, Title $expected, $valid ) {
// NOTE: Eventually we want to throw in this case. But while there is still code that
@@ -1549,7 +1549,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider provideGetTalkPage_good
- * @covers MediaWiki\Title\Title::getTalkPageIfDefined
+ * @covers \MediaWiki\Title\Title::getTalkPageIfDefined
*/
public function testGetTalkPageIfDefined_good( Title $title, Title $expected ) {
$actual = $title->getTalkPageIfDefined();
@@ -1559,7 +1559,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider provideGetTalkPage_bad
- * @covers MediaWiki\Title\Title::getTalkPageIfDefined
+ * @covers \MediaWiki\Title\Title::getTalkPageIfDefined
*/
public function testGetTalkPageIfDefined_bad( Title $title ) {
$talk = $title->getTalkPageIfDefined();
@@ -1571,7 +1571,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider provideGetSubjectPage_good
- * @covers MediaWiki\Title\Title::getSubjectPage
+ * @covers \MediaWiki\Title\Title::getSubjectPage
*/
public function testGetSubjectPage_good( Title $title, Title $expected ) {
$actual = $title->getSubjectPage();
@@ -1580,7 +1580,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider provideGetOtherPage_good
- * @covers MediaWiki\Title\Title::getOtherPage
+ * @covers \MediaWiki\Title\Title::getOtherPage
*/
public function testGetOtherPage_good( Title $title, Title $expected ) {
$actual = $title->getOtherPage();
@@ -1589,7 +1589,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider provideGetTalkPage_bad
- * @covers MediaWiki\Title\Title::getOtherPage
+ * @covers \MediaWiki\Title\Title::getOtherPage
*/
public function testGetOtherPage_bad( Title $title ) {
$this->expectException( MWException::class );
@@ -1614,7 +1614,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider provideIsMovable
- * @covers MediaWiki\Title\Title::isMovable
+ * @covers \MediaWiki\Title\Title::isMovable
*
* @param string|Title $title
* @param bool $expected
@@ -1667,7 +1667,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Title\Title::getPrefixedText
+ * @covers \MediaWiki\Title\Title::getPrefixedText
* @dataProvider provideGetPrefixedText
*/
public function testGetPrefixedText( Title $title, $expected ) {
@@ -1710,7 +1710,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Title\Title::getPrefixedDBKey
+ * @covers \MediaWiki\Title\Title::getPrefixedDBKey
* @dataProvider provideGetPrefixedDBKey
*/
public function testGetPrefixedDBKey( Title $title, $expected ) {
@@ -1727,7 +1727,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Title\Title::getFragmentForURL
+ * @covers \MediaWiki\Title\Title::getFragmentForURL
* @dataProvider provideGetFragmentForURL
*
* @param string $titleStr
@@ -1758,7 +1758,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Title\Title::isRawHtmlMessage
+ * @covers \MediaWiki\Title\Title::isRawHtmlMessage
* @dataProvider provideIsRawHtmlMessage
*/
public function testIsRawHtmlMessage( $textForm, $expected ) {
@@ -1776,7 +1776,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Title\Title::newMainPage
+ * @covers \MediaWiki\Title\Title::newMainPage
*/
public function testNewMainPage() {
$mock = $this->createMock( MessageCache::class );
@@ -1794,7 +1794,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
/**
* Regression test for T297571
*
- * @covers MediaWiki\Title\Title::newMainPage
+ * @covers \MediaWiki\Title\Title::newMainPage
*/
public function testNewMainPageNoRecursion() {
$mock = $this->createMock( MessageCache::class );
@@ -1809,7 +1809,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Title\Title::newMainPage
+ * @covers \MediaWiki\Title\Title::newMainPage
*/
public function testNewMainPageWithLocal() {
$local = $this->createMock( MessageLocalizer::class );
@@ -1822,7 +1822,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Title\Title::getTitleProtection
+ * @covers \MediaWiki\Title\Title::getTitleProtection
*/
public function testGetTitleProtection() {
$title = $this->getNonexistingTestPage( 'UTest1' )->getTitle();
@@ -1830,7 +1830,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Title\Title::deleteTitleProtection
+ * @covers \MediaWiki\Title\Title::deleteTitleProtection
*/
public function testDeleteTitleProtection() {
$title = $this->getExistingTestPage( 'UTest1' )->getTitle();
@@ -1838,7 +1838,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Title\Title::getCdnUrls
+ * @covers \MediaWiki\Title\Title::getCdnUrls
*/
public function testGetCdnUrls() {
$this->hideDeprecated( Title::class . '::getCdnUrls' );
@@ -1905,7 +1905,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Title\Title::getNsText
+ * @covers \MediaWiki\Title\Title::getNsText
* @dataProvider provideNamespaces
*/
public function testGetNsText( $namespace, $expected ) {
@@ -1927,7 +1927,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Title\Title::getSubjectNsText
+ * @covers \MediaWiki\Title\Title::getSubjectNsText
* @dataProvider providePagesWithSubjects
*/
public function testGetSubjectNsText( Title $title, $expected ) {
@@ -1944,7 +1944,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Title\Title::getTalkNsText
+ * @covers \MediaWiki\Title\Title::getTalkNsText
* @dataProvider provideTitlesWithTalkPages
*/
public function testGetTalkNsText( Title $title, $expected ) {
@@ -1953,7 +1953,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Title\Title::isSpecial
+ * @covers \MediaWiki\Title\Title::isSpecial
*/
public function testIsSpecial() {
$title = Title::makeTitle( NS_SPECIAL, 'Recentchanges/Subpage' );
@@ -1961,7 +1961,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Title\Title::isSpecial
+ * @covers \MediaWiki\Title\Title::isSpecial
*/
public function testIsNotSpecial() {
$title = Title::newFromText( 'NotSpecialPage/Subpage', NS_SPECIAL );
@@ -1969,7 +1969,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Title\Title::isTalkPage
+ * @covers \MediaWiki\Title\Title::isTalkPage
*/
public function testIsTalkPage() {
$title = Title::newFromText( 'Talk page', NS_TALK );
@@ -1998,8 +1998,8 @@ class TitleTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Title\Title::isSubpage
- * @covers MediaWiki\Title\Title::isSubpageOf
+ * @covers \MediaWiki\Title\Title::isSubpage
+ * @covers \MediaWiki\Title\Title::isSubpageOf
* @dataProvider provideNsWithSubpagesSupport
*/
public function testIsSubpageOfWithNamespacesSubpages( $namespace, $pageName, $subpageName ) {
@@ -2018,8 +2018,8 @@ class TitleTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Title\Title::isSubpage
- * @covers MediaWiki\Title\Title::isSubpageOf
+ * @covers \MediaWiki\Title\Title::isSubpage
+ * @covers \MediaWiki\Title\Title::isSubpageOf
* @dataProvider provideNsWithNoSubpages
*/
public function testIsSubpageOfWithoutNamespacesSubpages( $namespace, $pageName, $subpageName ) {
@@ -2039,7 +2039,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Title\Title::getEditURL
+ * @covers \MediaWiki\Title\Title::getEditURL
* @dataProvider provideTitleEditURLs
*/
public function testGetEditURL( Title $title, $expected ) {
@@ -2056,7 +2056,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Title\Title::getEditURL
+ * @covers \MediaWiki\Title\Title::getEditURL
* @dataProvider provideTitleEditURLsWithActionPaths
*/
public function testGetEditUrlWithActionPaths( Title $title, $expected ) {
@@ -2066,16 +2066,16 @@ class TitleTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Title\Title::isMainPage
- * @covers MediaWiki\Title\Title::equals
+ * @covers \MediaWiki\Title\Title::isMainPage
+ * @covers \MediaWiki\Title\Title::equals
*/
public function testIsMainPage() {
$this->assertTrue( Title::newMainPage()->isMainPage() );
}
/**
- * @covers MediaWiki\Title\Title::isMainPage
- * @covers MediaWiki\Title\Title::equals
+ * @covers \MediaWiki\Title\Title::isMainPage
+ * @covers \MediaWiki\Title\Title::equals
* @dataProvider provideMainPageTitles
*/
public function testIsNotMainPage( Title $title, $expected ) {
@@ -2090,8 +2090,8 @@ class TitleTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Title\Title::getPrefixedURL
- * @covers MediaWiki\Title\Title::prefix
+ * @covers \MediaWiki\Title\Title::getPrefixedURL
+ * @covers \MediaWiki\Title\Title::prefix
* @dataProvider provideDataForTestGetPrefixedURL
*/
public function testGetPrefixedURL( Title $title, $expected ) {
@@ -2114,7 +2114,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Title\Title::__toString
+ * @covers \MediaWiki\Title\Title::__toString
*/
public function testToString() {
$title = Title::makeTitle( NS_USER, 'User test' );
@@ -2123,7 +2123,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Title\Title::getFullText
+ * @covers \MediaWiki\Title\Title::getFullText
* @dataProvider provideDataForTestGetFullText
*/
public function testGetFullText( Title $title, $expected ) {
@@ -2191,7 +2191,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Title\Title::isSamePageAs
+ * @covers \MediaWiki\Title\Title::isSamePageAs
* @dataProvider provideIsSamePageAs
*/
public function testIsSamePageAs( Title $firstValue, $secondValue, $expectedSame ) {
@@ -2202,16 +2202,16 @@ class TitleTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Title\Title::getArticleID
- * @covers MediaWiki\Title\Title::getId
- * @covers MediaWiki\Title\Title::getLength
- * @covers MediaWiki\Title\Title::getLatestRevID
- * @covers MediaWiki\Title\Title::exists
- * @covers MediaWiki\Title\Title::isNewPage
- * @covers MediaWiki\Title\Title::isRedirect
- * @covers MediaWiki\Title\Title::getTouched
- * @covers MediaWiki\Title\Title::getContentModel
- * @covers MediaWiki\Title\Title::getFieldFromPageStore
+ * @covers \MediaWiki\Title\Title::getArticleID
+ * @covers \MediaWiki\Title\Title::getId
+ * @covers \MediaWiki\Title\Title::getLength
+ * @covers \MediaWiki\Title\Title::getLatestRevID
+ * @covers \MediaWiki\Title\Title::exists
+ * @covers \MediaWiki\Title\Title::isNewPage
+ * @covers \MediaWiki\Title\Title::isRedirect
+ * @covers \MediaWiki\Title\Title::getTouched
+ * @covers \MediaWiki\Title\Title::getContentModel
+ * @covers \MediaWiki\Title\Title::getFieldFromPageStore
*/
public function testGetFieldsOfNonExistingPage() {
$title = Title::makeTitle( NS_MAIN, 'ThisDoesNotExist-92347852349' );
@@ -2228,7 +2228,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Title\Title::getDefaultSystemMessage
+ * @covers \MediaWiki\Title\Title::getDefaultSystemMessage
*/
public function testGetDefaultSystemMessage() {
$title = Title::makeTitle( NS_MEDIAWIKI, 'Logouttext' );
@@ -2238,7 +2238,7 @@ class TitleTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Title\Title::getDefaultSystemMessage
+ * @covers \MediaWiki\Title\Title::getDefaultSystemMessage
*/
public function testGetDefaultSystemMessageReturnsNull() {
$title = Title::makeTitle( NS_MAIN, 'Some title' );
diff --git a/tests/phpunit/includes/title/TitleUrlTest.php b/tests/phpunit/includes/title/TitleUrlTest.php
index 0e483e3eeafa..cb0bd612735a 100644
--- a/tests/phpunit/includes/title/TitleUrlTest.php
+++ b/tests/phpunit/includes/title/TitleUrlTest.php
@@ -8,12 +8,12 @@ use MediaWiki\Title\Title;
/**
* @group Database
*
- * @covers MediaWiki\Title\Title::getLocalURL
- * @covers MediaWiki\Title\Title::getLinkURL
- * @covers MediaWiki\Title\Title::getFullURL
- * @covers MediaWiki\Title\Title::getFullUrlForRedirect
- * @covers MediaWiki\Title\Title::getCanonicalURL
- * @covers MediaWiki\Title\Title::getInternalURL
+ * @covers \MediaWiki\Title\Title::getLocalURL
+ * @covers \MediaWiki\Title\Title::getLinkURL
+ * @covers \MediaWiki\Title\Title::getFullURL
+ * @covers \MediaWiki\Title\Title::getFullUrlForRedirect
+ * @covers \MediaWiki\Title\Title::getCanonicalURL
+ * @covers \MediaWiki\Title\Title::getInternalURL
*/
class TitleUrlTest extends MediaWikiLangTestCase {
use DummyServicesTrait;
diff --git a/tests/phpunit/includes/upload/UploadBaseTest.php b/tests/phpunit/includes/upload/UploadBaseTest.php
index 393a4f31e663..fba56adf081f 100644
--- a/tests/phpunit/includes/upload/UploadBaseTest.php
+++ b/tests/phpunit/includes/upload/UploadBaseTest.php
@@ -32,7 +32,7 @@ class UploadBaseTest extends MediaWikiIntegrationTestCase {
* of UploadBase::getTitle() and then the actual returned title
*
* @dataProvider provideTestTitleValidation
- * @covers UploadBase::getTitle
+ * @covers \UploadBase::getTitle
*/
public function testTitleValidation( $srcFilename, $dstFilename, $code, $msg ) {
/* Check the result code */
@@ -85,7 +85,7 @@ class UploadBaseTest extends MediaWikiIntegrationTestCase {
/**
* Test the upload verification functions
- * @covers UploadBase::verifyUpload
+ * @covers \UploadBase::verifyUpload
*/
public function testVerifyUpload() {
/* Setup with zero file size */
@@ -108,7 +108,7 @@ class UploadBaseTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers UploadBase::verifyUpload
+ * @covers \UploadBase::verifyUpload
*
* test uploading a 100 bytes file with $wgMaxUploadSize = 100
*
@@ -133,7 +133,7 @@ class UploadBaseTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers UploadBase::checkSvgScriptCallback
+ * @covers \UploadBase::checkSvgScriptCallback
* @dataProvider provideCheckSvgScriptCallback
*/
public function testCheckSvgScriptCallback( $svg, $wellFormed, $filterMatch, $message ) {
@@ -539,7 +539,7 @@ class UploadBaseTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers UploadBase::detectScriptInSvg
+ * @covers \UploadBase::detectScriptInSvg
* @dataProvider provideDetectScriptInSvg
*/
public function testDetectScriptInSvg( $svg, $expected, $message ) {
@@ -585,7 +585,7 @@ class UploadBaseTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers UploadBase::checkXMLEncodingMissmatch
+ * @covers \UploadBase::checkXMLEncodingMissmatch
* @dataProvider provideCheckXMLEncodingMissmatch
*/
public function testCheckXMLEncodingMissmatch( $fileContents, $evil ) {
@@ -604,7 +604,7 @@ class UploadBaseTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers UploadBase::detectScript
+ * @covers \UploadBase::detectScript
* @dataProvider provideDetectScript
*/
public function testDetectScript( $filename, $mime, $extension, $expected, $message ) {
diff --git a/tests/phpunit/includes/upload/UploadFromUrlTest.php b/tests/phpunit/includes/upload/UploadFromUrlTest.php
index ba4617f02047..da1aa7003c56 100644
--- a/tests/phpunit/includes/upload/UploadFromUrlTest.php
+++ b/tests/phpunit/includes/upload/UploadFromUrlTest.php
@@ -10,7 +10,7 @@ use Wikimedia\TestingAccessWrapper;
* @group Upload
* @group Database
*
- * @covers UploadFromUrl
+ * @covers \UploadFromUrl
*/
class UploadFromUrlTest extends ApiTestCase {
use MockHttpTrait;
diff --git a/tests/phpunit/includes/upload/UploadStashTest.php b/tests/phpunit/includes/upload/UploadStashTest.php
index 33a5afc571cd..4ff5cb44492d 100644
--- a/tests/phpunit/includes/upload/UploadStashTest.php
+++ b/tests/phpunit/includes/upload/UploadStashTest.php
@@ -5,7 +5,7 @@ use MediaWiki\Request\FauxRequest;
/**
* @group Database
*
- * @covers UploadStash
+ * @covers \UploadStash
*/
class UploadStashTest extends MediaWikiIntegrationTestCase {
/**
diff --git a/tests/phpunit/includes/user/ActorMigrationTest.php b/tests/phpunit/includes/user/ActorMigrationTest.php
index a571b6eed3b3..63d1d8bb7a02 100644
--- a/tests/phpunit/includes/user/ActorMigrationTest.php
+++ b/tests/phpunit/includes/user/ActorMigrationTest.php
@@ -11,8 +11,8 @@ use Wikimedia\Rdbms\IMaintainableDatabase;
/**
* @group Database
- * @covers MediaWiki\User\ActorMigration
- * @covers MediaWiki\User\ActorMigrationBase
+ * @covers \MediaWiki\User\ActorMigration
+ * @covers \MediaWiki\User\ActorMigrationBase
*/
class ActorMigrationTest extends MediaWikiLangTestCase {
diff --git a/tests/phpunit/includes/user/UserTest.php b/tests/phpunit/includes/user/UserTest.php
index 3a1057903ceb..15668cff2c4d 100644
--- a/tests/phpunit/includes/user/UserTest.php
+++ b/tests/phpunit/includes/user/UserTest.php
@@ -242,7 +242,7 @@ class UserTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers User::getRightDescription
+ * @covers \User::getRightDescription
*/
public function testGetRightDescription() {
$key = 'deletechangetags';
@@ -251,7 +251,7 @@ class UserTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers User::getRightDescriptionHtml
+ * @covers \User::getRightDescriptionHtml
*/
public function testGetParsedRightDescription() {
$key = 'deletechangetags';
diff --git a/tests/phpunit/includes/utils/BatchRowUpdateTest.php b/tests/phpunit/includes/utils/BatchRowUpdateTest.php
index 7cd99b21509c..dfe7b15cf093 100644
--- a/tests/phpunit/includes/utils/BatchRowUpdateTest.php
+++ b/tests/phpunit/includes/utils/BatchRowUpdateTest.php
@@ -7,9 +7,9 @@ use Wikimedia\Rdbms\Platform\SQLPlatform;
*
* @group db
*
- * @covers BatchRowUpdate
- * @covers BatchRowIterator
- * @covers BatchRowWriter
+ * @covers \BatchRowUpdate
+ * @covers \BatchRowIterator
+ * @covers \BatchRowWriter
*/
class BatchRowUpdateTest extends MediaWikiIntegrationTestCase {
diff --git a/tests/phpunit/includes/utils/FileContentsHasherTest.php b/tests/phpunit/includes/utils/FileContentsHasherTest.php
index 38d52e690b32..33e047fb3c8c 100644
--- a/tests/phpunit/includes/utils/FileContentsHasherTest.php
+++ b/tests/phpunit/includes/utils/FileContentsHasherTest.php
@@ -1,7 +1,7 @@
<?php
/**
- * @covers FileContentsHasher
+ * @covers \FileContentsHasher
*/
class FileContentsHasherTest extends PHPUnit\Framework\TestCase {
diff --git a/tests/phpunit/includes/utils/MWCryptHKDFTest.php b/tests/phpunit/includes/utils/MWCryptHKDFTest.php
index 1d6839c409a2..526dd85a081f 100644
--- a/tests/phpunit/includes/utils/MWCryptHKDFTest.php
+++ b/tests/phpunit/includes/utils/MWCryptHKDFTest.php
@@ -4,8 +4,8 @@ use MediaWiki\MainConfigNames;
/**
* @group HKDF
- * @covers CryptHKDF
- * @covers MWCryptHKDF
+ * @covers \CryptHKDF
+ * @covers \MWCryptHKDF
*/
class MWCryptHKDFTest extends MediaWikiIntegrationTestCase {
diff --git a/tests/phpunit/includes/utils/ZipDirectoryReaderTest.php b/tests/phpunit/includes/utils/ZipDirectoryReaderTest.php
index 8ae611774590..05db0e42aadf 100644
--- a/tests/phpunit/includes/utils/ZipDirectoryReaderTest.php
+++ b/tests/phpunit/includes/utils/ZipDirectoryReaderTest.php
@@ -1,7 +1,7 @@
<?php
/**
- * @covers ZipDirectoryReader
+ * @covers \ZipDirectoryReader
*/
class ZipDirectoryReaderTest extends MediaWikiIntegrationTestCase {
diff --git a/tests/phpunit/includes/watcheditem/WatchedItemQueryServiceIntegrationTest.php b/tests/phpunit/includes/watcheditem/WatchedItemQueryServiceIntegrationTest.php
index c549e58be815..4f34ae21c7c5 100644
--- a/tests/phpunit/includes/watcheditem/WatchedItemQueryServiceIntegrationTest.php
+++ b/tests/phpunit/includes/watcheditem/WatchedItemQueryServiceIntegrationTest.php
@@ -8,7 +8,7 @@ use MediaWiki\User\User;
/**
* @group Database
*
- * @covers WatchedItemQueryService
+ * @covers \WatchedItemQueryService
*/
class WatchedItemQueryServiceIntegrationTest extends MediaWikiIntegrationTestCase {
diff --git a/tests/phpunit/includes/watcheditem/WatchedItemStoreIntegrationTest.php b/tests/phpunit/includes/watcheditem/WatchedItemStoreIntegrationTest.php
index 7112c7fcd37c..fa12d1c747b7 100644
--- a/tests/phpunit/includes/watcheditem/WatchedItemStoreIntegrationTest.php
+++ b/tests/phpunit/includes/watcheditem/WatchedItemStoreIntegrationTest.php
@@ -12,7 +12,7 @@ use Wikimedia\Timestamp\ConvertibleTimestamp;
*
* @group Database
*
- * @covers WatchedItemStore
+ * @covers \WatchedItemStore
*/
class WatchedItemStoreIntegrationTest extends MediaWikiIntegrationTestCase {
diff --git a/tests/phpunit/includes/watcheditem/WatchedItemStoreUnitTest.php b/tests/phpunit/includes/watcheditem/WatchedItemStoreUnitTest.php
index 2c34b31d7e76..79b52db56572 100644
--- a/tests/phpunit/includes/watcheditem/WatchedItemStoreUnitTest.php
+++ b/tests/phpunit/includes/watcheditem/WatchedItemStoreUnitTest.php
@@ -31,7 +31,7 @@ use Wikimedia\TestingAccessWrapper;
* @author DannyS712
* @todo This test should become unittest again once LinksMigration is done (T300222)
*
- * @covers WatchedItemStore
+ * @covers \WatchedItemStore
*/
class WatchedItemStoreUnitTest extends MediaWikiIntegrationTestCase {
use DummyServicesTrait;
diff --git a/tests/phpunit/includes/xml/XmlTest.php b/tests/phpunit/includes/xml/XmlTest.php
index 1f9759425456..88936f9b1491 100644
--- a/tests/phpunit/includes/xml/XmlTest.php
+++ b/tests/phpunit/includes/xml/XmlTest.php
@@ -6,7 +6,7 @@ use MediaWiki\MainConfigNames;
* See also \MediaWiki\Tests\Unit\XmlTest for the pure unit tests
*
* @group Xml
- * @covers Xml
+ * @covers \Xml
*/
class XmlTest extends MediaWikiIntegrationTestCase {
diff --git a/tests/phpunit/integration/includes/Html/TemplateParserIntegrationTest.php b/tests/phpunit/integration/includes/Html/TemplateParserIntegrationTest.php
index 6964af96415e..e847606eb9f4 100644
--- a/tests/phpunit/integration/includes/Html/TemplateParserIntegrationTest.php
+++ b/tests/phpunit/integration/includes/Html/TemplateParserIntegrationTest.php
@@ -5,7 +5,7 @@ use MediaWiki\MainConfigNames;
/**
* @group Templates
- * @coversDefaultClass MediaWiki\Html\TemplateParser
+ * @coversDefaultClass \MediaWiki\Html\TemplateParser
*/
class TemplateParserIntegrationTest extends MediaWikiIntegrationTestCase {
@@ -171,7 +171,7 @@ class TemplateParserIntegrationTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider provideProcessTemplate
- * @covers MediaWiki\Html\TemplateParser
+ * @covers \MediaWiki\Html\TemplateParser
*/
public function testProcessTemplate( $name, $args, $result, $exception = false ) {
$tp = new TemplateParser( self::DIR, new EmptyBagOStuff );
@@ -293,7 +293,7 @@ class TemplateParserIntegrationTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Html\TemplateParser::compile
+ * @covers \MediaWiki\Html\TemplateParser::compile
*/
public function testCompileReturnsPHPCodeAndMetadata() {
$store = null;
diff --git a/tests/phpunit/integration/includes/MediaWikiEntryPointTest.php b/tests/phpunit/integration/includes/MediaWikiEntryPointTest.php
index 350c8213bfcd..be10ce81a4a5 100644
--- a/tests/phpunit/integration/includes/MediaWikiEntryPointTest.php
+++ b/tests/phpunit/integration/includes/MediaWikiEntryPointTest.php
@@ -9,7 +9,7 @@ use RequestContext;
use Wikimedia\TestingAccessWrapper;
/**
- * @covers MediaWiki\MediaWikiEntryPoint
+ * @covers \MediaWiki\MediaWikiEntryPoint
*/
class MediaWikiEntryPointTest extends TestCase {
diff --git a/tests/phpunit/integration/includes/Rest/Handler/ParsoidHandlerTest.php b/tests/phpunit/integration/includes/Rest/Handler/ParsoidHandlerTest.php
index b6d08775cbc2..7cad1b7e341a 100644
--- a/tests/phpunit/integration/includes/Rest/Handler/ParsoidHandlerTest.php
+++ b/tests/phpunit/integration/includes/Rest/Handler/ParsoidHandlerTest.php
@@ -971,8 +971,8 @@ class ParsoidHandlerTest extends MediaWikiIntegrationTestCase {
* @param string[] $expectedText
* @param string[] $expectedHeaders
*
- * @covers MediaWiki\Parser\Parsoid\HtmlToContentTransform
- * @covers MediaWiki\Rest\Handler\ParsoidHandler::html2wt
+ * @covers \MediaWiki\Parser\Parsoid\HtmlToContentTransform
+ * @covers \MediaWiki\Rest\Handler\ParsoidHandler::html2wt
*/
public function testHtml2wt(
array $attribs,
diff --git a/tests/phpunit/integration/includes/Storage/UndoIntegrationTest.php b/tests/phpunit/integration/includes/Storage/UndoIntegrationTest.php
index a78e46237842..a9cfa4c12606 100644
--- a/tests/phpunit/integration/includes/Storage/UndoIntegrationTest.php
+++ b/tests/phpunit/integration/includes/Storage/UndoIntegrationTest.php
@@ -21,9 +21,9 @@ use WikitextContent;
* Integration tests for undos.
* TODO: This should also test edits with multiple slots.
*
- * @covers McrUndoAction
- * @covers WikiPage
- * @covers MediaWiki\EditPage\EditPage
+ * @covers \McrUndoAction
+ * @covers \WikiPage
+ * @covers \MediaWiki\EditPage\EditPage
*
* @group Database
* @group medium
diff --git a/tests/phpunit/integration/includes/block/BlockUserTest.php b/tests/phpunit/integration/includes/block/BlockUserTest.php
index c0b3e6235530..5f24fcdba99a 100644
--- a/tests/phpunit/integration/includes/block/BlockUserTest.php
+++ b/tests/phpunit/integration/includes/block/BlockUserTest.php
@@ -30,7 +30,7 @@ class BlockUserTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Block\BlockUser::placeBlock
+ * @covers \MediaWiki\Block\BlockUser::placeBlock
*/
public function testValidTarget() {
$status = $this->blockUserFactory->newBlockUser(
@@ -51,7 +51,7 @@ class BlockUserTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Block\BlockUser::placeBlock
+ * @covers \MediaWiki\Block\BlockUser::placeBlock
*/
public function testHideUser() {
$status = $this->blockUserFactory->newBlockUser(
@@ -71,7 +71,7 @@ class BlockUserTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Block\BlockUser::placeBlock
+ * @covers \MediaWiki\Block\BlockUser::placeBlock
*/
public function testExistingPage() {
$this->getExistingTestPage( 'Existing Page' );
@@ -92,7 +92,7 @@ class BlockUserTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Block\BlockUser::placeBlock
+ * @covers \MediaWiki\Block\BlockUser::placeBlock
*/
public function testNonexistentPage() {
$pageRestriction = PageRestriction::class;
@@ -109,7 +109,7 @@ class BlockUserTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Block\BlockUser::placeBlockInternal
+ * @covers \MediaWiki\Block\BlockUser::placeBlockInternal
*/
public function testReblock() {
$blockStatus = $this->blockUserFactory->newBlockUser(
@@ -153,7 +153,7 @@ class BlockUserTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Block\BlockUser::placeBlockInternal
+ * @covers \MediaWiki\Block\BlockUser::placeBlockInternal
*/
public function testPostHook() {
$hookBlock = false;
@@ -198,7 +198,7 @@ class BlockUserTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\Block\BlockUser::placeBlockInternal
+ * @covers \MediaWiki\Block\BlockUser::placeBlockInternal
*/
public function testIPBlockAllowedAutoblockPreserved() {
$blockStatus = $this->blockUserFactory->newBlockUser(
diff --git a/tests/phpunit/integration/includes/cache/HtmlCacheUpdaterIntegrationTest.php b/tests/phpunit/integration/includes/cache/HtmlCacheUpdaterIntegrationTest.php
index 1b310a7c3b57..3e5e2bf3dee4 100644
--- a/tests/phpunit/integration/includes/cache/HtmlCacheUpdaterIntegrationTest.php
+++ b/tests/phpunit/integration/includes/cache/HtmlCacheUpdaterIntegrationTest.php
@@ -97,7 +97,7 @@ class HtmlCacheUpdaterIntegrationTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider providePurgeTitleUrls
- * @covers HtmlCacheUpdater::purgeTitleUrls
+ * @covers \HtmlCacheUpdater::purgeTitleUrls
*/
public function testPurgeTitleUrls( $pages, $expected ) {
$this->setService( 'EventRelayerGroup', $this->getEventRelayGroup( $expected ) );
@@ -107,7 +107,7 @@ class HtmlCacheUpdaterIntegrationTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers HtmlCacheUpdater::purgeUrls
+ * @covers \HtmlCacheUpdater::purgeUrls
*/
public function testPurgeUrls() {
$urls = [ 'https://acme.test/wiki/Foo', 'https://acme.test/wiki/Bar', ];
diff --git a/tests/phpunit/integration/includes/context/DerivativeContextTest.php b/tests/phpunit/integration/includes/context/DerivativeContextTest.php
index f7d9571cb8cf..20e3fdc8a48f 100644
--- a/tests/phpunit/integration/includes/context/DerivativeContextTest.php
+++ b/tests/phpunit/integration/includes/context/DerivativeContextTest.php
@@ -17,7 +17,7 @@ use MediaWikiIntegrationTestCase;
use WikiPage;
/**
- * @covers DerivativeContext
+ * @covers \DerivativeContext
*/
class DerivativeContextTest extends MediaWikiIntegrationTestCase {
diff --git a/tests/phpunit/integration/includes/context/RequestContextTest.php b/tests/phpunit/integration/includes/context/RequestContextTest.php
index 631c3669c0d9..2ee387fc5d7d 100644
--- a/tests/phpunit/integration/includes/context/RequestContextTest.php
+++ b/tests/phpunit/integration/includes/context/RequestContextTest.php
@@ -19,7 +19,7 @@ use Skin;
use SkinFallback;
/**
- * @covers RequestContext
+ * @covers \RequestContext
* @group Database
* @group RequestContext
*/
@@ -65,8 +65,8 @@ class RequestContextTest extends MediaWikiIntegrationTestCase {
/**
* Test the relationship between title and wikipage in RequestContext
- * @covers RequestContext::getWikiPage
- * @covers RequestContext::getTitle
+ * @covers \RequestContext::getWikiPage
+ * @covers \RequestContext::getTitle
*/
public function testWikiPageTitle() {
$context = new RequestContext();
@@ -91,7 +91,7 @@ class RequestContextTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers RequestContext::importScopedSession
+ * @covers \RequestContext::importScopedSession
*/
public function testImportScopedSession() {
// Make sure session handling is started
@@ -172,10 +172,10 @@ class RequestContextTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers RequestContext::getUser
- * @covers RequestContext::setUser
- * @covers RequestContext::getAuthority
- * @covers RequestContext::setAuthority
+ * @covers \RequestContext::getUser
+ * @covers \RequestContext::setUser
+ * @covers \RequestContext::getAuthority
+ * @covers \RequestContext::setAuthority
*/
public function testTestGetSetAuthority() {
$context = new RequestContext();
@@ -195,7 +195,7 @@ class RequestContextTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers RequestContext
+ * @covers \RequestContext
*/
public function testGetActionName() {
$factory = $this->createMock( ActionFactory::class );
@@ -214,7 +214,7 @@ class RequestContextTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers RequestContext
+ * @covers \RequestContext
*/
public function testSetActionName() {
$factory = $this->createMock( ActionFactory::class );
@@ -229,7 +229,7 @@ class RequestContextTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers RequestContext
+ * @covers \RequestContext
*/
public function testOverideActionName() {
$factory = $this->createMock( ActionFactory::class );
diff --git a/tests/phpunit/integration/includes/db/DatabasePostgresTest.php b/tests/phpunit/integration/includes/db/DatabasePostgresTest.php
index 59cd3128dde7..27110dfd03ab 100644
--- a/tests/phpunit/integration/includes/db/DatabasePostgresTest.php
+++ b/tests/phpunit/integration/includes/db/DatabasePostgresTest.php
@@ -86,7 +86,7 @@ class DatabasePostgresTest extends MediaWikiIntegrationTestCase {
/**
* FIXME: See https://phabricator.wikimedia.org/T259084.
* @group Broken
- * @covers Wikimedia\Rdbms\DatabasePostgres::insert
+ * @covers \Wikimedia\Rdbms\DatabasePostgres::insert
*/
public function testInsertIgnoreOld() {
if ( $this->db->getServerVersion() < 9.5 ) {
@@ -107,7 +107,7 @@ class DatabasePostgresTest extends MediaWikiIntegrationTestCase {
/**
* FIXME: See https://phabricator.wikimedia.org/T259084.
* @group Broken
- * @covers Wikimedia\Rdbms\DatabasePostgres::insert
+ * @covers \Wikimedia\Rdbms\DatabasePostgres::insert
*/
public function testInsertIgnoreNew() {
if ( $this->db->getServerVersion() < 9.5 ) {
@@ -178,7 +178,7 @@ class DatabasePostgresTest extends MediaWikiIntegrationTestCase {
/**
* FIXME: See https://phabricator.wikimedia.org/T259084.
* @group Broken
- * @covers Wikimedia\Rdbms\DatabasePostgres::doInsertSelectNative
+ * @covers \Wikimedia\Rdbms\DatabasePostgres::doInsertSelectNative
*/
public function testInsertSelectIgnoreOld() {
if ( $this->db->getServerVersion() < 9.5 ) {
@@ -199,7 +199,7 @@ class DatabasePostgresTest extends MediaWikiIntegrationTestCase {
/**
* FIXME: See https://phabricator.wikimedia.org/T259084.
* @group Broken
- * @covers Wikimedia\Rdbms\DatabasePostgres::doInsertSelectNative
+ * @covers \Wikimedia\Rdbms\DatabasePostgres::doInsertSelectNative
*/
public function testInsertSelectIgnoreNew() {
if ( $this->db->getServerVersion() < 9.5 ) {
diff --git a/tests/phpunit/integration/includes/diff/DifferenceEngineSlotDiffRendererIntegrationTest.php b/tests/phpunit/integration/includes/diff/DifferenceEngineSlotDiffRendererIntegrationTest.php
index 2f8d9ea28d4f..6ab61895491b 100644
--- a/tests/phpunit/integration/includes/diff/DifferenceEngineSlotDiffRendererIntegrationTest.php
+++ b/tests/phpunit/integration/includes/diff/DifferenceEngineSlotDiffRendererIntegrationTest.php
@@ -8,7 +8,7 @@ use MediaWiki\MainConfigNames;
class DifferenceEngineSlotDiffRendererIntegrationTest extends \MediaWikiIntegrationTestCase {
/**
- * @covers DifferenceEngineSlotDiffRenderer::getExtraCacheKeys
+ * @covers \DifferenceEngineSlotDiffRenderer::getExtraCacheKeys
*/
public function testGetExtraCacheKeys_noExternalDiffEngineConfigured() {
$this->overrideConfigValues( [
diff --git a/tests/phpunit/integration/includes/filerepo/LocalAndForeignDBRepoTest.php b/tests/phpunit/integration/includes/filerepo/LocalAndForeignDBRepoTest.php
index cb582712b971..f1538f90ae51 100644
--- a/tests/phpunit/integration/includes/filerepo/LocalAndForeignDBRepoTest.php
+++ b/tests/phpunit/integration/includes/filerepo/LocalAndForeignDBRepoTest.php
@@ -4,8 +4,8 @@ use MediaWiki\WikiMap\WikiMap;
class LocalAndForeignDBRepoTest extends MediaWikiIntegrationTestCase {
/**
- * @covers LocalRepo::getSharedCacheKey
- * @covers ForeignDBViaLBRepo::getSharedCacheKey
+ * @covers \LocalRepo::getSharedCacheKey
+ * @covers \ForeignDBViaLBRepo::getSharedCacheKey
*/
public function testsSharedCacheKey() {
$wikiId = WikiMap::getCurrentWikiDbDomain()->getId();
@@ -53,8 +53,8 @@ class LocalAndForeignDBRepoTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers LocalRepo::getLocalCacheKey
- * @covers ForeignDBViaLBRepo::getLocalCacheKey
+ * @covers \LocalRepo::getLocalCacheKey
+ * @covers \ForeignDBViaLBRepo::getLocalCacheKey
*/
public function testsLocalCacheKey() {
$wikiId = WikiMap::getCurrentWikiDbDomain()->getId();
diff --git a/tests/phpunit/integration/includes/htmlform/HTMLRestrictionsFieldTest.php b/tests/phpunit/integration/includes/htmlform/HTMLRestrictionsFieldTest.php
index 4dda81cf519c..71b68ae48097 100644
--- a/tests/phpunit/integration/includes/htmlform/HTMLRestrictionsFieldTest.php
+++ b/tests/phpunit/integration/includes/htmlform/HTMLRestrictionsFieldTest.php
@@ -6,7 +6,7 @@ use MediaWiki\Request\FauxRequest;
use MediaWiki\Title\Title;
/**
- * @covers HTMLRestrictionsField
+ * @covers \HTMLRestrictionsField
*/
class HTMLRestrictionsFieldTest extends MediaWikiIntegrationTestCase {
diff --git a/tests/phpunit/integration/includes/htmlform/HTMLTitleTextFieldTest.php b/tests/phpunit/integration/includes/htmlform/HTMLTitleTextFieldTest.php
index 5c14ab7a402b..624164a4692c 100644
--- a/tests/phpunit/integration/includes/htmlform/HTMLTitleTextFieldTest.php
+++ b/tests/phpunit/integration/includes/htmlform/HTMLTitleTextFieldTest.php
@@ -7,7 +7,7 @@ use MediaWiki\Title\Title;
use MediaWiki\Title\TitleFactory;
/**
- * @covers HTMLTitleTextFieldTest
+ * @covers \HTMLTitleTextFieldTest
*/
class HTMLTitleTextFieldTest extends MediaWikiIntegrationTestCase {
diff --git a/tests/phpunit/integration/includes/htmlform/HTMLUserTextFieldTest.php b/tests/phpunit/integration/includes/htmlform/HTMLUserTextFieldTest.php
index 7db3b7e40f74..76dfd023528f 100644
--- a/tests/phpunit/integration/includes/htmlform/HTMLUserTextFieldTest.php
+++ b/tests/phpunit/integration/includes/htmlform/HTMLUserTextFieldTest.php
@@ -3,7 +3,7 @@
use MediaWiki\User\UserFactory;
/**
- * @covers HTMLUserTextFieldTest
+ * @covers \HTMLUserTextFieldTest
*/
class HTMLUserTextFieldTest extends MediaWikiIntegrationTestCase {
diff --git a/tests/phpunit/integration/includes/http/HttpRequestFactoryTest.php b/tests/phpunit/integration/includes/http/HttpRequestFactoryTest.php
index 7058df27825d..7a30f9533d28 100644
--- a/tests/phpunit/integration/includes/http/HttpRequestFactoryTest.php
+++ b/tests/phpunit/integration/includes/http/HttpRequestFactoryTest.php
@@ -8,7 +8,7 @@ use Psr\Log\NullLogger;
use Wikimedia\TestingAccessWrapper;
/**
- * @covers MediaWiki\Http\HttpRequestFactory
+ * @covers \MediaWiki\Http\HttpRequestFactory
* @todo Inject UrlUtils into MWHttpRequest and make this a unit test.
*/
class HttpRequestFactoryTest extends MediaWikiIntegrationTestCase {
diff --git a/tests/phpunit/integration/includes/logging/LogPageTest.php b/tests/phpunit/integration/includes/logging/LogPageTest.php
index 6b37cedb3b0f..ef6058257aa1 100644
--- a/tests/phpunit/integration/includes/logging/LogPageTest.php
+++ b/tests/phpunit/integration/includes/logging/LogPageTest.php
@@ -10,7 +10,7 @@ use MockTitleTrait;
/**
* @group Database
- * @coversDefaultClass LogPage
+ * @coversDefaultClass \LogPage
* @package MediaWiki\Tests\Log
*/
class LogPageTest extends \MediaWikiIntegrationTestCase {
diff --git a/tests/phpunit/integration/includes/parser/Parsoid/LanguageVariantConverterTest.php b/tests/phpunit/integration/includes/parser/Parsoid/LanguageVariantConverterTest.php
index 8de4893c27f5..dcad4634f8c9 100644
--- a/tests/phpunit/integration/includes/parser/Parsoid/LanguageVariantConverterTest.php
+++ b/tests/phpunit/integration/includes/parser/Parsoid/LanguageVariantConverterTest.php
@@ -14,7 +14,7 @@ use Wikimedia\Parsoid\Parsoid;
/**
* @group Database
- * @covers MediaWiki\Parser\Parsoid\LanguageVariantConverter
+ * @covers \MediaWiki\Parser\Parsoid\LanguageVariantConverter
*/
class LanguageVariantConverterTest extends MediaWikiIntegrationTestCase {
public function setUp(): void {
diff --git a/tests/phpunit/integration/includes/parser/TidyTest.php b/tests/phpunit/integration/includes/parser/TidyTest.php
index 29c693ec571c..b54d1d94e4a2 100644
--- a/tests/phpunit/integration/includes/parser/TidyTest.php
+++ b/tests/phpunit/integration/includes/parser/TidyTest.php
@@ -4,7 +4,7 @@ use MediaWiki\Parser\Sanitizer;
/**
* @group Parser
- * @covers MWTidy
+ * @covers \MWTidy
*/
class TidyTest extends \MediaWikiIntegrationTestCase {
diff --git a/tests/phpunit/integration/includes/poolcounter/PoolCounterConnectionManagerTest.php b/tests/phpunit/integration/includes/poolcounter/PoolCounterConnectionManagerTest.php
index 189703b52e50..872b94d9fe03 100644
--- a/tests/phpunit/integration/includes/poolcounter/PoolCounterConnectionManagerTest.php
+++ b/tests/phpunit/integration/includes/poolcounter/PoolCounterConnectionManagerTest.php
@@ -3,7 +3,7 @@
use MediaWiki\PoolCounter\PoolCounterConnectionManager;
/**
- * @covers PoolCounterConnectionManagerTest
+ * @covers \PoolCounterConnectionManagerTest
* @group Database
*/
class PoolCounterConnectionManagerTest extends MediaWikiIntegrationTestCase {
diff --git a/tests/phpunit/integration/includes/revisionlist/RevisionListTest.php b/tests/phpunit/integration/includes/revisionlist/RevisionListTest.php
index 9713ade111c7..551dd29279ec 100644
--- a/tests/phpunit/integration/includes/revisionlist/RevisionListTest.php
+++ b/tests/phpunit/integration/includes/revisionlist/RevisionListTest.php
@@ -4,10 +4,10 @@ use MediaWiki\Page\PageIdentity;
use MediaWiki\Page\PageIdentityValue;
/**
- * @covers RevisionList
- * @covers RevisionListBase
- * @covers RevisionItem
- * @covers RevisionItemBase
+ * @covers \RevisionList
+ * @covers \RevisionListBase
+ * @covers \RevisionItem
+ * @covers \RevisionItemBase
* @group Database
*
* @author DannyS712
diff --git a/tests/phpunit/integration/includes/search/SearchSuggestionSetIntegrationTest.php b/tests/phpunit/integration/includes/search/SearchSuggestionSetIntegrationTest.php
index 89aef2203984..3d31fa03ca47 100644
--- a/tests/phpunit/integration/includes/search/SearchSuggestionSetIntegrationTest.php
+++ b/tests/phpunit/integration/includes/search/SearchSuggestionSetIntegrationTest.php
@@ -49,7 +49,7 @@ class SearchSuggestionSetIntegrationTest extends MediaWikiIntegrationTestCase {
* in a unit test as services are not available. That's why this ends up being
* an integration test instead.
*
- * @covers SearchSuggestionSet::fromTitles
+ * @covers \SearchSuggestionSet::fromTitles
* @dataProvider provideTitles
*/
public function testFromTitles( array $titles, $expected ): void {
diff --git a/tests/phpunit/integration/includes/user/Options/DefaultOptionsLookupTest.php b/tests/phpunit/integration/includes/user/Options/DefaultOptionsLookupTest.php
index f12ed9d7c237..644ee904489c 100644
--- a/tests/phpunit/integration/includes/user/Options/DefaultOptionsLookupTest.php
+++ b/tests/phpunit/integration/includes/user/Options/DefaultOptionsLookupTest.php
@@ -4,7 +4,7 @@ use MediaWiki\User\Options\DefaultOptionsLookup;
use MediaWiki\User\Options\UserOptionsLookup;
/**
- * @covers MediaWiki\User\Options\DefaultOptionsLookup
+ * @covers \MediaWiki\User\Options\DefaultOptionsLookup
*/
class DefaultOptionsLookupTest extends UserOptionsLookupTestBase {
protected function getLookup(
@@ -15,7 +15,7 @@ class DefaultOptionsLookupTest extends UserOptionsLookupTestBase {
}
/**
- * @covers MediaWiki\User\Options\DefaultOptionsLookup::getOption
+ * @covers \MediaWiki\User\Options\DefaultOptionsLookup::getOption
*/
public function testGetOptionsExcludeDefaults() {
$this->assertSame( [], $this->getLookup()
@@ -23,7 +23,7 @@ class DefaultOptionsLookupTest extends UserOptionsLookupTestBase {
}
/**
- * @covers MediaWiki\User\Options\DefaultOptionsLookup::getDefaultOptions
+ * @covers \MediaWiki\User\Options\DefaultOptionsLookup::getDefaultOptions
*/
public function testGetDefaultOptionsHook() {
$this->setTemporaryHook( 'UserGetDefaultOptions', static function ( &$options ) {
@@ -33,7 +33,7 @@ class DefaultOptionsLookupTest extends UserOptionsLookupTestBase {
}
/**
- * @covers MediaWiki\User\Options\DefaultOptionsLookup::getDefaultOptions
+ * @covers \MediaWiki\User\Options\DefaultOptionsLookup::getDefaultOptions
*/
public function testSearchNS() {
$lookup = $this->getLookup();
@@ -45,7 +45,7 @@ class DefaultOptionsLookupTest extends UserOptionsLookupTestBase {
}
/**
- * @covers MediaWiki\User\Options\DefaultOptionsLookup::getDefaultOptions
+ * @covers \MediaWiki\User\Options\DefaultOptionsLookup::getDefaultOptions
*/
public function testLangVariantOptions() {
$managerZh = $this->getLookup( 'zh' );
diff --git a/tests/phpunit/integration/includes/user/Options/UserOptionsLookupTestBase.php b/tests/phpunit/integration/includes/user/Options/UserOptionsLookupTestBase.php
index 62db561425a6..894257624f54 100644
--- a/tests/phpunit/integration/includes/user/Options/UserOptionsLookupTestBase.php
+++ b/tests/phpunit/integration/includes/user/Options/UserOptionsLookupTestBase.php
@@ -11,9 +11,9 @@ use MediaWiki\User\UserIdentity;
use MediaWiki\User\UserIdentityValue;
/**
- * @covers MediaWiki\User\Options\DefaultOptionsLookup
- * @covers MediaWiki\User\Options\UserOptionsManager
- * @covers MediaWiki\User\Options\UserOptionsLookup
+ * @covers \MediaWiki\User\Options\DefaultOptionsLookup
+ * @covers \MediaWiki\User\Options\UserOptionsManager
+ * @covers \MediaWiki\User\Options\UserOptionsLookup
*/
abstract class UserOptionsLookupTestBase extends MediaWikiIntegrationTestCase {
@@ -113,8 +113,8 @@ abstract class UserOptionsLookupTestBase extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\User\Options\DefaultOptionsLookup::getDefaultOption
- * @covers MediaWiki\User\Options\UserOptionsManager::getDefaultOption
+ * @covers \MediaWiki\User\Options\DefaultOptionsLookup::getDefaultOption
+ * @covers \MediaWiki\User\Options\UserOptionsManager::getDefaultOption
* @dataProvider provideConditionalDefaults
*/
public function testGetConditionalDefaults( bool $expected, string $property, int $userId ) {
@@ -128,8 +128,8 @@ abstract class UserOptionsLookupTestBase extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\User\Options\DefaultOptionsLookup::getDefaultOptions
- * @covers MediaWiki\User\Options\UserOptionsManager::getDefaultOptions
+ * @covers \MediaWiki\User\Options\DefaultOptionsLookup::getDefaultOptions
+ * @covers \MediaWiki\User\Options\UserOptionsManager::getDefaultOptions
*/
public function testGetDefaultOptions() {
$options = $this->getLookup()->getDefaultOptions();
@@ -139,8 +139,8 @@ abstract class UserOptionsLookupTestBase extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\User\Options\DefaultOptionsLookup::getDefaultOption
- * @covers MediaWiki\User\Options\UserOptionsManager::getDefaultOption
+ * @covers \MediaWiki\User\Options\DefaultOptionsLookup::getDefaultOption
+ * @covers \MediaWiki\User\Options\UserOptionsManager::getDefaultOption
*/
public function testGetDefaultOption() {
$manager = $this->getLookup();
@@ -150,8 +150,8 @@ abstract class UserOptionsLookupTestBase extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\User\Options\DefaultOptionsLookup::getOptions
- * @covers MediaWiki\User\Options\UserOptionsManager::getOptions
+ * @covers \MediaWiki\User\Options\DefaultOptionsLookup::getOptions
+ * @covers \MediaWiki\User\Options\UserOptionsManager::getOptions
*/
public function testGetOptions() {
$options = $this->getLookup()->getOptions( $this->getAnon() );
@@ -161,8 +161,8 @@ abstract class UserOptionsLookupTestBase extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\User\Options\DefaultOptionsLookup::getOption
- * @covers MediaWiki\User\Options\UserOptionsManager::getOption
+ * @covers \MediaWiki\User\Options\DefaultOptionsLookup::getOption
+ * @covers \MediaWiki\User\Options\UserOptionsManager::getOption
*/
public function testGetOptionDefault() {
$manager = $this->getLookup();
@@ -173,8 +173,8 @@ abstract class UserOptionsLookupTestBase extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\User\Options\DefaultOptionsLookup::getOption
- * @covers MediaWiki\User\Options\UserOptionsManager::getOption
+ * @covers \MediaWiki\User\Options\DefaultOptionsLookup::getOption
+ * @covers \MediaWiki\User\Options\UserOptionsManager::getOption
*/
public function testGetOptionDefaultNotExist() {
$this->assertNull( $this->getLookup()
@@ -182,8 +182,8 @@ abstract class UserOptionsLookupTestBase extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\User\Options\DefaultOptionsLookup::getOption
- * @covers MediaWiki\User\Options\UserOptionsManager::getOption
+ * @covers \MediaWiki\User\Options\DefaultOptionsLookup::getOption
+ * @covers \MediaWiki\User\Options\UserOptionsManager::getOption
*/
public function testGetOptionDefaultNotExistDefaultOverride() {
$this->assertSame( 'override', $this->getLookup()
@@ -191,7 +191,7 @@ abstract class UserOptionsLookupTestBase extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\User\Options\UserOptionsLookup::getIntOption
+ * @covers \MediaWiki\User\Options\UserOptionsLookup::getIntOption
*/
public function testGetIntOption() {
$this->assertSame(
@@ -202,7 +202,7 @@ abstract class UserOptionsLookupTestBase extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWiki\User\Options\UserOptionsLookup::getBoolOption
+ * @covers \MediaWiki\User\Options\UserOptionsLookup::getBoolOption
*/
public function testGetBoolOption() {
$this->assertSame(
diff --git a/tests/phpunit/integration/includes/user/Options/UserOptionsManagerTest.php b/tests/phpunit/integration/includes/user/Options/UserOptionsManagerTest.php
index de389a7511a7..3c3e979dd660 100644
--- a/tests/phpunit/integration/includes/user/Options/UserOptionsManagerTest.php
+++ b/tests/phpunit/integration/includes/user/Options/UserOptionsManagerTest.php
@@ -18,7 +18,7 @@ use Wikimedia\Timestamp\ConvertibleTimestamp;
/**
* @group Database
- * @covers MediaWiki\User\Options\UserOptionsManager
+ * @covers \MediaWiki\User\Options\UserOptionsManager
*/
class UserOptionsManagerTest extends UserOptionsLookupTestBase {
@@ -64,7 +64,7 @@ class UserOptionsManagerTest extends UserOptionsLookupTestBase {
}
/**
- * @covers MediaWiki\User\Options\UserOptionsManager::getOption
+ * @covers \MediaWiki\User\Options\UserOptionsManager::getOption
*/
public function testGetOptionsExcludeDefaults() {
$manager = $this->getManager( [ 'defaults' => [
@@ -113,7 +113,7 @@ class UserOptionsManagerTest extends UserOptionsLookupTestBase {
}
/**
- * @covers MediaWiki\User\Options\UserOptionsManager::getOption
+ * @covers \MediaWiki\User\Options\UserOptionsManager::getOption
*/
public function testGetOptionHiddenPref() {
$user = $this->getAnon( __METHOD__ );
@@ -125,7 +125,7 @@ class UserOptionsManagerTest extends UserOptionsLookupTestBase {
}
/**
- * @covers MediaWiki\User\Options\UserOptionsManager::setOption
+ * @covers \MediaWiki\User\Options\UserOptionsManager::setOption
*/
public function testSetOptionNullIsDefault() {
$user = $this->getAnon( __METHOD__ );
@@ -137,9 +137,9 @@ class UserOptionsManagerTest extends UserOptionsLookupTestBase {
}
/**
- * @covers MediaWiki\User\Options\UserOptionsManager::getOption
- * @covers MediaWiki\User\Options\UserOptionsManager::setOption
- * @covers MediaWiki\User\Options\UserOptionsManager::saveOptions
+ * @covers \MediaWiki\User\Options\UserOptionsManager::getOption
+ * @covers \MediaWiki\User\Options\UserOptionsManager::setOption
+ * @covers \MediaWiki\User\Options\UserOptionsManager::saveOptions
*/
public function testGetSetSave() {
$user = $this->getTestUser()->getUser();
@@ -162,7 +162,7 @@ class UserOptionsManagerTest extends UserOptionsLookupTestBase {
}
/**
- * @covers MediaWiki\User\Options\UserOptionsManager::loadUserOptions
+ * @covers \MediaWiki\User\Options\UserOptionsManager::loadUserOptions
*/
public function testLoadUserOptionsHook() {
$user = UserIdentityValue::newRegistered( 42, 'Test' );
@@ -178,7 +178,7 @@ class UserOptionsManagerTest extends UserOptionsLookupTestBase {
}
/**
- * @covers MediaWiki\User\Options\UserOptionsManager::saveOptions
+ * @covers \MediaWiki\User\Options\UserOptionsManager::saveOptions
*/
public function testSaveUserOptionsHookAbort() {
$manager = $this->getManager( [
@@ -195,7 +195,7 @@ class UserOptionsManagerTest extends UserOptionsLookupTestBase {
}
/**
- * @covers MediaWiki\User\Options\UserOptionsManager::saveOptions
+ * @covers \MediaWiki\User\Options\UserOptionsManager::saveOptions
*/
public function testSaveUserOptionsHookModify() {
$user = UserIdentityValue::newRegistered( 42, 'Test' );
@@ -225,7 +225,7 @@ class UserOptionsManagerTest extends UserOptionsLookupTestBase {
}
/**
- * @covers MediaWiki\User\Options\UserOptionsManager::saveOptions
+ * @covers \MediaWiki\User\Options\UserOptionsManager::saveOptions
*/
public function testSaveUserOptionsHookOriginal() {
$user = UserIdentityValue::newRegistered( 42, 'Test' );
diff --git a/tests/phpunit/integration/includes/utils/MWFilePropsTest.php b/tests/phpunit/integration/includes/utils/MWFilePropsTest.php
index 4d6afdad32b3..57f799d979c5 100644
--- a/tests/phpunit/integration/includes/utils/MWFilePropsTest.php
+++ b/tests/phpunit/integration/includes/utils/MWFilePropsTest.php
@@ -1,7 +1,7 @@
<?php
/**
- * @covers MWFileProps
+ * @covers \MWFileProps
*/
class MWFilePropsTest extends MediaWikiIntegrationTestCase {
public static function provideGetPropsFromPath() {
diff --git a/tests/phpunit/maintenance/BackupDumperLoggerTest.php b/tests/phpunit/maintenance/BackupDumperLoggerTest.php
index 9dec3bc0f1c7..ff65857a30ab 100644
--- a/tests/phpunit/maintenance/BackupDumperLoggerTest.php
+++ b/tests/phpunit/maintenance/BackupDumperLoggerTest.php
@@ -20,7 +20,7 @@ use WikiExporter;
*
* @group Database
* @group Dump
- * @covers BackupDumper
+ * @covers \BackupDumper
*/
class BackupDumperLoggerTest extends DumpTestCase {
diff --git a/tests/phpunit/maintenance/BackupDumperPageTest.php b/tests/phpunit/maintenance/BackupDumperPageTest.php
index 1a700ff05fd6..6435f3ad4506 100644
--- a/tests/phpunit/maintenance/BackupDumperPageTest.php
+++ b/tests/phpunit/maintenance/BackupDumperPageTest.php
@@ -16,7 +16,7 @@ use XmlDumpWriter;
*
* @group Database
* @group Dump
- * @covers BackupDumper
+ * @covers \BackupDumper
*/
class BackupDumperPageTest extends DumpTestCase {
diff --git a/tests/phpunit/maintenance/BaseDumpTest.php b/tests/phpunit/maintenance/BaseDumpTest.php
index 428f423f4b19..339f2c9746ab 100644
--- a/tests/phpunit/maintenance/BaseDumpTest.php
+++ b/tests/phpunit/maintenance/BaseDumpTest.php
@@ -8,7 +8,7 @@ use MediaWikiIntegrationTestCase;
/**
* @group Dump
- * @covers BaseDump
+ * @covers \BaseDump
*/
class BaseDumpTest extends MediaWikiIntegrationTestCase {
diff --git a/tests/phpunit/maintenance/CategoriesRdfTest.php b/tests/phpunit/maintenance/CategoriesRdfTest.php
index 86e1090c847d..affdbd7db6ce 100644
--- a/tests/phpunit/maintenance/CategoriesRdfTest.php
+++ b/tests/phpunit/maintenance/CategoriesRdfTest.php
@@ -9,7 +9,7 @@ use Wikimedia\Rdbms\IMaintainableDatabase;
/**
* @covers \MediaWiki\Category\CategoriesRdf
- * @covers DumpCategoriesAsRdf
+ * @covers \DumpCategoriesAsRdf
*/
class CategoriesRdfTest extends MediaWikiLangTestCase {
public function getCategoryIterator() {
diff --git a/tests/phpunit/maintenance/CategoryChangesAsRdfTest.php b/tests/phpunit/maintenance/CategoryChangesAsRdfTest.php
index f93f1e5f4a5d..335a3aa24e35 100644
--- a/tests/phpunit/maintenance/CategoryChangesAsRdfTest.php
+++ b/tests/phpunit/maintenance/CategoryChangesAsRdfTest.php
@@ -8,7 +8,7 @@ use Wikimedia\Timestamp\ConvertibleTimestamp;
/**
* Tests for CategoryChangesAsRdf recent changes exporter.
- * @covers CategoryChangesAsRdf
+ * @covers \CategoryChangesAsRdf
* @group Database
*/
class CategoryChangesAsRdfTest extends MediaWikiLangTestCase {
diff --git a/tests/phpunit/maintenance/DeleteAutoPatrolLogsTest.php b/tests/phpunit/maintenance/DeleteAutoPatrolLogsTest.php
index e22236a6a228..863af47a2d14 100644
--- a/tests/phpunit/maintenance/DeleteAutoPatrolLogsTest.php
+++ b/tests/phpunit/maintenance/DeleteAutoPatrolLogsTest.php
@@ -6,7 +6,7 @@ use DeleteAutoPatrolLogs;
/**
* @group Database
- * @covers DeleteAutoPatrolLogs
+ * @covers \DeleteAutoPatrolLogs
*/
class DeleteAutoPatrolLogsTest extends MaintenanceBaseTestCase {
diff --git a/tests/phpunit/maintenance/DeleteUserEmailTest.php b/tests/phpunit/maintenance/DeleteUserEmailTest.php
index 6ba8616500a5..f06f19c954b2 100644
--- a/tests/phpunit/maintenance/DeleteUserEmailTest.php
+++ b/tests/phpunit/maintenance/DeleteUserEmailTest.php
@@ -2,7 +2,7 @@
use MediaWiki\Tests\Maintenance\MaintenanceBaseTestCase;
/**
- * @covers DeleteUserEmail
+ * @covers \DeleteUserEmail
* @group Database
*/
class DeleteUserEmailTest extends MaintenanceBaseTestCase {
diff --git a/tests/phpunit/maintenance/FetchTextTest.php b/tests/phpunit/maintenance/FetchTextTest.php
index 8be829ff3a59..857a74fa7e12 100644
--- a/tests/phpunit/maintenance/FetchTextTest.php
+++ b/tests/phpunit/maintenance/FetchTextTest.php
@@ -79,7 +79,7 @@ class SemiMockedFetchText extends FetchText {
*
* @group Database
* @group Dump
- * @covers FetchText
+ * @covers \FetchText
*/
class FetchTextTest extends MediaWikiIntegrationTestCase {
diff --git a/tests/phpunit/maintenance/MaintenanceTest.php b/tests/phpunit/maintenance/MaintenanceTest.php
index 13b6cbe85753..412f74060d36 100644
--- a/tests/phpunit/maintenance/MaintenanceTest.php
+++ b/tests/phpunit/maintenance/MaintenanceTest.php
@@ -10,7 +10,7 @@ use PHPUnit\Framework\Assert;
use Wikimedia\TestingAccessWrapper;
/**
- * @covers Maintenance
+ * @covers \Maintenance
*/
class MaintenanceTest extends MaintenanceBaseTestCase {
@@ -484,7 +484,7 @@ class MaintenanceTest extends MaintenanceBaseTestCase {
}
/**
- * @covers Maintenance::getConfig
+ * @covers \Maintenance::getConfig
*/
public function testGetConfig() {
$this->assertInstanceOf( Config::class, $this->maintenance->getConfig() );
@@ -495,7 +495,7 @@ class MaintenanceTest extends MaintenanceBaseTestCase {
}
/**
- * @covers Maintenance::setConfig
+ * @covers \Maintenance::setConfig
*/
public function testSetConfig() {
$conf = new HashConfig();
diff --git a/tests/phpunit/maintenance/PopulateUserIsTempTest.php b/tests/phpunit/maintenance/PopulateUserIsTempTest.php
index 441978149277..fe5a7374bb91 100644
--- a/tests/phpunit/maintenance/PopulateUserIsTempTest.php
+++ b/tests/phpunit/maintenance/PopulateUserIsTempTest.php
@@ -6,7 +6,7 @@ use MediaWiki\Tests\User\TempUser\TempUserTestTrait;
use PopulateUserIsTemp;
/**
- * @covers PopulateUserIsTemp
+ * @covers \PopulateUserIsTemp
* @group Database
*/
class PopulateUserIsTempTest extends MaintenanceBaseTestCase {
diff --git a/tests/phpunit/maintenance/TextPassDumperDatabaseTest.php b/tests/phpunit/maintenance/TextPassDumperDatabaseTest.php
index 52286989c634..7d5dd28f6232 100644
--- a/tests/phpunit/maintenance/TextPassDumperDatabaseTest.php
+++ b/tests/phpunit/maintenance/TextPassDumperDatabaseTest.php
@@ -20,7 +20,7 @@ use XmlDumpWriter;
*
* @group Database
* @group Dump
- * @covers TextPassDumper
+ * @covers \TextPassDumper
*/
class TextPassDumperDatabaseTest extends DumpTestCase {
@@ -481,7 +481,7 @@ class TextPassDumperDatabaseTest extends DumpTestCase {
* cannot bring this test case's tests into the above main test case.)
*
* @group Dump
- * @covers TextPassDumper
+ * @covers \TextPassDumper
*/
class TextPassDumperDatabaselessTest extends MediaWikiLangTestCase {
/**
diff --git a/tests/phpunit/suites/ParserIntegrationTest.php b/tests/phpunit/suites/ParserIntegrationTest.php
index 94f28bded0e6..0120039d3290 100644
--- a/tests/phpunit/suites/ParserIntegrationTest.php
+++ b/tests/phpunit/suites/ParserIntegrationTest.php
@@ -15,17 +15,17 @@ use Wikimedia\Parsoid\ParserTests\TestMode as ParserTestMode;
* @group Parser
* @group ParserTests
*
- * @covers Parser
- * @covers BlockLevelPass
- * @covers CoreParserFunctions
- * @covers CoreTagHooks
- * @covers MediaWiki\Parser\Sanitizer
- * @covers Preprocessor
- * @covers Preprocessor_Hash
- * @covers DateFormatter
- * @covers LinkHolderArray
- * @covers StripState
- * @covers ParserOptions
+ * @covers \Parser
+ * @covers \BlockLevelPass
+ * @covers \CoreParserFunctions
+ * @covers \CoreTagHooks
+ * @covers \MediaWiki\Parser\Sanitizer
+ * @covers \Preprocessor
+ * @covers \Preprocessor_Hash
+ * @covers \DateFormatter
+ * @covers \LinkHolderArray
+ * @covers \StripState
+ * @covers \ParserOptions
* @covers \MediaWiki\Parser\ParserOutput
*/
class ParserIntegrationTest extends PHPUnit\Framework\TestCase {
diff --git a/tests/phpunit/tests/MediaWikiIntegrationTestCaseSchema1Test.php b/tests/phpunit/tests/MediaWikiIntegrationTestCaseSchema1Test.php
index bd201b9b435a..48e50d9ff689 100644
--- a/tests/phpunit/tests/MediaWikiIntegrationTestCaseSchema1Test.php
+++ b/tests/phpunit/tests/MediaWikiIntegrationTestCaseSchema1Test.php
@@ -3,7 +3,7 @@
use Wikimedia\Rdbms\IMaintainableDatabase;
/**
- * @covers MediaWikiIntegrationTestCase
+ * @covers \MediaWikiIntegrationTestCase
* @group Database
*/
class MediaWikiIntegrationTestCaseSchema1Test extends MediaWikiIntegrationTestCase {
diff --git a/tests/phpunit/tests/MediaWikiIntegrationTestCaseSchema2Test.php b/tests/phpunit/tests/MediaWikiIntegrationTestCaseSchema2Test.php
index 2c93fcc975f7..9e813937aeb4 100644
--- a/tests/phpunit/tests/MediaWikiIntegrationTestCaseSchema2Test.php
+++ b/tests/phpunit/tests/MediaWikiIntegrationTestCaseSchema2Test.php
@@ -7,7 +7,7 @@
* test classes getting run in alpha-numerical order.
* Order is checked by the testMediaWikiIntegrationTestCaseSchemaTestOrder test in both classes.
*
- * @covers MediaWikiIntegrationTestCase
+ * @covers \MediaWikiIntegrationTestCase
* @group Database
*/
class MediaWikiIntegrationTestCaseSchema2Test extends MediaWikiIntegrationTestCase {
diff --git a/tests/phpunit/tests/MediaWikiIntegrationTestCaseTest.php b/tests/phpunit/tests/MediaWikiIntegrationTestCaseTest.php
index 13c6db2dec4e..431b1534456a 100644
--- a/tests/phpunit/tests/MediaWikiIntegrationTestCaseTest.php
+++ b/tests/phpunit/tests/MediaWikiIntegrationTestCaseTest.php
@@ -13,7 +13,7 @@ use Wikimedia\Rdbms\ReadOnlyMode;
use Wikimedia\TestingAccessWrapper;
/**
- * @covers MediaWikiIntegrationTestCase
+ * @covers \MediaWikiIntegrationTestCase
* @group MediaWikiIntegrationTestCaseTest
* @group Database
*
@@ -54,8 +54,8 @@ class MediaWikiIntegrationTestCaseTest extends MediaWikiIntegrationTestCase {
/**
* @dataProvider provideExistingKeysAndNewValues
*
- * @covers MediaWikiIntegrationTestCase::setMwGlobals
- * @covers MediaWikiIntegrationTestCase::mediaWikiTearDown
+ * @covers \MediaWikiIntegrationTestCase::setMwGlobals
+ * @covers \MediaWikiIntegrationTestCase::mediaWikiTearDown
*/
public function testSetGlobalsAreRestoredOnTearDown__before( $globalKey, $newValue ) {
$this->setMwGlobals( $globalKey, $newValue );
@@ -70,8 +70,8 @@ class MediaWikiIntegrationTestCaseTest extends MediaWikiIntegrationTestCase {
* @note This cannot use depends because the other test also uses a data provider.
* @dataProvider provideExistingKeysAndNewValues
*
- * @covers MediaWikiIntegrationTestCase::setMwGlobals
- * @covers MediaWikiIntegrationTestCase::mediaWikiTearDown
+ * @covers \MediaWikiIntegrationTestCase::setMwGlobals
+ * @covers \MediaWikiIntegrationTestCase::mediaWikiTearDown
*/
public function testSetGlobalsAreRestoredOnTearDown__after( $globalKey ) {
$this->assertSame(
@@ -96,8 +96,8 @@ class MediaWikiIntegrationTestCaseTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWikiIntegrationTestCase::setMwGlobals
- * @covers MediaWikiIntegrationTestCase::mediaWikiTearDown
+ * @covers \MediaWikiIntegrationTestCase::setMwGlobals
+ * @covers \MediaWikiIntegrationTestCase::mediaWikiTearDown
*/
public function testSetNonExistentGlobalsAreUnsetOnTearDown__before() {
$globalKey = 'abcdefg1234567';
@@ -111,8 +111,8 @@ class MediaWikiIntegrationTestCaseTest extends MediaWikiIntegrationTestCase {
/**
* @depends testSetNonExistentGlobalsAreUnsetOnTearDown__before
- * @covers MediaWikiIntegrationTestCase::setMwGlobals
- * @covers MediaWikiIntegrationTestCase::mediaWikiTearDown
+ * @covers \MediaWikiIntegrationTestCase::setMwGlobals
+ * @covers \MediaWikiIntegrationTestCase::mediaWikiTearDown
*/
public function testSetNonExistentGlobalsAreUnsetOnTearDown__after( string $globalKey ) {
$this->assertFalse(
@@ -122,8 +122,8 @@ class MediaWikiIntegrationTestCaseTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWikiIntegrationTestCase::overrideConfigValue
- * @covers MediaWikiIntegrationTestCase::overrideConfigValues
+ * @covers \MediaWikiIntegrationTestCase::overrideConfigValue
+ * @covers \MediaWikiIntegrationTestCase::overrideConfigValues
*/
public function testOverrideConfigValues__before() {
$nsInfo1 = $this->getServiceContainer()->getNamespaceInfo();
@@ -149,8 +149,8 @@ class MediaWikiIntegrationTestCaseTest extends MediaWikiIntegrationTestCase {
/**
* @depends testOverrideConfigValues__before
- * @covers MediaWikiIntegrationTestCase::overrideConfigValue
- * @covers MediaWikiIntegrationTestCase::overrideConfigValues
+ * @covers \MediaWikiIntegrationTestCase::overrideConfigValue
+ * @covers \MediaWikiIntegrationTestCase::overrideConfigValues
*/
public function testOverrideConfigValues__after( array $data ) {
[ $oldSitename, $fakeConfigKey ] = $data;
@@ -256,8 +256,8 @@ class MediaWikiIntegrationTestCaseTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWikiIntegrationTestCase::setLogger
- * @covers MediaWikiIntegrationTestCase::restoreLoggers
+ * @covers \MediaWikiIntegrationTestCase::setLogger
+ * @covers \MediaWikiIntegrationTestCase::restoreLoggers
*/
public function testLoggersAreRestoredOnTearDown_replacingExistingLogger__before() {
$oldLogger = LoggerFactory::getInstance( 'foo' );
@@ -271,8 +271,8 @@ class MediaWikiIntegrationTestCaseTest extends MediaWikiIntegrationTestCase {
/**
* @depends testLoggersAreRestoredOnTearDown_replacingExistingLogger__before
- * @covers MediaWikiIntegrationTestCase::setLogger
- * @covers MediaWikiIntegrationTestCase::restoreLoggers
+ * @covers \MediaWikiIntegrationTestCase::setLogger
+ * @covers \MediaWikiIntegrationTestCase::restoreLoggers
*/
public function testLoggersAreRestoredOnTearDown_replacingExistingLogger__after( LoggerInterface $mockLogger ) {
$curLogger = LoggerFactory::getInstance( 'foo' );
@@ -280,8 +280,8 @@ class MediaWikiIntegrationTestCaseTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWikiIntegrationTestCase::setLogger
- * @covers MediaWikiIntegrationTestCase::restoreLoggers
+ * @covers \MediaWikiIntegrationTestCase::setLogger
+ * @covers \MediaWikiIntegrationTestCase::restoreLoggers
*/
public function testLoggersAreRestoredOnTearDown_replacingNonExistingLogger__before() {
$loggerMock = $this->createMock( LoggerInterface::class );
@@ -293,8 +293,8 @@ class MediaWikiIntegrationTestCaseTest extends MediaWikiIntegrationTestCase {
/**
* @depends testLoggersAreRestoredOnTearDown_replacingNonExistingLogger__before
- * @covers MediaWikiIntegrationTestCase::setLogger
- * @covers MediaWikiIntegrationTestCase::restoreLoggers
+ * @covers \MediaWikiIntegrationTestCase::setLogger
+ * @covers \MediaWikiIntegrationTestCase::restoreLoggers
*/
public function testLoggersAreRestoredOnTearDown_replacingNonExistingLogger__after(
LoggerInterface $overriddenLogger
@@ -306,8 +306,8 @@ class MediaWikiIntegrationTestCaseTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWikiIntegrationTestCase::setLogger
- * @covers MediaWikiIntegrationTestCase::restoreLoggers
+ * @covers \MediaWikiIntegrationTestCase::setLogger
+ * @covers \MediaWikiIntegrationTestCase::restoreLoggers
* @doesNotPerformAssertions
*/
public function testLoggersAreRestoredOnTearDown_replacingSameLoggerTwice__before() {
@@ -318,8 +318,8 @@ class MediaWikiIntegrationTestCaseTest extends MediaWikiIntegrationTestCase {
/**
* @depends testLoggersAreRestoredOnTearDown_replacingSameLoggerTwice__before
- * @covers MediaWikiIntegrationTestCase::setLogger
- * @covers MediaWikiIntegrationTestCase::restoreLoggers
+ * @covers \MediaWikiIntegrationTestCase::setLogger
+ * @covers \MediaWikiIntegrationTestCase::restoreLoggers
*/
public function testLoggersAreRestoredOnTearDown_replacingSameLoggerTwice__after() {
$curLogger = LoggerFactory::getInstance( 'baz' );
@@ -327,8 +327,8 @@ class MediaWikiIntegrationTestCaseTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWikiIntegrationTestCase::setNullLogger
- * @covers MediaWikiIntegrationTestCase::restoreLoggers
+ * @covers \MediaWikiIntegrationTestCase::setNullLogger
+ * @covers \MediaWikiIntegrationTestCase::restoreLoggers
*/
public function testNullLogger_createAndRemove__before() {
$this->setNullLogger( 'tocreate' );
@@ -338,8 +338,8 @@ class MediaWikiIntegrationTestCaseTest extends MediaWikiIntegrationTestCase {
/**
* @depends testNullLogger_createAndRemove__before
- * @covers MediaWikiIntegrationTestCase::setNullLogger
- * @covers MediaWikiIntegrationTestCase::restoreLoggers
+ * @covers \MediaWikiIntegrationTestCase::setNullLogger
+ * @covers \MediaWikiIntegrationTestCase::restoreLoggers
*/
public function testNullLogger_createAndRemove__after() {
$logger = LoggerFactory::getInstance( 'tocreate' );
@@ -349,8 +349,8 @@ class MediaWikiIntegrationTestCaseTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWikiIntegrationTestCase::setNullLogger
- * @covers MediaWikiIntegrationTestCase::restoreLoggers
+ * @covers \MediaWikiIntegrationTestCase::setNullLogger
+ * @covers \MediaWikiIntegrationTestCase::restoreLoggers
*/
public function testNullLogger_mutateAndRestore__before() {
// Don't rely on the $wgDebugLogGroups and $wgDebugLogFile settings in
@@ -378,8 +378,8 @@ class MediaWikiIntegrationTestCaseTest extends MediaWikiIntegrationTestCase {
/**
* @depends testNullLogger_mutateAndRestore__before
- * @covers MediaWikiIntegrationTestCase::setNullLogger
- * @covers MediaWikiIntegrationTestCase::restoreLoggers
+ * @covers \MediaWikiIntegrationTestCase::setNullLogger
+ * @covers \MediaWikiIntegrationTestCase::restoreLoggers
*/
public function testNullLogger_mutateAndRestore__after( LoggerInterface $inner ) {
$this->assertSame(
@@ -390,8 +390,8 @@ class MediaWikiIntegrationTestCaseTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWikiIntegrationTestCase::setupDatabaseWithTestPrefix
- * @covers MediaWikiIntegrationTestCase::copyTestData
+ * @covers \MediaWikiIntegrationTestCase::setupDatabaseWithTestPrefix
+ * @covers \MediaWikiIntegrationTestCase::copyTestData
*/
public function testCopyTestData() {
// Avoid self-deadlocks with Sqlite
@@ -429,7 +429,7 @@ class MediaWikiIntegrationTestCaseTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWikiIntegrationTestCase::resetServices
+ * @covers \MediaWikiIntegrationTestCase::resetServices
*/
public function testResetServices() {
$services = MediaWikiServices::getInstance();
@@ -475,15 +475,15 @@ class MediaWikiIntegrationTestCaseTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers MediaWikiIntegrationTestCase::getServiceContainer
+ * @covers \MediaWikiIntegrationTestCase::getServiceContainer
*/
public function testGetServiceContainer() {
$this->assertSame( MediaWikiServices::getInstance(), $this->getServiceContainer() );
}
/**
- * @covers MediaWikiIntegrationTestCase::setTemporaryHook
- * @covers MediaWikiIntegrationTestCase::clearHook
+ * @covers \MediaWikiIntegrationTestCase::setTemporaryHook
+ * @covers \MediaWikiIntegrationTestCase::clearHook
*/
public function testSetTemporaryHook() {
$hookContainer = $this->getServiceContainer()->getHookContainer();
@@ -528,8 +528,8 @@ class MediaWikiIntegrationTestCaseTest extends MediaWikiIntegrationTestCase {
}
/**
- * @covers NullHttpRequestFactory
- * @covers NullMultiHttpClient
+ * @covers \NullHttpRequestFactory
+ * @covers \NullMultiHttpClient
*/
public function testHttpRequestsArePrevented() {
$httpRequestFactory = $this->getServiceContainer()->getHttpRequestFactory();
diff --git a/tests/phpunit/tests/MockHttpTraitTest.php b/tests/phpunit/tests/MockHttpTraitTest.php
index 16113ad37253..7fe9887dedc8 100644
--- a/tests/phpunit/tests/MockHttpTraitTest.php
+++ b/tests/phpunit/tests/MockHttpTraitTest.php
@@ -4,7 +4,7 @@ use PHPUnit\Framework\AssertionFailedError;
use Psr\Http\Message\ResponseInterface;
/**
- * @covers MockHttpTrait
+ * @covers \MockHttpTrait
* @group MediaWikiIntegrationTestCaseTest
*/
class MockHttpTraitTest extends MediaWikiIntegrationTestCase {
diff --git a/tests/phpunit/unit/includes/Html/FormOptionsInitializationTest.php b/tests/phpunit/unit/includes/Html/FormOptionsInitializationTest.php
index 2a2d822057d2..78dee3a7aeb6 100644
--- a/tests/phpunit/unit/includes/Html/FormOptionsInitializationTest.php
+++ b/tests/phpunit/unit/includes/Html/FormOptionsInitializationTest.php
@@ -27,7 +27,7 @@ class FormOptionsInitializationTest extends \MediaWikiUnitTestCase {
}
/**
- * @covers MediaWiki\Html\FormOptions::add
+ * @covers \MediaWiki\Html\FormOptions::add
*/
public function testAddStringOption() {
$this->object->add( 'foo', 'string value' );
@@ -45,7 +45,7 @@ class FormOptionsInitializationTest extends \MediaWikiUnitTestCase {
}
/**
- * @covers MediaWiki\Html\FormOptions::add
+ * @covers \MediaWiki\Html\FormOptions::add
*/
public function testAddIntegers() {
$this->object->add( 'one', 1 );
diff --git a/tests/phpunit/unit/includes/Html/FormOptionsTest.php b/tests/phpunit/unit/includes/Html/FormOptionsTest.php
index e8918f67c357..bade4b8a1da0 100644
--- a/tests/phpunit/unit/includes/Html/FormOptionsTest.php
+++ b/tests/phpunit/unit/includes/Html/FormOptionsTest.php
@@ -12,7 +12,7 @@ use MediaWiki\Html\FormOptions;
class FormOptionsTest extends MediaWikiUnitTestCase {
/**
- * @covers MediaWiki\Html\FormOptions::guessType
+ * @covers \MediaWiki\Html\FormOptions::guessType
* @dataProvider provideTypeDetection
*/
public function testGuessTypeDetection( $expectedType, $data ) {
@@ -41,7 +41,7 @@ class FormOptionsTest extends MediaWikiUnitTestCase {
}
/**
- * @covers MediaWiki\Html\FormOptions::guessType
+ * @covers \MediaWiki\Html\FormOptions::guessType
*/
public function testGuessTypeOnNullThrowException() {
$this->expectException( InvalidArgumentException::class );
diff --git a/tests/phpunit/unit/includes/Html/ListToggleTest.php b/tests/phpunit/unit/includes/Html/ListToggleTest.php
index 69194d87305f..29a4a6d6bc2b 100644
--- a/tests/phpunit/unit/includes/Html/ListToggleTest.php
+++ b/tests/phpunit/unit/includes/Html/ListToggleTest.php
@@ -5,12 +5,12 @@ use MediaWiki\Output\OutputPage;
use MediaWiki\Tests\Unit\FakeQqxMessageLocalizer;
/**
- * @covers MediaWiki\Html\ListToggle
+ * @covers \MediaWiki\Html\ListToggle
*/
class ListToggleTest extends MediaWikiUnitTestCase {
/**
- * @covers MediaWiki\Html\ListToggle::__construct
+ * @covers \MediaWiki\Html\ListToggle::__construct
*/
public function testConstruct() {
$output = $this->createMock( OutputPage::class );
@@ -25,7 +25,7 @@ class ListToggleTest extends MediaWikiUnitTestCase {
}
/**
- * @covers MediaWiki\Html\ListToggle::getHTML
+ * @covers \MediaWiki\Html\ListToggle::getHTML
*/
public function testGetHTML() {
$language = $this->createMock( Language::class );
diff --git a/tests/phpunit/unit/includes/Request/DerivativeRequestTest.php b/tests/phpunit/unit/includes/Request/DerivativeRequestTest.php
index 7c233141d2dd..d74120fd7c30 100644
--- a/tests/phpunit/unit/includes/Request/DerivativeRequestTest.php
+++ b/tests/phpunit/unit/includes/Request/DerivativeRequestTest.php
@@ -4,7 +4,7 @@ use MediaWiki\Request\DerivativeRequest;
use MediaWiki\Request\WebRequest;
/**
- * @covers MediaWiki\Request\DerivativeRequest
+ * @covers \MediaWiki\Request\DerivativeRequest
*/
class DerivativeRequestTest extends MediaWikiUnitTestCase {
diff --git a/tests/phpunit/unit/includes/Request/FauxResponseTest.php b/tests/phpunit/unit/includes/Request/FauxResponseTest.php
index 088d65adf29e..8a520a343b47 100644
--- a/tests/phpunit/unit/includes/Request/FauxResponseTest.php
+++ b/tests/phpunit/unit/includes/Request/FauxResponseTest.php
@@ -34,10 +34,10 @@ class FauxResponseTest extends \MediaWikiUnitTestCase {
}
/**
- * @covers MediaWiki\Request\FauxResponse::setCookie
- * @covers MediaWiki\Request\FauxResponse::getCookie
- * @covers MediaWiki\Request\FauxResponse::getCookieData
- * @covers MediaWiki\Request\FauxResponse::getCookies
+ * @covers \MediaWiki\Request\FauxResponse::setCookie
+ * @covers \MediaWiki\Request\FauxResponse::getCookie
+ * @covers \MediaWiki\Request\FauxResponse::getCookieData
+ * @covers \MediaWiki\Request\FauxResponse::getCookies
*/
public function testCookie() {
$expire = time() + 100;
@@ -76,8 +76,8 @@ class FauxResponseTest extends \MediaWikiUnitTestCase {
}
/**
- * @covers MediaWiki\Request\FauxResponse::getheader
- * @covers MediaWiki\Request\FauxResponse::header
+ * @covers \MediaWiki\Request\FauxResponse::getheader
+ * @covers \MediaWiki\Request\FauxResponse::header
*/
public function testHeader() {
$this->assertNull( $this->response->getHeader( 'Location' ), 'Non-existing header' );
@@ -112,7 +112,7 @@ class FauxResponseTest extends \MediaWikiUnitTestCase {
}
/**
- * @covers MediaWiki\Request\FauxResponse::getStatusCode
+ * @covers \MediaWiki\Request\FauxResponse::getStatusCode
*/
public function testResponseCode() {
$this->response->header( 'HTTP/1.1 200' );
diff --git a/tests/phpunit/unit/includes/Request/PathRouterTest.php b/tests/phpunit/unit/includes/Request/PathRouterTest.php
index 5628c5c94570..729004963edf 100644
--- a/tests/phpunit/unit/includes/Request/PathRouterTest.php
+++ b/tests/phpunit/unit/includes/Request/PathRouterTest.php
@@ -5,7 +5,7 @@ use MediaWiki\Request\PathRouter;
/**
* Tests for the MediaWiki\Request\PathRouter parsing.
*
- * @covers MediaWiki\Request\PathRouter
+ * @covers \MediaWiki\Request\PathRouter
*/
class PathRouterTest extends MediaWikiUnitTestCase {
diff --git a/tests/phpunit/unit/includes/ResourceLoader/VueComponentParserTest.php b/tests/phpunit/unit/includes/ResourceLoader/VueComponentParserTest.php
index ecaf8d29fe36..6130d5b3846f 100644
--- a/tests/phpunit/unit/includes/ResourceLoader/VueComponentParserTest.php
+++ b/tests/phpunit/unit/includes/ResourceLoader/VueComponentParserTest.php
@@ -6,7 +6,7 @@ use MediaWiki\ResourceLoader\VueComponentParser;
/**
* @group ResourceLoader
- * @covers MediaWiki\ResourceLoader\VueComponentParser
+ * @covers \MediaWiki\ResourceLoader\VueComponentParser
*/
class VueComponentParserTest extends \PHPUnit\Framework\TestCase {
/**
diff --git a/tests/phpunit/unit/includes/StubObject/DeprecatedGlobalTest.php b/tests/phpunit/unit/includes/StubObject/DeprecatedGlobalTest.php
index d4a5809bea5f..8b54cdc11f2d 100644
--- a/tests/phpunit/unit/includes/StubObject/DeprecatedGlobalTest.php
+++ b/tests/phpunit/unit/includes/StubObject/DeprecatedGlobalTest.php
@@ -21,7 +21,7 @@
use MediaWiki\StubObject\DeprecatedGlobal;
/**
- * @covers MediaWiki\StubObject\DeprecatedGlobal
+ * @covers \MediaWiki\StubObject\DeprecatedGlobal
*/
class DeprecatedGlobalTest extends MediaWikiUnitTestCase {
private $oldErrorLevel;
diff --git a/tests/phpunit/unit/includes/WikiMap/WikiReferenceTest.php b/tests/phpunit/unit/includes/WikiMap/WikiReferenceTest.php
index 024372e2d827..2813ce01bfb6 100644
--- a/tests/phpunit/unit/includes/WikiMap/WikiReferenceTest.php
+++ b/tests/phpunit/unit/includes/WikiMap/WikiReferenceTest.php
@@ -3,7 +3,7 @@
use MediaWiki\WikiMap\WikiReference;
/**
- * @covers MediaWiki\WikiMap\WikiReference
+ * @covers \MediaWiki\WikiMap\WikiReference
*/
class WikiReferenceTest extends MediaWikiUnitTestCase {
diff --git a/tests/phpunit/unit/includes/actions/ActionInfoTest.php b/tests/phpunit/unit/includes/actions/ActionInfoTest.php
index c5f15862aaef..de8f4afd8ef2 100644
--- a/tests/phpunit/unit/includes/actions/ActionInfoTest.php
+++ b/tests/phpunit/unit/includes/actions/ActionInfoTest.php
@@ -3,7 +3,7 @@
use MediaWiki\Actions\ActionInfo;
/**
- * @covers MediaWiki\Actions\ActionInfo
+ * @covers \MediaWiki\Actions\ActionInfo
*
* @author Daniel Kinzler
*/
diff --git a/tests/phpunit/unit/includes/api/ApiModuleManagerTest.php b/tests/phpunit/unit/includes/api/ApiModuleManagerTest.php
index 78ff076ca6cc..060e1bf5ca55 100644
--- a/tests/phpunit/unit/includes/api/ApiModuleManagerTest.php
+++ b/tests/phpunit/unit/includes/api/ApiModuleManagerTest.php
@@ -5,7 +5,7 @@ use MediaWiki\Tests\Unit\DummyServicesTrait;
use MediaWiki\User\UserFactory;
/**
- * @covers ApiModuleManager
+ * @covers \ApiModuleManager
* @group API
* @group medium
*/
@@ -196,7 +196,7 @@ class ApiModuleManagerTest extends MediaWikiUnitTestCase {
}
/**
- * @covers ApiModuleManager::getModule
+ * @covers \ApiModuleManager::getModule
* @dataProvider getModuleProvider
*/
public function testGetModule( $modules, $name, $expectedClass ) {
@@ -221,7 +221,7 @@ class ApiModuleManagerTest extends MediaWikiUnitTestCase {
}
/**
- * @covers ApiModuleManager::getModule
+ * @covers \ApiModuleManager::getModule
*/
public function testGetModule_null() {
$modules = [
@@ -237,7 +237,7 @@ class ApiModuleManagerTest extends MediaWikiUnitTestCase {
}
/**
- * @covers ApiModuleManager::getNames
+ * @covers \ApiModuleManager::getNames
*/
public function testGetNames() {
$fooModules = [
@@ -263,7 +263,7 @@ class ApiModuleManagerTest extends MediaWikiUnitTestCase {
}
/**
- * @covers ApiModuleManager::getNamesWithClasses
+ * @covers \ApiModuleManager::getNamesWithClasses
*/
public function testGetNamesWithClasses() {
$fooModules = [
@@ -292,7 +292,7 @@ class ApiModuleManagerTest extends MediaWikiUnitTestCase {
}
/**
- * @covers ApiModuleManager::getModuleGroup
+ * @covers \ApiModuleManager::getModuleGroup
*/
public function testGetModuleGroup() {
$fooModules = [
@@ -315,7 +315,7 @@ class ApiModuleManagerTest extends MediaWikiUnitTestCase {
}
/**
- * @covers ApiModuleManager::getGroups
+ * @covers \ApiModuleManager::getGroups
*/
public function testGetGroups() {
$fooModules = [
@@ -337,7 +337,7 @@ class ApiModuleManagerTest extends MediaWikiUnitTestCase {
}
/**
- * @covers ApiModuleManager::getClassName
+ * @covers \ApiModuleManager::getClassName
*/
public function testGetClassName() {
$fooModules = [
diff --git a/tests/phpunit/unit/includes/api/ApiWatchlistTraitTest.php b/tests/phpunit/unit/includes/api/ApiWatchlistTraitTest.php
index fd7821d32537..297e03eab74b 100644
--- a/tests/phpunit/unit/includes/api/ApiWatchlistTraitTest.php
+++ b/tests/phpunit/unit/includes/api/ApiWatchlistTraitTest.php
@@ -8,7 +8,7 @@ use Wikimedia\TestingAccessWrapper;
/**
* @group API
- * @covers ApiWatchlistTrait
+ * @covers \ApiWatchlistTrait
*/
class ApiWatchlistTraitTest extends MediaWikiUnitTestCase {
diff --git a/tests/phpunit/unit/includes/block/BlockUtilsTest.php b/tests/phpunit/unit/includes/block/BlockUtilsTest.php
index fcc4220f7866..deabdc4d51f1 100644
--- a/tests/phpunit/unit/includes/block/BlockUtilsTest.php
+++ b/tests/phpunit/unit/includes/block/BlockUtilsTest.php
@@ -11,7 +11,7 @@ use MediaWiki\User\UserIdentityValue;
use Wikimedia\TestingAccessWrapper;
/**
- * @covers MediaWiki\Block\BlockUtils
+ * @covers \MediaWiki\Block\BlockUtils
* @group Blocking
* @author DannyS712
*/
diff --git a/tests/phpunit/unit/includes/cache/BacklinkCacheFactoryTest.php b/tests/phpunit/unit/includes/cache/BacklinkCacheFactoryTest.php
index d5eb6a4987d1..69377d8ab123 100644
--- a/tests/phpunit/unit/includes/cache/BacklinkCacheFactoryTest.php
+++ b/tests/phpunit/unit/includes/cache/BacklinkCacheFactoryTest.php
@@ -12,7 +12,7 @@ use Wikimedia\Rdbms\IConnectionProvider;
class BacklinkCacheFactoryTest extends MediaWikiUnitTestCase {
/**
- * @covers MediaWiki\Cache\BacklinkCacheFactory::getBacklinkCache
+ * @covers \MediaWiki\Cache\BacklinkCacheFactory::getBacklinkCache
*/
public function testGetBacklinkCache() {
$wanCache = new WANObjectCache( [ 'cache' => new EmptyBagOStuff() ] );
diff --git a/tests/phpunit/unit/includes/cache/CacheKeyHelperTest.php b/tests/phpunit/unit/includes/cache/CacheKeyHelperTest.php
index 51be82ba804d..0bf42cf266bb 100644
--- a/tests/phpunit/unit/includes/cache/CacheKeyHelperTest.php
+++ b/tests/phpunit/unit/includes/cache/CacheKeyHelperTest.php
@@ -24,7 +24,7 @@ class CacheKeyHelperTest extends MediaWikiUnitTestCase {
/**
* @dataProvider provideKeyForPage
- * @covers MediaWiki\Cache\CacheKeyHelper::getKeyForPage
+ * @covers \MediaWiki\Cache\CacheKeyHelper::getKeyForPage
*/
public function testKeyForPage( $page, $key ) {
$this->assertSame( $key, CacheKeyHelper::getKeyForPage( $page ) );
diff --git a/tests/phpunit/unit/includes/cache/HtmlCacheUpdaterTest.php b/tests/phpunit/unit/includes/cache/HtmlCacheUpdaterTest.php
index c792a4d60e27..d3e18acc26d1 100644
--- a/tests/phpunit/unit/includes/cache/HtmlCacheUpdaterTest.php
+++ b/tests/phpunit/unit/includes/cache/HtmlCacheUpdaterTest.php
@@ -6,7 +6,7 @@ use PHPUnit\Framework\MockObject\MockObject;
/**
* @group Cache
- * @covers HtmlCacheUpdater
+ * @covers \HtmlCacheUpdater
*/
class HtmlCacheUpdaterTest extends MediaWikiUnitTestCase {
diff --git a/tests/phpunit/unit/includes/changes/ChangesListBooleanFilterGroupTest.php b/tests/phpunit/unit/includes/changes/ChangesListBooleanFilterGroupTest.php
index be39e3a2c69c..1852b47317bd 100644
--- a/tests/phpunit/unit/includes/changes/ChangesListBooleanFilterGroupTest.php
+++ b/tests/phpunit/unit/includes/changes/ChangesListBooleanFilterGroupTest.php
@@ -3,7 +3,7 @@
use Wikimedia\TestingAccessWrapper;
/**
- * @covers ChangesListBooleanFilterGroup
+ * @covers \ChangesListBooleanFilterGroup
*/
class ChangesListBooleanFilterGroupTest extends MediaWikiUnitTestCase {
public function testIsFullCoverage() {
diff --git a/tests/phpunit/unit/includes/changes/ChangesListBooleanFilterTest.php b/tests/phpunit/unit/includes/changes/ChangesListBooleanFilterTest.php
index 79a4506f4097..59e012035324 100644
--- a/tests/phpunit/unit/includes/changes/ChangesListBooleanFilterTest.php
+++ b/tests/phpunit/unit/includes/changes/ChangesListBooleanFilterTest.php
@@ -1,7 +1,7 @@
<?php
/**
- * @covers ChangesListBooleanFilter
+ * @covers \ChangesListBooleanFilter
*/
class ChangesListBooleanFilterTest extends MediaWikiUnitTestCase {
public function testGetJsData() {
diff --git a/tests/phpunit/unit/includes/changes/ChangesListFilterGroupTest.php b/tests/phpunit/unit/includes/changes/ChangesListFilterGroupTest.php
index d5c99097ea27..03e95b95dbd2 100644
--- a/tests/phpunit/unit/includes/changes/ChangesListFilterGroupTest.php
+++ b/tests/phpunit/unit/includes/changes/ChangesListFilterGroupTest.php
@@ -1,7 +1,7 @@
<?php
/**
- * @covers ChangesListFilterGroup
+ * @covers \ChangesListFilterGroup
*/
class ChangesListFilterGroupTest extends \MediaWikiUnitTestCase {
public function testReservedCharacter() {
diff --git a/tests/phpunit/unit/includes/changes/ChangesListFilterTest.php b/tests/phpunit/unit/includes/changes/ChangesListFilterTest.php
index 8ca017dc0aa8..61af02809e90 100644
--- a/tests/phpunit/unit/includes/changes/ChangesListFilterTest.php
+++ b/tests/phpunit/unit/includes/changes/ChangesListFilterTest.php
@@ -3,7 +3,7 @@
use Wikimedia\TestingAccessWrapper;
/**
- * @covers ChangesListFilter
+ * @covers \ChangesListFilter
*/
class ChangesListFilterTest extends MediaWikiUnitTestCase {
/** @var MockChangesListFilterGroup */
diff --git a/tests/phpunit/unit/includes/changes/ChangesListStringOptionsFilterGroupTest.php b/tests/phpunit/unit/includes/changes/ChangesListStringOptionsFilterGroupTest.php
index d326f363ba69..cfbd291b27c3 100644
--- a/tests/phpunit/unit/includes/changes/ChangesListStringOptionsFilterGroupTest.php
+++ b/tests/phpunit/unit/includes/changes/ChangesListStringOptionsFilterGroupTest.php
@@ -7,7 +7,7 @@ use Wikimedia\Rdbms\IReadableDatabase;
use Wikimedia\TestingAccessWrapper;
/**
- * @covers ChangesListStringOptionsFilterGroup
+ * @covers \ChangesListStringOptionsFilterGroup
*/
class ChangesListStringOptionsFilterGroupTest extends MediaWikiUnitTestCase {
diff --git a/tests/phpunit/unit/includes/content/FileContentHandlerTest.php b/tests/phpunit/unit/includes/content/FileContentHandlerTest.php
index ce8732bcd7bf..1784ddb25e3b 100644
--- a/tests/phpunit/unit/includes/content/FileContentHandlerTest.php
+++ b/tests/phpunit/unit/includes/content/FileContentHandlerTest.php
@@ -18,7 +18,7 @@ use Wikimedia\UUID\GlobalIdGenerator;
/**
* @group ContentHandler
*
- * @covers FileContentHandler
+ * @covers \FileContentHandler
*/
class FileContentHandlerTest extends MediaWikiUnitTestCase {
/**
diff --git a/tests/phpunit/unit/includes/content/JsonContentHandlerTest.php b/tests/phpunit/unit/includes/content/JsonContentHandlerTest.php
index 70db73c810b5..f361ee11fbf4 100644
--- a/tests/phpunit/unit/includes/content/JsonContentHandlerTest.php
+++ b/tests/phpunit/unit/includes/content/JsonContentHandlerTest.php
@@ -3,7 +3,7 @@
class JsonContentHandlerTest extends \MediaWikiUnitTestCase {
/**
- * @covers JsonContentHandler::makeEmptyContent
+ * @covers \JsonContentHandler::makeEmptyContent
*/
public function testMakeEmptyContent() {
$handler = new JsonContentHandler();
diff --git a/tests/phpunit/unit/includes/content/TextContentHandlerTest.php b/tests/phpunit/unit/includes/content/TextContentHandlerTest.php
index ab0037989007..a25aa696f419 100644
--- a/tests/phpunit/unit/includes/content/TextContentHandlerTest.php
+++ b/tests/phpunit/unit/includes/content/TextContentHandlerTest.php
@@ -5,7 +5,7 @@
*/
class TextContentHandlerTest extends MediaWikiUnitTestCase {
/**
- * @covers TextContentHandler::supportsDirectEditing
+ * @covers \TextContentHandler::supportsDirectEditing
*/
public function testSupportsDirectEditing() {
$handler = new TextContentHandler();
@@ -13,8 +13,8 @@ class TextContentHandlerTest extends MediaWikiUnitTestCase {
}
/**
- * @covers SearchEngine::makeSearchFieldMapping
- * @covers ContentHandler::getFieldsForSearchIndex
+ * @covers \SearchEngine::makeSearchFieldMapping
+ * @covers \ContentHandler::getFieldsForSearchIndex
*/
public function testFieldsForIndex() {
$handler = new TextContentHandler();
diff --git a/tests/phpunit/unit/includes/content/WikitextContentHandlerTest.php b/tests/phpunit/unit/includes/content/WikitextContentHandlerTest.php
index 11adfd78830c..bdc07b86bd93 100644
--- a/tests/phpunit/unit/includes/content/WikitextContentHandlerTest.php
+++ b/tests/phpunit/unit/includes/content/WikitextContentHandlerTest.php
@@ -82,7 +82,7 @@ class WikitextContentHandlerTest extends MediaWikiUnitTestCase {
}
/**
- * @covers WikitextContentHandler::makeEmptyContent
+ * @covers \WikitextContentHandler::makeEmptyContent
*/
public function testMakeEmptyContent() {
$handler = $this->newWikitextContentHandler();
diff --git a/tests/phpunit/unit/includes/db/MWLBFactoryTest.php b/tests/phpunit/unit/includes/db/MWLBFactoryTest.php
index 4cde0ca645e1..0c55218f056a 100644
--- a/tests/phpunit/unit/includes/db/MWLBFactoryTest.php
+++ b/tests/phpunit/unit/includes/db/MWLBFactoryTest.php
@@ -47,7 +47,7 @@ class MWLBFactoryTest extends MediaWikiUnitTestCase {
}
/**
- * @covers MWLBFactory::getLBFactoryClass
+ * @covers \MWLBFactory::getLBFactoryClass
* @dataProvider getLBFactoryClassProvider
*/
public function testGetLBFactoryClass( $config, $expected ) {
@@ -69,7 +69,7 @@ class MWLBFactoryTest extends MediaWikiUnitTestCase {
}
/**
- * @covers MWLBFactory::setDomainAliases()
+ * @covers \MWLBFactory::setDomainAliases()
* @dataProvider setDomainAliasesProvider
*/
public function testDomainAliases( $dbname, $prefix, $expectedDomain ) {
diff --git a/tests/phpunit/unit/includes/diff/UnsupportedSlotDiffRendererTest.php b/tests/phpunit/unit/includes/diff/UnsupportedSlotDiffRendererTest.php
index 34ed2012bd5f..b4ad8f6b9942 100644
--- a/tests/phpunit/unit/includes/diff/UnsupportedSlotDiffRendererTest.php
+++ b/tests/phpunit/unit/includes/diff/UnsupportedSlotDiffRendererTest.php
@@ -1,7 +1,7 @@
<?php
/**
- * @covers UnsupportedSlotDiffRenderer
+ * @covers \UnsupportedSlotDiffRenderer
*/
class UnsupportedSlotDiffRendererTest extends MediaWikiUnitTestCase {
diff --git a/tests/phpunit/unit/includes/editpage/IEditObjectTest.php b/tests/phpunit/unit/includes/editpage/IEditObjectTest.php
index e06e4d8ebf6f..44176be86d9d 100644
--- a/tests/phpunit/unit/includes/editpage/IEditObjectTest.php
+++ b/tests/phpunit/unit/includes/editpage/IEditObjectTest.php
@@ -4,7 +4,7 @@ use MediaWiki\EditPage\EditPage;
use MediaWiki\EditPage\IEditObject;
/**
- * @covers MediaWiki\EditPage\EditPage
+ * @covers \MediaWiki\EditPage\EditPage
*
* MediaWikiCoversValidator fails when trying to say that this covers an interface,
* but this covers \MediaWiki\EditPage\IEditObject primarily
diff --git a/tests/phpunit/unit/includes/exception/HttpErrorTest.php b/tests/phpunit/unit/includes/exception/HttpErrorTest.php
index 539d5f768c39..2b4bda604ad0 100644
--- a/tests/phpunit/unit/includes/exception/HttpErrorTest.php
+++ b/tests/phpunit/unit/includes/exception/HttpErrorTest.php
@@ -3,7 +3,7 @@
/**
* @todo tests for HttpError::report
*
- * @covers HttpError
+ * @covers \HttpError
*/
class HttpErrorTest extends MediaWikiUnitTestCase {
diff --git a/tests/phpunit/unit/includes/exception/MWExceptionHandlerTest.php b/tests/phpunit/unit/includes/exception/MWExceptionHandlerTest.php
index 39ff45d7f2df..3fdd963713ae 100644
--- a/tests/phpunit/unit/includes/exception/MWExceptionHandlerTest.php
+++ b/tests/phpunit/unit/includes/exception/MWExceptionHandlerTest.php
@@ -4,7 +4,7 @@ use Wikimedia\NormalizedException\NormalizedException;
use Wikimedia\TestingAccessWrapper;
/**
- * @covers MWExceptionHandler
+ * @covers \MWExceptionHandler
* @author Antoine Musso
*/
class MWExceptionHandlerTest extends \MediaWikiUnitTestCase {
diff --git a/tests/phpunit/unit/includes/filebackend/FileBackendGroupTest.php b/tests/phpunit/unit/includes/filebackend/FileBackendGroupTest.php
index b4b34b9e2a00..54fdea62fdda 100644
--- a/tests/phpunit/unit/includes/filebackend/FileBackendGroupTest.php
+++ b/tests/phpunit/unit/includes/filebackend/FileBackendGroupTest.php
@@ -6,7 +6,7 @@ use MediaWiki\FileBackend\LockManager\LockManagerGroupFactory;
use MediaWiki\Tests\Unit\DummyServicesTrait;
/**
- * @coversDefaultClass FileBackendGroup
+ * @coversDefaultClass \FileBackendGroup
*/
class FileBackendGroupTest extends MediaWikiUnitTestCase {
use DummyServicesTrait;
diff --git a/tests/phpunit/unit/includes/filebackend/HTTPFileStreamerTest.php b/tests/phpunit/unit/includes/filebackend/HTTPFileStreamerTest.php
index 30c228a09b49..0a5a08d2ae2a 100644
--- a/tests/phpunit/unit/includes/filebackend/HTTPFileStreamerTest.php
+++ b/tests/phpunit/unit/includes/filebackend/HTTPFileStreamerTest.php
@@ -5,7 +5,7 @@ use PHPUnit\Framework\TestCase;
class HTTPFileStreamerTest extends TestCase {
/**
- * @covers HTTPFileStreamer::preprocessHeaders
+ * @covers \HTTPFileStreamer::preprocessHeaders
* @dataProvider providePreprocessHeaders
*/
public function testPreprocessHeaders( array $input, array $expectedRaw, array $expectedOpt ) {
diff --git a/tests/phpunit/unit/includes/filebackend/lockmanager/LockManagerGroupFactoryTest.php b/tests/phpunit/unit/includes/filebackend/lockmanager/LockManagerGroupFactoryTest.php
index ca39341032d1..ae793d1c9909 100644
--- a/tests/phpunit/unit/includes/filebackend/lockmanager/LockManagerGroupFactoryTest.php
+++ b/tests/phpunit/unit/includes/filebackend/lockmanager/LockManagerGroupFactoryTest.php
@@ -4,7 +4,7 @@ use MediaWiki\FileBackend\LockManager\LockManagerGroupFactory;
use Wikimedia\Rdbms\LBFactory;
/**
- * @covers MediaWiki\FileBackend\LockManager\LockManagerGroupFactory
+ * @covers \MediaWiki\FileBackend\LockManager\LockManagerGroupFactory
* @todo Should we somehow test that the LockManagerGroup objects are as we expect? How do we do
* that without getting into testing LockManagerGroup itself?
*/
diff --git a/tests/phpunit/unit/includes/filebackend/lockmanager/LockManagerGroupTest.php b/tests/phpunit/unit/includes/filebackend/lockmanager/LockManagerGroupTest.php
index cb848e751ed3..75c896e6d2d8 100644
--- a/tests/phpunit/unit/includes/filebackend/lockmanager/LockManagerGroupTest.php
+++ b/tests/phpunit/unit/includes/filebackend/lockmanager/LockManagerGroupTest.php
@@ -8,7 +8,7 @@ use Wikimedia\Rdbms\LBFactory;
* ObjectCache and LoggerFactory that aren't yet compatible with proper unit tests. Those will be
* tested in the integration test for now.
*
- * @covers LockManagerGroup
+ * @covers \LockManagerGroup
*/
class LockManagerGroupTest extends MediaWikiUnitTestCase {
private function getMockLBFactory() {
diff --git a/tests/phpunit/unit/includes/filerepo/file/ForeignDBFileTest.php b/tests/phpunit/unit/includes/filerepo/file/ForeignDBFileTest.php
index dc0215519d96..770d44cdffcf 100644
--- a/tests/phpunit/unit/includes/filerepo/file/ForeignDBFileTest.php
+++ b/tests/phpunit/unit/includes/filerepo/file/ForeignDBFileTest.php
@@ -2,8 +2,8 @@
use MediaWiki\Title\Title;
-/** @covers ForeignDBFile */
-class ForeignDBFileTest extends \MediaWikiUnitTestCase {
+/** @covers \ForeignDBFile */
+class ForeignDBFileTest extends MediaWikiUnitTestCase {
public function testShouldConstructCorrectInstanceFromTitle() {
$title = Title::makeTitle( NS_FILE, 'Awesome_file' );
diff --git a/tests/phpunit/unit/includes/historyblob/DiffHistoryBlobTest.php b/tests/phpunit/unit/includes/historyblob/DiffHistoryBlobTest.php
index 499eb59f4585..44b0fae549f0 100644
--- a/tests/phpunit/unit/includes/historyblob/DiffHistoryBlobTest.php
+++ b/tests/phpunit/unit/includes/historyblob/DiffHistoryBlobTest.php
@@ -6,7 +6,7 @@
class DiffHistoryBlobTest extends MediaWikiUnitTestCase {
/**
* @dataProvider provideXdiffAdler32
- * @covers DiffHistoryBlob::xdiffAdler32
+ * @covers \DiffHistoryBlob::xdiffAdler32
*/
public function testXdiffAdler32( $input ) {
$xdiffHash = substr( xdiff_string_rabdiff( $input, '' ), 0, 4 );
diff --git a/tests/phpunit/unit/includes/historyblob/HistoryBlobUtilsTest.php b/tests/phpunit/unit/includes/historyblob/HistoryBlobUtilsTest.php
index e0eda0243542..a01de0673243 100644
--- a/tests/phpunit/unit/includes/historyblob/HistoryBlobUtilsTest.php
+++ b/tests/phpunit/unit/includes/historyblob/HistoryBlobUtilsTest.php
@@ -1,7 +1,7 @@
<?php
/**
- * @covers HistoryBlobUtils
+ * @covers \HistoryBlobUtils
*/
class HistoryBlobUtilsTest extends MediaWikiUnitTestCase {
public static function provideUnserialize() {
diff --git a/tests/phpunit/unit/includes/htmlform/HTMLCheckMatrixTest.php b/tests/phpunit/unit/includes/htmlform/HTMLCheckMatrixTest.php
index 007e2c6aee36..a858ba9b5ec5 100644
--- a/tests/phpunit/unit/includes/htmlform/HTMLCheckMatrixTest.php
+++ b/tests/phpunit/unit/includes/htmlform/HTMLCheckMatrixTest.php
@@ -6,7 +6,7 @@ use MediaWiki\HTMLForm\HTMLFormField;
use MediaWiki\HTMLForm\HTMLFormFieldRequiredOptionsException;
/**
- * @covers HTMLCheckMatrix
+ * @covers \HTMLCheckMatrix
*/
class HTMLCheckMatrixTest extends MediaWikiUnitTestCase {
private $defaultOptions = [
diff --git a/tests/phpunit/unit/includes/import/WikiImporterFactoryTest.php b/tests/phpunit/unit/includes/import/WikiImporterFactoryTest.php
index 0373c53c7269..999f8171d36c 100644
--- a/tests/phpunit/unit/includes/import/WikiImporterFactoryTest.php
+++ b/tests/phpunit/unit/includes/import/WikiImporterFactoryTest.php
@@ -10,7 +10,7 @@ use WikiImporter;
use WikiImporterFactory;
/**
- * @covers WikiImporterFactory
+ * @covers \WikiImporterFactory
*/
class WikiImporterFactoryTest extends MediaWikiUnitTestCase {
use FactoryArgTestTrait;
diff --git a/tests/phpunit/unit/includes/interwiki/InterwikiLookupAdapterTest.php b/tests/phpunit/unit/includes/interwiki/InterwikiLookupAdapterTest.php
index 8ee04d153f88..c964cc2243ff 100644
--- a/tests/phpunit/unit/includes/interwiki/InterwikiLookupAdapterTest.php
+++ b/tests/phpunit/unit/includes/interwiki/InterwikiLookupAdapterTest.php
@@ -7,7 +7,7 @@ use MediaWiki\Site\SiteList;
use MediaWiki\Site\SiteLookup;
/**
- * @covers MediaWiki\Interwiki\InterwikiLookupAdapter
+ * @covers \MediaWiki\Interwiki\InterwikiLookupAdapter
* @group Interwiki
*/
class InterwikiLookupAdapterTest extends \MediaWikiUnitTestCase {
diff --git a/tests/phpunit/unit/includes/jobqueue/JobSpecificationTest.php b/tests/phpunit/unit/includes/jobqueue/JobSpecificationTest.php
index 85ed21fa7067..b3f8745c9a2c 100644
--- a/tests/phpunit/unit/includes/jobqueue/JobSpecificationTest.php
+++ b/tests/phpunit/unit/includes/jobqueue/JobSpecificationTest.php
@@ -2,14 +2,14 @@
/**
* Class JobSpecificationTest
- * @covers JobSpecification
+ * @covers \JobSpecification
*/
class JobSpecificationTest extends MediaWikiUnitTestCase {
private const JOB_TYPE = 'testJob';
private const JOB_PARAMS = [ 'param' => 'value' ];
/**
- * @covers JobSpecification::ignoreDuplicates
+ * @covers \JobSpecification::ignoreDuplicates
*/
public function testNotRemoveDuplicates() {
$jobSpec = new JobSpecification(
@@ -21,7 +21,7 @@ class JobSpecificationTest extends MediaWikiUnitTestCase {
}
/**
- * @covers JobSpecification::ignoreDuplicates
+ * @covers \JobSpecification::ignoreDuplicates
*/
public function testRemoveDuplicates() {
$jobSpec = new JobSpecification(
@@ -34,7 +34,7 @@ class JobSpecificationTest extends MediaWikiUnitTestCase {
}
/**
- * @covers JobSpecification::getDeduplicationInfo
+ * @covers \JobSpecification::getDeduplicationInfo
*/
public function testGetDeduplicationInfo() {
$jobSpec = new JobSpecification(
@@ -49,7 +49,7 @@ class JobSpecificationTest extends MediaWikiUnitTestCase {
}
/**
- * @covers JobSpecification::getDeduplicationInfo
+ * @covers \JobSpecification::getDeduplicationInfo
*/
public function testGetDeduplicationInfo_ignoreParams() {
$jobSpec = new JobSpecification(
diff --git a/tests/phpunit/unit/includes/json/FormatJsonTest.php b/tests/phpunit/unit/includes/json/FormatJsonTest.php
index 9fab60700faa..e21db4c2eecc 100644
--- a/tests/phpunit/unit/includes/json/FormatJsonTest.php
+++ b/tests/phpunit/unit/includes/json/FormatJsonTest.php
@@ -1,7 +1,7 @@
<?php
/**
- * @covers FormatJson
+ * @covers \FormatJson
*/
class FormatJsonTest extends MediaWikiUnitTestCase {
@@ -223,7 +223,7 @@ class FormatJsonTest extends MediaWikiUnitTestCase {
}
/**
- * @covers FormatJson::stripComments
+ * @covers \FormatJson::stripComments
* @dataProvider provideStripComments
* @param string $json
* @param string $expect
@@ -241,8 +241,8 @@ class FormatJsonTest extends MediaWikiUnitTestCase {
}
/**
- * @covers FormatJson::parse
- * @covers FormatJson::stripComments
+ * @covers \FormatJson::parse
+ * @covers \FormatJson::stripComments
* @dataProvider provideParseStripComments
*/
public function testParseStripComments( $json, $expect ) {
@@ -336,8 +336,8 @@ class FormatJsonTest extends MediaWikiUnitTestCase {
}
/**
- * @covers FormatJson::encode
- * @covers FormatJson::decode
+ * @covers \FormatJson::encode
+ * @covers \FormatJson::decode
* @dataProvider provideEmptyJsonKeyStrings
*
* Decoding behavior with empty keys can be surprising.
diff --git a/tests/phpunit/unit/includes/language/FormatterFactoryTest.php b/tests/phpunit/unit/includes/language/FormatterFactoryTest.php
index 2a03ec5717e2..a6c69de29991 100644
--- a/tests/phpunit/unit/includes/language/FormatterFactoryTest.php
+++ b/tests/phpunit/unit/includes/language/FormatterFactoryTest.php
@@ -7,7 +7,7 @@ use MediaWiki\Title\TitleFormatter;
use MediaWiki\User\UserIdentityUtils;
/**
- * @covers MediaWiki\Language\FormatterFactory
+ * @covers \MediaWiki\Language\FormatterFactory
*/
class FormatterFactoryTest extends MediaWikiUnitTestCase {
diff --git a/tests/phpunit/unit/includes/language/LCStoreStaticArrayTest.php b/tests/phpunit/unit/includes/language/LCStoreStaticArrayTest.php
index 55f15fd379f4..d8896b663ca6 100644
--- a/tests/phpunit/unit/includes/language/LCStoreStaticArrayTest.php
+++ b/tests/phpunit/unit/includes/language/LCStoreStaticArrayTest.php
@@ -1,7 +1,7 @@
<?php
/**
- * @covers LCStoreStaticArray
+ * @covers \LCStoreStaticArray
* @group Language
*/
class LCStoreStaticArrayTest extends MediaWikiUnitTestCase {
diff --git a/tests/phpunit/unit/includes/language/LanguageCodeTest.php b/tests/phpunit/unit/includes/language/LanguageCodeTest.php
index 87b79749c71f..a23eabdb4f1f 100644
--- a/tests/phpunit/unit/includes/language/LanguageCodeTest.php
+++ b/tests/phpunit/unit/includes/language/LanguageCodeTest.php
@@ -5,7 +5,7 @@ use MediaWiki\Tests\Unit\DummyServicesTrait;
use Wikimedia\Bcp47Code\Bcp47CodeValue;
/**
- * @covers LanguageCode
+ * @covers \LanguageCode
* @group Language
*
* @author Thiemo Kreuz
@@ -201,8 +201,8 @@ class LanguageCodeTest extends MediaWikiUnitTestCase {
}
/**
- * @covers LanguageCode::bcp47()
- * @covers LanguageCode::bcp47ToInternal()
+ * @covers \LanguageCode::bcp47()
+ * @covers \LanguageCode::bcp47ToInternal()
* @dataProvider provideBcp47ToInternal()
*/
public function testBcp47ToInternal( $expected, $bcp47 ) {
@@ -211,7 +211,7 @@ class LanguageCodeTest extends MediaWikiUnitTestCase {
}
/**
- * @covers LanguageCode::bcp47ToInternal()
+ * @covers \LanguageCode::bcp47ToInternal()
* @dataProvider provideSupportedLanguageCodes()
*/
public function testBcp47ToInternalLanguage( $internalCode ) {
@@ -263,7 +263,7 @@ class LanguageCodeTest extends MediaWikiUnitTestCase {
/**
* Test LanguageCode::isWellFormedLanguageTag()
* @dataProvider provideWellFormedLanguageTags
- * @covers LanguageCode::isWellFormedLanguageTag
+ * @covers \LanguageCode::isWellFormedLanguageTag
*/
public function testWellFormedLanguageTag( $code, $message = '' ) {
$this->assertTrue(
@@ -317,7 +317,7 @@ class LanguageCodeTest extends MediaWikiUnitTestCase {
/**
* Negative test for LanguageCode::isWellFormedLanguageTag()
* @dataProvider provideMalformedLanguageTags
- * @covers LanguageCode::isWellFormedLanguageTag
+ * @covers \LanguageCode::isWellFormedLanguageTag
*/
public function testMalformedLanguageTag( $code, $message = '' ) {
$this->assertFalse(
@@ -372,7 +372,7 @@ class LanguageCodeTest extends MediaWikiUnitTestCase {
/**
* Negative test for LanguageCode::isWellFormedLanguageTag()
- * @covers LanguageCode::isWellFormedLanguageTag
+ * @covers \LanguageCode::isWellFormedLanguageTag
*/
public function testLenientLanguageTag() {
$this->assertTrue(
diff --git a/tests/phpunit/unit/includes/language/LanguageFallbackTest.php b/tests/phpunit/unit/includes/language/LanguageFallbackTest.php
index 4d37668d0df4..200ec980f3d2 100644
--- a/tests/phpunit/unit/includes/language/LanguageFallbackTest.php
+++ b/tests/phpunit/unit/includes/language/LanguageFallbackTest.php
@@ -4,7 +4,7 @@ use MediaWiki\Languages\LanguageFallback;
use MediaWiki\Tests\Unit\DummyServicesTrait;
/**
- * @coversDefaultClass MediaWiki\Languages\LanguageFallback
+ * @coversDefaultClass \MediaWiki\Languages\LanguageFallback
* @covers ::__construct
*/
class LanguageFallbackTest extends MediaWikiUnitTestCase {
diff --git a/tests/phpunit/unit/includes/language/LanguageFallbackTestTrait.php b/tests/phpunit/unit/includes/language/LanguageFallbackTestTrait.php
index 54022e28b173..a7d67ada8e40 100644
--- a/tests/phpunit/unit/includes/language/LanguageFallbackTestTrait.php
+++ b/tests/phpunit/unit/includes/language/LanguageFallbackTestTrait.php
@@ -71,7 +71,7 @@ trait LanguageFallbackTestTrait {
* @param array $expected
* @param array $options
* @dataProvider provideGetAll
- * @covers MediaWiki\Languages\LanguageFallback::getFirst
+ * @covers \MediaWiki\Languages\LanguageFallback::getFirst
*/
public function testGetFirst( $code, array $expected, array $options = [] ) {
$callee = $this->getCallee( $options );
@@ -84,7 +84,7 @@ trait LanguageFallbackTestTrait {
* @param array $expected
* @param array $options
* @dataProvider provideGetAll
- * @covers MediaWiki\Languages\LanguageFallback::getAll
+ * @covers \MediaWiki\Languages\LanguageFallback::getAll
*/
public function testGetAll( $code, array $expected, array $options = [] ) {
$this->assertSame( $expected,
@@ -96,7 +96,7 @@ trait LanguageFallbackTestTrait {
* @param array $expected
* @param array $options
* @dataProvider provideGetAll
- * @covers MediaWiki\Languages\LanguageFallback::getAll
+ * @covers \MediaWiki\Languages\LanguageFallback::getAll
*/
public function testGetAll_messages( $code, array $expected, array $options = [] ) {
$this->assertSame( $expected,
@@ -120,7 +120,7 @@ trait LanguageFallbackTestTrait {
* @param array $expected
* @param array $options
* @dataProvider provideGetAll_strict
- * @covers MediaWiki\Languages\LanguageFallback::getAll
+ * @covers \MediaWiki\Languages\LanguageFallback::getAll
*/
public function testGetAll_strict( $code, array $expected, array $options = [] ) {
$this->assertSame( $expected,
@@ -140,7 +140,7 @@ trait LanguageFallbackTestTrait {
}
/**
- * @covers MediaWiki\Languages\LanguageFallback::getAll
+ * @covers \MediaWiki\Languages\LanguageFallback::getAll
*/
public function testGetAll_invalidMode() {
$this->expectException( InvalidArgumentException::class );
@@ -163,7 +163,7 @@ trait LanguageFallbackTestTrait {
* @param array $expected
* @param int $expectedGets
* @dataProvider provideGetAllIncludingSiteLanguage
- * @covers MediaWiki\Languages\LanguageFallback::getAllIncludingSiteLanguage
+ * @covers \MediaWiki\Languages\LanguageFallback::getAllIncludingSiteLanguage
*/
public function testGetAllIncludingSiteLanguage(
$code, $siteLangCode, array $expected, $expectedGets = 1
diff --git a/tests/phpunit/unit/includes/language/LanguageNameUtilsTestTrait.php b/tests/phpunit/unit/includes/language/LanguageNameUtilsTestTrait.php
index 9de5e9f2df9a..4dd1b979c4d6 100644
--- a/tests/phpunit/unit/includes/language/LanguageNameUtilsTestTrait.php
+++ b/tests/phpunit/unit/includes/language/LanguageNameUtilsTestTrait.php
@@ -18,8 +18,8 @@ trait LanguageNameUtilsTestTrait {
/**
* @dataProvider provideIsSupportedLanguage
- * @covers MediaWiki\Languages\LanguageNameUtils::__construct
- * @covers MediaWiki\Languages\LanguageNameUtils::isSupportedLanguage
+ * @covers \MediaWiki\Languages\LanguageNameUtils::__construct
+ * @covers \MediaWiki\Languages\LanguageNameUtils::isSupportedLanguage
*/
public function testIsSupportedLanguage( $code, $expected ) {
$this->assertSame( $expected, $this->isSupportedLanguage( $code ) );
@@ -48,7 +48,7 @@ trait LanguageNameUtilsTestTrait {
* Is it possible to change it usefully without breaking everything?
*
* @dataProvider provideIsValidCode
- * @covers MediaWiki\Languages\LanguageNameUtils::isValidCode
+ * @covers \MediaWiki\Languages\LanguageNameUtils::isValidCode
*
* @param string $code
* @param bool $expected
@@ -88,7 +88,7 @@ trait LanguageNameUtilsTestTrait {
/**
* @dataProvider provideIsValidBuiltInCode
- * @covers MediaWiki\Languages\LanguageNameUtils::isValidBuiltInCode
+ * @covers \MediaWiki\Languages\LanguageNameUtils::isValidBuiltInCode
*
* @param string $code
* @param bool $expected
@@ -117,7 +117,7 @@ trait LanguageNameUtilsTestTrait {
/**
* @dataProvider provideIsKnownLanguageTag
- * @covers MediaWiki\Languages\LanguageNameUtils::isKnownLanguageTag
+ * @covers \MediaWiki\Languages\LanguageNameUtils::isKnownLanguageTag
*
* @param string $code
* @param bool $expected
@@ -154,9 +154,9 @@ trait LanguageNameUtilsTestTrait {
/**
* @dataProvider provideGetLanguageNames
- * @covers MediaWiki\Languages\LanguageNameUtils::getLanguageNames
- * @covers MediaWiki\Languages\LanguageNameUtils::getLanguageNamesUncached
- * @covers MediaWiki\Languages\LanguageNameUtils::getLanguageName
+ * @covers \MediaWiki\Languages\LanguageNameUtils::getLanguageNames
+ * @covers \MediaWiki\Languages\LanguageNameUtils::getLanguageNamesUncached
+ * @covers \MediaWiki\Languages\LanguageNameUtils::getLanguageName
*/
public function testGetLanguageNames( $expected, $code, ...$otherArgs ) {
$this->clearLanguageHook( 'LanguageGetTranslatedLanguageNames' );
@@ -192,9 +192,9 @@ trait LanguageNameUtilsTestTrait {
/**
* @dataProvider provideGetLanguageNames_withHook
- * @covers MediaWiki\Languages\LanguageNameUtils::getLanguageNames
- * @covers MediaWiki\Languages\LanguageNameUtils::getLanguageNamesUncached
- * @covers MediaWiki\Languages\LanguageNameUtils::getLanguageName
+ * @covers \MediaWiki\Languages\LanguageNameUtils::getLanguageNames
+ * @covers \MediaWiki\Languages\LanguageNameUtils::getLanguageNamesUncached
+ * @covers \MediaWiki\Languages\LanguageNameUtils::getLanguageName
*/
public function testGetLanguageNames_withHook( $expected, $code, ...$otherArgs ) {
$this->setLanguageTemporaryHook( 'LanguageGetTranslatedLanguageNames',
@@ -250,9 +250,9 @@ trait LanguageNameUtilsTestTrait {
/**
* @dataProvider provideGetLanguageNames_ExtraLanguageNames
- * @covers MediaWiki\Languages\LanguageNameUtils::getLanguageNames
- * @covers MediaWiki\Languages\LanguageNameUtils::getLanguageNamesUncached
- * @covers MediaWiki\Languages\LanguageNameUtils::getLanguageName
+ * @covers \MediaWiki\Languages\LanguageNameUtils::getLanguageNames
+ * @covers \MediaWiki\Languages\LanguageNameUtils::getLanguageNamesUncached
+ * @covers \MediaWiki\Languages\LanguageNameUtils::getLanguageName
*/
public function testGetLanguageNames_ExtraLanguageNames( $expected, $code, ...$otherArgs ) {
$this->setLanguageTemporaryHook( 'LanguageGetTranslatedLanguageNames',
@@ -282,9 +282,9 @@ trait LanguageNameUtilsTestTrait {
/**
* Test that getLanguageNames() defaults to DEFINED, and getLanguageName() defaults to ALL.
*
- * @covers MediaWiki\Languages\LanguageNameUtils::getLanguageNames
- * @covers MediaWiki\Languages\LanguageNameUtils::getLanguageNamesUncached
- * @covers MediaWiki\Languages\LanguageNameUtils::getLanguageName
+ * @covers \MediaWiki\Languages\LanguageNameUtils::getLanguageNames
+ * @covers \MediaWiki\Languages\LanguageNameUtils::getLanguageNamesUncached
+ * @covers \MediaWiki\Languages\LanguageNameUtils::getLanguageName
*/
public function testGetLanguageNames_parameterDefault() {
$this->setLanguageTemporaryHook( 'LanguageGetTranslatedLanguageNames',
@@ -302,8 +302,8 @@ trait LanguageNameUtilsTestTrait {
/**
* @dataProvider provideGetLanguageNames_sorted
- * @covers MediaWiki\Languages\LanguageNameUtils::getLanguageNames
- * @covers MediaWiki\Languages\LanguageNameUtils::getLanguageNamesUncached
+ * @covers \MediaWiki\Languages\LanguageNameUtils::getLanguageNames
+ * @covers \MediaWiki\Languages\LanguageNameUtils::getLanguageNamesUncached
*/
public function testGetLanguageNames_sorted( ...$args ) {
$names = $this->getLanguageNames( ...$args );
@@ -326,8 +326,8 @@ trait LanguageNameUtilsTestTrait {
}
/**
- * @covers MediaWiki\Languages\LanguageNameUtils::getLanguageNames
- * @covers MediaWiki\Languages\LanguageNameUtils::getLanguageNamesUncached
+ * @covers \MediaWiki\Languages\LanguageNameUtils::getLanguageNames
+ * @covers \MediaWiki\Languages\LanguageNameUtils::getLanguageNamesUncached
*/
public function testGetLanguageNames_hookNotCalledForAutonyms() {
$count = 0;
@@ -348,9 +348,9 @@ trait LanguageNameUtilsTestTrait {
/**
* @dataProvider provideGetLanguageNames_pigLatin
- * @covers MediaWiki\Languages\LanguageNameUtils::getLanguageNames
- * @covers MediaWiki\Languages\LanguageNameUtils::getLanguageNamesUncached
- * @covers MediaWiki\Languages\LanguageNameUtils::getLanguageName
+ * @covers \MediaWiki\Languages\LanguageNameUtils::getLanguageNames
+ * @covers \MediaWiki\Languages\LanguageNameUtils::getLanguageNamesUncached
+ * @covers \MediaWiki\Languages\LanguageNameUtils::getLanguageName
*/
public function testGetLanguageNames_pigLatin( $expected, ...$otherArgs ) {
$this->setLanguageTemporaryHook( 'LanguageGetTranslatedLanguageNames',
@@ -385,9 +385,9 @@ trait LanguageNameUtilsTestTrait {
}
/**
- * @covers MediaWiki\Languages\LanguageNameUtils::getLanguageNames
- * @covers MediaWiki\Languages\LanguageNameUtils::getLanguageNamesUncached
- * @covers MediaWiki\Languages\LanguageNameUtils::getLanguageName
+ * @covers \MediaWiki\Languages\LanguageNameUtils::getLanguageNames
+ * @covers \MediaWiki\Languages\LanguageNameUtils::getLanguageNamesUncached
+ * @covers \MediaWiki\Languages\LanguageNameUtils::getLanguageName
*/
public function testGetLanguageNames_pigLatinNotSupported() {
// Pig Latin is "not supported" when UsePigLatinVariant is false
@@ -403,9 +403,9 @@ trait LanguageNameUtilsTestTrait {
* about this, but once we're testing the whole file we may as
* well be comprehensive.
*
- * @covers MediaWiki\Languages\LanguageNameUtils::getLanguageNames
- * @covers MediaWiki\Languages\LanguageNameUtils::getLanguageNamesUncached
- * @covers MediaWiki\Languages\LanguageNameUtils::getLanguageName
+ * @covers \MediaWiki\Languages\LanguageNameUtils::getLanguageNames
+ * @covers \MediaWiki\Languages\LanguageNameUtils::getLanguageNamesUncached
+ * @covers \MediaWiki\Languages\LanguageNameUtils::getLanguageName
*/
public function testGetLanguageNames_pigLatinAndExtraLanguageNames() {
$this->assertGetLanguageNames(
@@ -419,9 +419,9 @@ trait LanguageNameUtilsTestTrait {
}
/**
- * @covers MediaWiki\Languages\LanguageNameUtils::getLanguageNames
- * @covers MediaWiki\Languages\LanguageNameUtils::getLanguageNamesUncached
- * @covers MediaWiki\Languages\LanguageNameUtils::getLanguageName
+ * @covers \MediaWiki\Languages\LanguageNameUtils::getLanguageNames
+ * @covers \MediaWiki\Languages\LanguageNameUtils::getLanguageNamesUncached
+ * @covers \MediaWiki\Languages\LanguageNameUtils::getLanguageName
*/
public function testGetLanguageNames_xss(): void {
// not supported if disabled
@@ -446,7 +446,7 @@ trait LanguageNameUtilsTestTrait {
/**
* @dataProvider provideGetFileName
- * @covers MediaWiki\Languages\LanguageNameUtils::getFileName
+ * @covers \MediaWiki\Languages\LanguageNameUtils::getFileName
*/
public function testGetFileName( $expected, ...$args ) {
$this->assertSame( $expected, $this->getFileName( ...$args ) );
@@ -466,7 +466,7 @@ trait LanguageNameUtilsTestTrait {
/**
* @dataProvider provideGetMessagesFileName
- * @covers MediaWiki\Languages\LanguageNameUtils::getMessagesFileName
+ * @covers \MediaWiki\Languages\LanguageNameUtils::getMessagesFileName
*
* @param string $code
* @param string $expected
@@ -485,7 +485,7 @@ trait LanguageNameUtilsTestTrait {
}
/**
- * @covers MediaWiki\Languages\LanguageNameUtils::getMessagesFileName
+ * @covers \MediaWiki\Languages\LanguageNameUtils::getMessagesFileName
*/
public function testGetMessagesFileName_withHook() {
$called = 0;
@@ -509,7 +509,7 @@ trait LanguageNameUtilsTestTrait {
abstract protected function getJsonMessagesFileName( $code );
/**
- * @covers MediaWiki\Languages\LanguageNameUtils::getJsonMessagesFileName
+ * @covers \MediaWiki\Languages\LanguageNameUtils::getJsonMessagesFileName
*/
public function testGetJsonMessagesFileName() {
global $IP;
@@ -524,9 +524,9 @@ trait LanguageNameUtilsTestTrait {
* invalid code. To save boilerplate, test them all in one method.
*
* @dataProvider provideExceptionFromInvalidCode
- * @covers MediaWiki\Languages\LanguageNameUtils::getFileName
- * @covers MediaWiki\Languages\LanguageNameUtils::getMessagesFileName
- * @covers MediaWiki\Languages\LanguageNameUtils::getJsonMessagesFileName
+ * @covers \MediaWiki\Languages\LanguageNameUtils::getFileName
+ * @covers \MediaWiki\Languages\LanguageNameUtils::getMessagesFileName
+ * @covers \MediaWiki\Languages\LanguageNameUtils::getJsonMessagesFileName
*
* @param callable $callback Will throw when passed $code
* @param string $code
diff --git a/tests/phpunit/unit/includes/language/LanguageTest.php b/tests/phpunit/unit/includes/language/LanguageTest.php
index 50a485e19694..0e93ab49c130 100644
--- a/tests/phpunit/unit/includes/language/LanguageTest.php
+++ b/tests/phpunit/unit/includes/language/LanguageTest.php
@@ -8,7 +8,7 @@ use MediaWiki\Title\NamespaceInfo;
use Wikimedia\Bcp47Code\Bcp47CodeValue;
/**
- * @coversDefaultClass Language
+ * @coversDefaultClass \Language
*/
class LanguageTest extends MediaWikiUnitTestCase {
/**
diff --git a/tests/phpunit/unit/includes/language/LocalisationCacheTest.php b/tests/phpunit/unit/includes/language/LocalisationCacheTest.php
index a4fe60755033..a56761275e4e 100644
--- a/tests/phpunit/unit/includes/language/LocalisationCacheTest.php
+++ b/tests/phpunit/unit/includes/language/LocalisationCacheTest.php
@@ -9,7 +9,7 @@ use MediaWikiUnitTestCase;
use Wikimedia\TestingAccessWrapper;
/**
- * @covers LocalisationCache
+ * @covers \LocalisationCache
* @group Language
*/
class LocalisationCacheTest extends MediaWikiUnitTestCase {
diff --git a/tests/phpunit/unit/includes/libs/ArrayUtilsTest.php b/tests/phpunit/unit/includes/libs/ArrayUtilsTest.php
index f20a6ba8700a..43c6da25c11a 100644
--- a/tests/phpunit/unit/includes/libs/ArrayUtilsTest.php
+++ b/tests/phpunit/unit/includes/libs/ArrayUtilsTest.php
@@ -1,6 +1,6 @@
<?php
/**
- * @covers ArrayUtils
+ * @covers \ArrayUtils
*/
class ArrayUtilsTest extends PHPUnit\Framework\TestCase {
diff --git a/tests/phpunit/unit/includes/libs/CookieTest.php b/tests/phpunit/unit/includes/libs/CookieTest.php
index e383be965069..e04ceb6fbb70 100644
--- a/tests/phpunit/unit/includes/libs/CookieTest.php
+++ b/tests/phpunit/unit/includes/libs/CookieTest.php
@@ -1,13 +1,13 @@
<?php
/**
- * @covers Cookie
+ * @covers \Cookie
*/
class CookieTest extends \PHPUnit\Framework\TestCase {
/**
* @dataProvider cookieDomains
- * @covers Cookie::validateCookieDomain
+ * @covers \Cookie::validateCookieDomain
*/
public function testValidateCookieDomain( $expected, $domain, $origin = null ) {
if ( $origin ) {
diff --git a/tests/phpunit/unit/includes/libs/DeflateTest.php b/tests/phpunit/unit/includes/libs/DeflateTest.php
index 09a98fa55b54..7b512ef1723e 100644
--- a/tests/phpunit/unit/includes/libs/DeflateTest.php
+++ b/tests/phpunit/unit/includes/libs/DeflateTest.php
@@ -19,7 +19,7 @@
*/
/**
- * @covers Deflate
+ * @covers \Deflate
*/
class DeflateTest extends PHPUnit\Framework\TestCase {
use MediaWikiTestCaseTrait;
diff --git a/tests/phpunit/unit/includes/libs/DnsSrvDiscovererTest.php b/tests/phpunit/unit/includes/libs/DnsSrvDiscovererTest.php
index 67365d8c00a2..d82966b6fad4 100644
--- a/tests/phpunit/unit/includes/libs/DnsSrvDiscovererTest.php
+++ b/tests/phpunit/unit/includes/libs/DnsSrvDiscovererTest.php
@@ -1,7 +1,7 @@
<?php
/**
- * @covers DnsSrvDiscoverer
+ * @covers \DnsSrvDiscoverer
*/
class DnsSrvDiscovererTest extends PHPUnit\Framework\TestCase {
diff --git a/tests/phpunit/unit/includes/libs/HashRingTest.php b/tests/phpunit/unit/includes/libs/HashRingTest.php
index d2ea96c29c71..86a19f53c541 100644
--- a/tests/phpunit/unit/includes/libs/HashRingTest.php
+++ b/tests/phpunit/unit/includes/libs/HashRingTest.php
@@ -2,7 +2,7 @@
/**
* @group HashRing
- * @covers HashRing
+ * @covers \HashRing
*/
class HashRingTest extends PHPUnit\Framework\TestCase {
diff --git a/tests/phpunit/unit/includes/libs/HtmlArmorTest.php b/tests/phpunit/unit/includes/libs/HtmlArmorTest.php
index c5e87e4e2aaa..958126eba107 100644
--- a/tests/phpunit/unit/includes/libs/HtmlArmorTest.php
+++ b/tests/phpunit/unit/includes/libs/HtmlArmorTest.php
@@ -1,7 +1,7 @@
<?php
/**
- * @covers HtmlArmor
+ * @covers \HtmlArmor
*/
class HtmlArmorTest extends PHPUnit\Framework\TestCase {
diff --git a/tests/phpunit/unit/includes/libs/MWCryptHashTest.php b/tests/phpunit/unit/includes/libs/MWCryptHashTest.php
index 58c8b16f16f1..a407c3676a4e 100644
--- a/tests/phpunit/unit/includes/libs/MWCryptHashTest.php
+++ b/tests/phpunit/unit/includes/libs/MWCryptHashTest.php
@@ -3,7 +3,7 @@
/**
* @group Hash
*
- * @covers MWCryptHash
+ * @covers \MWCryptHash
*/
class MWCryptHashTest extends MediaWikiUnitTestCase {
diff --git a/tests/phpunit/unit/includes/libs/MapCacheLRUTest.php b/tests/phpunit/unit/includes/libs/MapCacheLRUTest.php
index c78bff041bae..8730d6c82c48 100644
--- a/tests/phpunit/unit/includes/libs/MapCacheLRUTest.php
+++ b/tests/phpunit/unit/includes/libs/MapCacheLRUTest.php
@@ -1,7 +1,7 @@
<?php
/**
* @group Cache
- * @covers MapCacheLRU
+ * @covers \MapCacheLRU
*/
class MapCacheLRUTest extends PHPUnit\Framework\TestCase {
diff --git a/tests/phpunit/unit/includes/libs/MemoizedCallableTest.php b/tests/phpunit/unit/includes/libs/MemoizedCallableTest.php
index 1314bf8b735a..dd74325ef1f8 100644
--- a/tests/phpunit/unit/includes/libs/MemoizedCallableTest.php
+++ b/tests/phpunit/unit/includes/libs/MemoizedCallableTest.php
@@ -3,7 +3,7 @@
use Wikimedia\TestingAccessWrapper;
/**
- * @covers MemoizedCallable
+ * @covers \MemoizedCallable
*/
class MemoizedCallableTest extends PHPUnit\Framework\TestCase {
diff --git a/tests/phpunit/unit/includes/libs/ParamValidator/ParamValidatorTest.php b/tests/phpunit/unit/includes/libs/ParamValidator/ParamValidatorTest.php
index 7a3aae0309cc..23be49de68c4 100644
--- a/tests/phpunit/unit/includes/libs/ParamValidator/ParamValidatorTest.php
+++ b/tests/phpunit/unit/includes/libs/ParamValidator/ParamValidatorTest.php
@@ -11,7 +11,7 @@ use Wikimedia\Message\ScalarParam;
use Wikimedia\ObjectFactory\ObjectFactory;
/**
- * @covers Wikimedia\ParamValidator\ParamValidator
+ * @covers \Wikimedia\ParamValidator\ParamValidator
*/
class ParamValidatorTest extends \PHPUnit\Framework\TestCase {
diff --git a/tests/phpunit/unit/includes/libs/ParamValidator/SimpleCallbacksTest.php b/tests/phpunit/unit/includes/libs/ParamValidator/SimpleCallbacksTest.php
index d0706fcf58a1..c7038f62278f 100644
--- a/tests/phpunit/unit/includes/libs/ParamValidator/SimpleCallbacksTest.php
+++ b/tests/phpunit/unit/includes/libs/ParamValidator/SimpleCallbacksTest.php
@@ -6,7 +6,7 @@ use Psr\Http\Message\UploadedFileInterface;
use Wikimedia\Message\DataMessageValue;
/**
- * @covers Wikimedia\ParamValidator\SimpleCallbacks
+ * @covers \Wikimedia\ParamValidator\SimpleCallbacks
*/
class SimpleCallbacksTest extends \PHPUnit\Framework\TestCase {
diff --git a/tests/phpunit/unit/includes/libs/ParamValidator/TypeDef/EnumDefTest.php b/tests/phpunit/unit/includes/libs/ParamValidator/TypeDef/EnumDefTest.php
index 6c4c2a775f2b..fa725d1ecff7 100644
--- a/tests/phpunit/unit/includes/libs/ParamValidator/TypeDef/EnumDefTest.php
+++ b/tests/phpunit/unit/includes/libs/ParamValidator/TypeDef/EnumDefTest.php
@@ -9,7 +9,7 @@ use Wikimedia\ParamValidator\SimpleCallbacks;
use Wikimedia\ParamValidator\ValidationException;
/**
- * @covers Wikimedia\ParamValidator\TypeDef\EnumDef
+ * @covers \Wikimedia\ParamValidator\TypeDef\EnumDef
*/
class EnumDefTest extends TypeDefTestCase {
diff --git a/tests/phpunit/unit/includes/libs/ParamValidator/TypeDef/FloatDefTest.php b/tests/phpunit/unit/includes/libs/ParamValidator/TypeDef/FloatDefTest.php
index afd9b8924c94..ca5272a07622 100644
--- a/tests/phpunit/unit/includes/libs/ParamValidator/TypeDef/FloatDefTest.php
+++ b/tests/phpunit/unit/includes/libs/ParamValidator/TypeDef/FloatDefTest.php
@@ -8,7 +8,7 @@ use Wikimedia\ParamValidator\SimpleCallbacks;
use Wikimedia\ParamValidator\ValidationException;
/**
- * @covers Wikimedia\ParamValidator\TypeDef\FloatDef
+ * @covers \Wikimedia\ParamValidator\TypeDef\FloatDef
*/
class FloatDefTest extends TypeDefTestCase {
diff --git a/tests/phpunit/unit/includes/libs/ParamValidator/TypeDef/IntegerDefTest.php b/tests/phpunit/unit/includes/libs/ParamValidator/TypeDef/IntegerDefTest.php
index 7bbfd1589621..9beedd55007d 100644
--- a/tests/phpunit/unit/includes/libs/ParamValidator/TypeDef/IntegerDefTest.php
+++ b/tests/phpunit/unit/includes/libs/ParamValidator/TypeDef/IntegerDefTest.php
@@ -8,8 +8,8 @@ use Wikimedia\ParamValidator\SimpleCallbacks;
use Wikimedia\ParamValidator\ValidationException;
/**
- * @covers Wikimedia\ParamValidator\TypeDef\IntegerDef
- * @covers Wikimedia\ParamValidator\TypeDef\NumericDef
+ * @covers \Wikimedia\ParamValidator\TypeDef\IntegerDef
+ * @covers \Wikimedia\ParamValidator\TypeDef\NumericDef
*/
class IntegerDefTest extends TypeDefTestCase {
diff --git a/tests/phpunit/unit/includes/libs/ParamValidator/TypeDef/LimitDefTest.php b/tests/phpunit/unit/includes/libs/ParamValidator/TypeDef/LimitDefTest.php
index 6ac9b95f43a3..941ea44d95fd 100644
--- a/tests/phpunit/unit/includes/libs/ParamValidator/TypeDef/LimitDefTest.php
+++ b/tests/phpunit/unit/includes/libs/ParamValidator/TypeDef/LimitDefTest.php
@@ -6,7 +6,7 @@ use Wikimedia\ParamValidator\ParamValidator;
use Wikimedia\ParamValidator\SimpleCallbacks;
/**
- * @covers Wikimedia\ParamValidator\TypeDef\LimitDef
+ * @covers \Wikimedia\ParamValidator\TypeDef\LimitDef
*/
class LimitDefTest extends TypeDefTestCase {
diff --git a/tests/phpunit/unit/includes/libs/ParamValidator/TypeDef/PasswordDefTest.php b/tests/phpunit/unit/includes/libs/ParamValidator/TypeDef/PasswordDefTest.php
index cfccabbc4ecc..a211615bbcbd 100644
--- a/tests/phpunit/unit/includes/libs/ParamValidator/TypeDef/PasswordDefTest.php
+++ b/tests/phpunit/unit/includes/libs/ParamValidator/TypeDef/PasswordDefTest.php
@@ -8,7 +8,7 @@ use Wikimedia\ParamValidator\SimpleCallbacks;
require_once __DIR__ . '/StringDefTest.php';
/**
- * @covers Wikimedia\ParamValidator\TypeDef\PasswordDef
+ * @covers \Wikimedia\ParamValidator\TypeDef\PasswordDef
*/
class PasswordDefTest extends StringDefTest {
diff --git a/tests/phpunit/unit/includes/libs/ParamValidator/TypeDef/PresenceBooleanDefTest.php b/tests/phpunit/unit/includes/libs/ParamValidator/TypeDef/PresenceBooleanDefTest.php
index 61589c8b3e02..7e03731b9f40 100644
--- a/tests/phpunit/unit/includes/libs/ParamValidator/TypeDef/PresenceBooleanDefTest.php
+++ b/tests/phpunit/unit/includes/libs/ParamValidator/TypeDef/PresenceBooleanDefTest.php
@@ -6,7 +6,7 @@ use Wikimedia\ParamValidator\ParamValidator;
use Wikimedia\ParamValidator\SimpleCallbacks;
/**
- * @covers Wikimedia\ParamValidator\TypeDef\PresenceBooleanDef
+ * @covers \Wikimedia\ParamValidator\TypeDef\PresenceBooleanDef
*/
class PresenceBooleanDefTest extends TypeDefTestCase {
diff --git a/tests/phpunit/unit/includes/libs/ParamValidator/TypeDef/StringDefTest.php b/tests/phpunit/unit/includes/libs/ParamValidator/TypeDef/StringDefTest.php
index 603e3dd5dfce..0bd80208c290 100644
--- a/tests/phpunit/unit/includes/libs/ParamValidator/TypeDef/StringDefTest.php
+++ b/tests/phpunit/unit/includes/libs/ParamValidator/TypeDef/StringDefTest.php
@@ -8,7 +8,7 @@ use Wikimedia\ParamValidator\SimpleCallbacks;
use Wikimedia\ParamValidator\ValidationException;
/**
- * @covers Wikimedia\ParamValidator\TypeDef\StringDef
+ * @covers \Wikimedia\ParamValidator\TypeDef\StringDef
*/
class StringDefTest extends TypeDefTestCase {
diff --git a/tests/phpunit/unit/includes/libs/ParamValidator/TypeDef/TimestampDefTest.php b/tests/phpunit/unit/includes/libs/ParamValidator/TypeDef/TimestampDefTest.php
index 4b49b8e9d905..ec95cc129620 100644
--- a/tests/phpunit/unit/includes/libs/ParamValidator/TypeDef/TimestampDefTest.php
+++ b/tests/phpunit/unit/includes/libs/ParamValidator/TypeDef/TimestampDefTest.php
@@ -9,7 +9,7 @@ use Wikimedia\ParamValidator\ValidationException;
use Wikimedia\Timestamp\ConvertibleTimestamp;
/**
- * @covers Wikimedia\ParamValidator\TypeDef\TimestampDef
+ * @covers \Wikimedia\ParamValidator\TypeDef\TimestampDef
*/
class TimestampDefTest extends TypeDefTestCase {
diff --git a/tests/phpunit/unit/includes/libs/ParamValidator/TypeDef/UploadDefTest.php b/tests/phpunit/unit/includes/libs/ParamValidator/TypeDef/UploadDefTest.php
index 2ba571405a8e..96861b6ee19d 100644
--- a/tests/phpunit/unit/includes/libs/ParamValidator/TypeDef/UploadDefTest.php
+++ b/tests/phpunit/unit/includes/libs/ParamValidator/TypeDef/UploadDefTest.php
@@ -9,7 +9,7 @@ use Wikimedia\ParamValidator\Util\UploadedFile;
use Wikimedia\ParamValidator\ValidationException;
/**
- * @covers Wikimedia\ParamValidator\TypeDef\UploadDef
+ * @covers \Wikimedia\ParamValidator\TypeDef\UploadDef
*/
class UploadDefTest extends TypeDefTestCase {
diff --git a/tests/phpunit/unit/includes/libs/ParamValidator/TypeDefTest.php b/tests/phpunit/unit/includes/libs/ParamValidator/TypeDefTest.php
index 2bbaeb9a0bc0..be9348bd35f6 100644
--- a/tests/phpunit/unit/includes/libs/ParamValidator/TypeDefTest.php
+++ b/tests/phpunit/unit/includes/libs/ParamValidator/TypeDefTest.php
@@ -6,7 +6,7 @@ use Wikimedia\Message\DataMessageValue;
use Wikimedia\TestingAccessWrapper;
/**
- * @covers Wikimedia\ParamValidator\TypeDef
+ * @covers \Wikimedia\ParamValidator\TypeDef
*/
class TypeDefTest extends \PHPUnit\Framework\TestCase {
diff --git a/tests/phpunit/unit/includes/libs/ParamValidator/Util/UploadedFileStreamTest.php b/tests/phpunit/unit/includes/libs/ParamValidator/Util/UploadedFileStreamTest.php
index f3c876694b33..aa49030be335 100644
--- a/tests/phpunit/unit/includes/libs/ParamValidator/Util/UploadedFileStreamTest.php
+++ b/tests/phpunit/unit/includes/libs/ParamValidator/Util/UploadedFileStreamTest.php
@@ -9,7 +9,7 @@ use TypeError;
use Wikimedia\TestingAccessWrapper;
/**
- * @covers Wikimedia\ParamValidator\Util\UploadedFileStream
+ * @covers \Wikimedia\ParamValidator\Util\UploadedFileStream
*/
class UploadedFileStreamTest extends UploadedFileTestBase {
diff --git a/tests/phpunit/unit/includes/libs/ParamValidator/Util/UploadedFileTest.php b/tests/phpunit/unit/includes/libs/ParamValidator/Util/UploadedFileTest.php
index 9d071c53f8d6..880134b0af16 100644
--- a/tests/phpunit/unit/includes/libs/ParamValidator/Util/UploadedFileTest.php
+++ b/tests/phpunit/unit/includes/libs/ParamValidator/Util/UploadedFileTest.php
@@ -8,7 +8,7 @@ use Psr\Http\Message\StreamInterface;
use RuntimeException;
/**
- * @covers Wikimedia\ParamValidator\Util\UploadedFile
+ * @covers \Wikimedia\ParamValidator\Util\UploadedFile
*/
class UploadedFileTest extends UploadedFileTestBase {
diff --git a/tests/phpunit/unit/includes/libs/SamplingStatsdClientTest.php b/tests/phpunit/unit/includes/libs/SamplingStatsdClientTest.php
index 9111fb78ce5e..c64cfc5a2fc4 100644
--- a/tests/phpunit/unit/includes/libs/SamplingStatsdClientTest.php
+++ b/tests/phpunit/unit/includes/libs/SamplingStatsdClientTest.php
@@ -4,7 +4,7 @@ use Liuggio\StatsdClient\Entity\StatsdData;
use Liuggio\StatsdClient\Sender\SenderInterface;
/**
- * @covers SamplingStatsdClient
+ * @covers \SamplingStatsdClient
*/
class SamplingStatsdClientTest extends PHPUnit\Framework\TestCase {
diff --git a/tests/phpunit/unit/includes/libs/Stats/BufferingStatsdDataFactoryTest.php b/tests/phpunit/unit/includes/libs/Stats/BufferingStatsdDataFactoryTest.php
index 0bd01cb1078a..07fb72f20eb2 100644
--- a/tests/phpunit/unit/includes/libs/Stats/BufferingStatsdDataFactoryTest.php
+++ b/tests/phpunit/unit/includes/libs/Stats/BufferingStatsdDataFactoryTest.php
@@ -3,7 +3,7 @@
use Wikimedia\TestingAccessWrapper;
/**
- * @covers BufferingStatsdDataFactory
+ * @covers \BufferingStatsdDataFactory
*/
class BufferingStatsdDataFactoryTest extends PHPUnit\Framework\TestCase {
diff --git a/tests/phpunit/unit/includes/libs/Stats/PrefixingStatsdDataFactoryProxyTest.php b/tests/phpunit/unit/includes/libs/Stats/PrefixingStatsdDataFactoryProxyTest.php
index 613e6a1c11e3..a657f1f906a5 100644
--- a/tests/phpunit/unit/includes/libs/Stats/PrefixingStatsdDataFactoryProxyTest.php
+++ b/tests/phpunit/unit/includes/libs/Stats/PrefixingStatsdDataFactoryProxyTest.php
@@ -4,7 +4,7 @@ use Liuggio\StatsdClient\Factory\StatsdDataFactoryInterface;
use PHPUnit\Framework\MockObject\MockObject;
/**
- * @covers PrefixingStatsdDataFactoryProxy
+ * @covers \PrefixingStatsdDataFactoryProxy
*/
class PrefixingStatsdDataFactoryProxyTest extends PHPUnit\Framework\TestCase {
diff --git a/tests/phpunit/unit/includes/libs/TimingTest.php b/tests/phpunit/unit/includes/libs/TimingTest.php
index e1b2c2343a90..aa5d2d4555ea 100644
--- a/tests/phpunit/unit/includes/libs/TimingTest.php
+++ b/tests/phpunit/unit/includes/libs/TimingTest.php
@@ -20,7 +20,7 @@
*/
/**
- * @covers Timing
+ * @covers \Timing
*/
class TimingTest extends PHPUnit\Framework\TestCase {
diff --git a/tests/phpunit/unit/includes/libs/XhprofDataTest.php b/tests/phpunit/unit/includes/libs/XhprofDataTest.php
index 33906d046a1a..9392619e5a8e 100644
--- a/tests/phpunit/unit/includes/libs/XhprofDataTest.php
+++ b/tests/phpunit/unit/includes/libs/XhprofDataTest.php
@@ -20,7 +20,7 @@
/**
* @copyright © 2014 Wikimedia Foundation and contributors
- * @covers XhprofData
+ * @covers \XhprofData
*/
class XhprofDataTest extends PHPUnit\Framework\TestCase {
use MediaWikiCoversValidator;
diff --git a/tests/phpunit/unit/includes/libs/XmlTypeCheckTest.php b/tests/phpunit/unit/includes/libs/XmlTypeCheckTest.php
index 7fc9e8c85f53..0f1ef9489c3a 100644
--- a/tests/phpunit/unit/includes/libs/XmlTypeCheckTest.php
+++ b/tests/phpunit/unit/includes/libs/XmlTypeCheckTest.php
@@ -2,7 +2,7 @@
/**
* @author physikerwelt
* @group Xml
- * @covers XmlTypeCheck
+ * @covers \XmlTypeCheck
*/
class XmlTypeCheckTest extends PHPUnit\Framework\TestCase {
use MediaWikiCoversValidator;
diff --git a/tests/phpunit/unit/includes/libs/composer/ComposerJsonTest.php b/tests/phpunit/unit/includes/libs/composer/ComposerJsonTest.php
index ed0ffb8a17d7..ad5416bba1e7 100644
--- a/tests/phpunit/unit/includes/libs/composer/ComposerJsonTest.php
+++ b/tests/phpunit/unit/includes/libs/composer/ComposerJsonTest.php
@@ -12,8 +12,8 @@ class ComposerJsonTest extends PHPUnit\Framework\TestCase {
}
/**
- * @covers Wikimedia\Composer\ComposerJson::__construct
- * @covers Wikimedia\Composer\ComposerJson::getRequiredDependencies
+ * @covers \Wikimedia\Composer\ComposerJson::__construct
+ * @covers \Wikimedia\Composer\ComposerJson::getRequiredDependencies
*/
public function testGetRequiredDependencies() {
$json = new ComposerJson( $this->json );
@@ -34,7 +34,7 @@ class ComposerJsonTest extends PHPUnit\Framework\TestCase {
/**
* @dataProvider provideNormalizeVersion
- * @covers Wikimedia\Composer\ComposerJson::normalizeVersion
+ * @covers \Wikimedia\Composer\ComposerJson::normalizeVersion
*/
public function testNormalizeVersion( $input, $expected ) {
$this->assertEquals( $expected, ComposerJson::normalizeVersion( $input ) );
diff --git a/tests/phpunit/unit/includes/libs/composer/ComposerLockTest.php b/tests/phpunit/unit/includes/libs/composer/ComposerLockTest.php
index 29a585c5aad8..dc538afc051c 100644
--- a/tests/phpunit/unit/includes/libs/composer/ComposerLockTest.php
+++ b/tests/phpunit/unit/includes/libs/composer/ComposerLockTest.php
@@ -12,8 +12,8 @@ class ComposerLockTest extends PHPUnit\Framework\TestCase {
}
/**
- * @covers Wikimedia\Composer\ComposerLock::__construct
- * @covers Wikimedia\Composer\ComposerLock::getInstalledDependencies
+ * @covers \Wikimedia\Composer\ComposerLock::__construct
+ * @covers \Wikimedia\Composer\ComposerLock::getInstalledDependencies
*/
public function testGetInstalledDependencies() {
$lock = new ComposerLock( $this->lock );
diff --git a/tests/phpunit/unit/includes/libs/filebackend/FileBackendTest.php b/tests/phpunit/unit/includes/libs/filebackend/FileBackendTest.php
index bc3851601e7c..d3e3dc4f0190 100644
--- a/tests/phpunit/unit/includes/libs/filebackend/FileBackendTest.php
+++ b/tests/phpunit/unit/includes/libs/filebackend/FileBackendTest.php
@@ -9,7 +9,7 @@ use Wikimedia\ScopedCallback;
use Wikimedia\TestingAccessWrapper;
/**
- * @covers FileBackend
+ * @covers \FileBackend
*/
class FileBackendTest extends MediaWikiUnitTestCase {
/**
diff --git a/tests/phpunit/unit/includes/libs/filebackend/fsfile/TempFSFileTestTrait.php b/tests/phpunit/unit/includes/libs/filebackend/fsfile/TempFSFileTestTrait.php
index e4e6073f37e3..26c8b35346a1 100644
--- a/tests/phpunit/unit/includes/libs/filebackend/fsfile/TempFSFileTestTrait.php
+++ b/tests/phpunit/unit/includes/libs/filebackend/fsfile/TempFSFileTestTrait.php
@@ -7,7 +7,7 @@ trait TempFSFileTestTrait {
abstract protected function newFile();
/**
- * @covers TempFSFile
+ * @covers \TempFSFile
*/
public function testPurge() {
$file = $this->newFile();
@@ -17,7 +17,7 @@ trait TempFSFileTestTrait {
}
/**
- * @covers TempFSFile
+ * @covers \TempFSFile
*/
public function testBind() {
$file = $this->newFile();
@@ -38,7 +38,7 @@ trait TempFSFileTestTrait {
}
/**
- * @covers TempFSFile
+ * @covers \TempFSFile
*/
public function testPreserve() {
$file = $this->newFile();
diff --git a/tests/phpunit/unit/includes/libs/http/HttpAcceptNegotiatorTest.php b/tests/phpunit/unit/includes/libs/http/HttpAcceptNegotiatorTest.php
index ca93c45d040c..483f91dff08e 100644
--- a/tests/phpunit/unit/includes/libs/http/HttpAcceptNegotiatorTest.php
+++ b/tests/phpunit/unit/includes/libs/http/HttpAcceptNegotiatorTest.php
@@ -3,7 +3,7 @@
use Wikimedia\Http\HttpAcceptNegotiator;
/**
- * @covers Wikimedia\Http\HttpAcceptNegotiator
+ * @covers \Wikimedia\Http\HttpAcceptNegotiator
*
* @author Daniel Kinzler
*/
diff --git a/tests/phpunit/unit/includes/libs/http/HttpAcceptParserTest.php b/tests/phpunit/unit/includes/libs/http/HttpAcceptParserTest.php
index 92c27cc74b57..b8874f3581d6 100644
--- a/tests/phpunit/unit/includes/libs/http/HttpAcceptParserTest.php
+++ b/tests/phpunit/unit/includes/libs/http/HttpAcceptParserTest.php
@@ -3,7 +3,7 @@
use Wikimedia\Http\HttpAcceptParser;
/**
- * @covers Wikimedia\Http\HttpAcceptParser
+ * @covers \Wikimedia\Http\HttpAcceptParser
*
* @author Daniel Kinzler
*/
diff --git a/tests/phpunit/unit/includes/libs/mime/MSCompoundFileReaderTest.php b/tests/phpunit/unit/includes/libs/mime/MSCompoundFileReaderTest.php
index 43ac505fd68b..14b34748643c 100644
--- a/tests/phpunit/unit/includes/libs/mime/MSCompoundFileReaderTest.php
+++ b/tests/phpunit/unit/includes/libs/mime/MSCompoundFileReaderTest.php
@@ -16,7 +16,7 @@
/**
* @group Media
- * @covers MSCompoundFileReader
+ * @covers \MSCompoundFileReader
*/
class MSCompoundFileReaderTest extends PHPUnit\Framework\TestCase {
public static function provideValid() {
diff --git a/tests/phpunit/unit/includes/libs/mime/MimeAnalyzerTest.php b/tests/phpunit/unit/includes/libs/mime/MimeAnalyzerTest.php
index 5466263c18f3..84c34fded5b7 100644
--- a/tests/phpunit/unit/includes/libs/mime/MimeAnalyzerTest.php
+++ b/tests/phpunit/unit/includes/libs/mime/MimeAnalyzerTest.php
@@ -4,7 +4,7 @@ use Wikimedia\TestingAccessWrapper;
/**
* @group Media
- * @covers MimeAnalyzer
+ * @covers \MimeAnalyzer
*/
class MimeAnalyzerTest extends PHPUnit\Framework\TestCase {
diff --git a/tests/phpunit/unit/includes/libs/objectcache/CachedBagOStuffTest.php b/tests/phpunit/unit/includes/libs/objectcache/CachedBagOStuffTest.php
index a2ee49a68330..ff1febf921df 100644
--- a/tests/phpunit/unit/includes/libs/objectcache/CachedBagOStuffTest.php
+++ b/tests/phpunit/unit/includes/libs/objectcache/CachedBagOStuffTest.php
@@ -4,7 +4,7 @@ use Wikimedia\LightweightObjectStore\StorageAwareness;
use Wikimedia\TestingAccessWrapper;
/**
- * @covers CachedBagOStuff
+ * @covers \CachedBagOStuff
* @group BagOStuff
*/
class CachedBagOStuffTest extends PHPUnit\Framework\TestCase {
diff --git a/tests/phpunit/unit/includes/libs/objectcache/HashBagOStuffTest.php b/tests/phpunit/unit/includes/libs/objectcache/HashBagOStuffTest.php
index 61fa4f22ca8c..3accc30cd749 100644
--- a/tests/phpunit/unit/includes/libs/objectcache/HashBagOStuffTest.php
+++ b/tests/phpunit/unit/includes/libs/objectcache/HashBagOStuffTest.php
@@ -4,9 +4,9 @@ use Liuggio\StatsdClient\Factory\StatsdDataFactoryInterface;
use Wikimedia\TestingAccessWrapper;
/**
- * @covers HashBagOStuff
- * @covers MediumSpecificBagOStuff
- * @covers BagOStuff
+ * @covers \HashBagOStuff
+ * @covers \MediumSpecificBagOStuff
+ * @covers \BagOStuff
* @group BagOStuff
*/
class HashBagOStuffTest extends PHPUnit\Framework\TestCase {
diff --git a/tests/phpunit/unit/includes/libs/objectcache/ReplicatedBagOStuffTest.php b/tests/phpunit/unit/includes/libs/objectcache/ReplicatedBagOStuffTest.php
index 43a04ac747c3..231742d32156 100644
--- a/tests/phpunit/unit/includes/libs/objectcache/ReplicatedBagOStuffTest.php
+++ b/tests/phpunit/unit/includes/libs/objectcache/ReplicatedBagOStuffTest.php
@@ -4,7 +4,7 @@ use Wikimedia\LightweightObjectStore\StorageAwareness;
use Wikimedia\TestingAccessWrapper;
/**
- * @covers ReplicatedBagOStuff
+ * @covers \ReplicatedBagOStuff
*/
class ReplicatedBagOStuffTest extends \MediaWikiUnitTestCase {
/** @var HashBagOStuff */
diff --git a/tests/phpunit/unit/includes/libs/objectcache/WANObjectCacheTest.php b/tests/phpunit/unit/includes/libs/objectcache/WANObjectCacheTest.php
index 02ec95ce64a8..a620dfb5c0a6 100644
--- a/tests/phpunit/unit/includes/libs/objectcache/WANObjectCacheTest.php
+++ b/tests/phpunit/unit/includes/libs/objectcache/WANObjectCacheTest.php
@@ -3,7 +3,7 @@
use Wikimedia\TestingAccessWrapper;
/**
- * @covers WANObjectCache
+ * @covers \WANObjectCache
*/
class WANObjectCacheTest extends MediaWikiUnitTestCase {
diff --git a/tests/phpunit/unit/includes/libs/rdbms/DatabaseFactoryTest.php b/tests/phpunit/unit/includes/libs/rdbms/DatabaseFactoryTest.php
index 5401463a2c97..5dcbbe5512a5 100644
--- a/tests/phpunit/unit/includes/libs/rdbms/DatabaseFactoryTest.php
+++ b/tests/phpunit/unit/includes/libs/rdbms/DatabaseFactoryTest.php
@@ -7,7 +7,7 @@ use Wikimedia\Rdbms\DatabasePostgres;
use Wikimedia\Rdbms\DatabaseSqlite;
/**
- * @covers Wikimedia\Rdbms\DatabaseFactory
+ * @covers \Wikimedia\Rdbms\DatabaseFactory
*/
class DatabaseFactoryTest extends PHPUnit\Framework\TestCase {
diff --git a/tests/phpunit/unit/includes/libs/rdbms/ReadOnlyModeTest.php b/tests/phpunit/unit/includes/libs/rdbms/ReadOnlyModeTest.php
index bfb9b66b988f..c746493de33f 100644
--- a/tests/phpunit/unit/includes/libs/rdbms/ReadOnlyModeTest.php
+++ b/tests/phpunit/unit/includes/libs/rdbms/ReadOnlyModeTest.php
@@ -6,8 +6,8 @@ use Wikimedia\Rdbms\ILoadBalancer;
use Wikimedia\Rdbms\ReadOnlyMode;
/**
- * @covers Wikimedia\Rdbms\ReadOnlyMode
- * @covers Wikimedia\Rdbms\ConfiguredReadOnlyMode
+ * @covers \Wikimedia\Rdbms\ReadOnlyMode
+ * @covers \Wikimedia\Rdbms\ConfiguredReadOnlyMode
*/
class ReadOnlyModeTest extends MediaWikiUnitTestCase {
diff --git a/tests/phpunit/unit/includes/libs/rdbms/connectionmanager/SessionConsistentConnectionManagerTest.php b/tests/phpunit/unit/includes/libs/rdbms/connectionmanager/SessionConsistentConnectionManagerTest.php
index cca923a7fab5..7d6537ba79ae 100644
--- a/tests/phpunit/unit/includes/libs/rdbms/connectionmanager/SessionConsistentConnectionManagerTest.php
+++ b/tests/phpunit/unit/includes/libs/rdbms/connectionmanager/SessionConsistentConnectionManagerTest.php
@@ -8,7 +8,7 @@ use Wikimedia\Rdbms\LoadBalancer;
use Wikimedia\Rdbms\SessionConsistentConnectionManager;
/**
- * @covers Wikimedia\Rdbms\SessionConsistentConnectionManager
+ * @covers \Wikimedia\Rdbms\SessionConsistentConnectionManager
*
* @author Daniel Kinzler
*/
diff --git a/tests/phpunit/unit/includes/libs/rdbms/database/DBConnRefTest.php b/tests/phpunit/unit/includes/libs/rdbms/database/DBConnRefTest.php
index 10e989a9b0b1..1823f0b29743 100644
--- a/tests/phpunit/unit/includes/libs/rdbms/database/DBConnRefTest.php
+++ b/tests/phpunit/unit/includes/libs/rdbms/database/DBConnRefTest.php
@@ -8,7 +8,7 @@ use Wikimedia\Rdbms\ILoadBalancer;
use Wikimedia\Rdbms\IResultWrapper;
/**
- * @covers Wikimedia\Rdbms\DBConnRef
+ * @covers \Wikimedia\Rdbms\DBConnRef
*/
class DBConnRefTest extends PHPUnit\Framework\TestCase {
diff --git a/tests/phpunit/unit/includes/libs/rdbms/database/DatabaseDomainTest.php b/tests/phpunit/unit/includes/libs/rdbms/database/DatabaseDomainTest.php
index add1ab6f3e8c..45f78b6555d4 100644
--- a/tests/phpunit/unit/includes/libs/rdbms/database/DatabaseDomainTest.php
+++ b/tests/phpunit/unit/includes/libs/rdbms/database/DatabaseDomainTest.php
@@ -3,7 +3,7 @@
use Wikimedia\Rdbms\DatabaseDomain;
/**
- * @covers Wikimedia\Rdbms\DatabaseDomain
+ * @covers \Wikimedia\Rdbms\DatabaseDomain
*/
class DatabaseDomainTest extends PHPUnit\Framework\TestCase {
diff --git a/tests/phpunit/unit/includes/libs/rdbms/database/DatabaseSQLTest.php b/tests/phpunit/unit/includes/libs/rdbms/database/DatabaseSQLTest.php
index bb5ceb908c0f..008edf05aaae 100644
--- a/tests/phpunit/unit/includes/libs/rdbms/database/DatabaseSQLTest.php
+++ b/tests/phpunit/unit/includes/libs/rdbms/database/DatabaseSQLTest.php
@@ -13,9 +13,9 @@ use Wikimedia\TestingAccessWrapper;
* Test the parts of the Database abstract class that deal
* with creating SQL text.
*
- * @covers Wikimedia\Rdbms\Database
- * @covers Wikimedia\Rdbms\Subquery
- * @covers Wikimedia\Rdbms\Platform\SQLPlatform
+ * @covers \Wikimedia\Rdbms\Database
+ * @covers \Wikimedia\Rdbms\Subquery
+ * @covers \Wikimedia\Rdbms\Platform\SQLPlatform
*/
class DatabaseSQLTest extends PHPUnit\Framework\TestCase {
diff --git a/tests/phpunit/unit/includes/libs/rdbms/database/DatabaseTest.php b/tests/phpunit/unit/includes/libs/rdbms/database/DatabaseTest.php
index 7a86f0cff4ac..5ad96ab7caac 100644
--- a/tests/phpunit/unit/includes/libs/rdbms/database/DatabaseTest.php
+++ b/tests/phpunit/unit/includes/libs/rdbms/database/DatabaseTest.php
@@ -23,9 +23,9 @@ use Wikimedia\TestingAccessWrapper;
/**
* @dataProvider provideAddQuotes
- * @covers Wikimedia\Rdbms\Database
- * @covers Wikimedia\Rdbms\Database\DatabaseFlags
- * @covers Wikimedia\Rdbms\Platform\SQLPlatform
+ * @covers \Wikimedia\Rdbms\Database
+ * @covers \Wikimedia\Rdbms\Database\DatabaseFlags
+ * @covers \Wikimedia\Rdbms\Platform\SQLPlatform
*/
class DatabaseTest extends PHPUnit\Framework\TestCase {
diff --git a/tests/phpunit/unit/includes/libs/rdbms/platform/SQLPlatformTest.php b/tests/phpunit/unit/includes/libs/rdbms/platform/SQLPlatformTest.php
index 28a7e24b22e0..f58835d455ce 100644
--- a/tests/phpunit/unit/includes/libs/rdbms/platform/SQLPlatformTest.php
+++ b/tests/phpunit/unit/includes/libs/rdbms/platform/SQLPlatformTest.php
@@ -7,8 +7,8 @@ use Wikimedia\Rdbms\Expression;
use Wikimedia\Rdbms\LikeMatch;
/**
- * @covers Wikimedia\Rdbms\Platform\SQLPlatform
- * @covers Wikimedia\Rdbms\Database
+ * @covers \Wikimedia\Rdbms\Platform\SQLPlatform
+ * @covers \Wikimedia\Rdbms\Database
*/
class SQLPlatformTest extends PHPUnit\Framework\TestCase {
diff --git a/tests/phpunit/unit/includes/libs/rdbms/platform/SqlitePlatformTest.php b/tests/phpunit/unit/includes/libs/rdbms/platform/SqlitePlatformTest.php
index 91db38d8a018..3c21a0dfdd1e 100644
--- a/tests/phpunit/unit/includes/libs/rdbms/platform/SqlitePlatformTest.php
+++ b/tests/phpunit/unit/includes/libs/rdbms/platform/SqlitePlatformTest.php
@@ -5,7 +5,7 @@ use Wikimedia\Rdbms\DatabaseDomain;
use Wikimedia\Rdbms\Platform\SqlitePlatform;
/**
- * @covers Wikimedia\Rdbms\Platform\SqlitePlatform
+ * @covers \Wikimedia\Rdbms\Platform\SqlitePlatform
*/
class SqlitePlatformTest extends PHPUnit\Framework\TestCase {
diff --git a/tests/phpunit/unit/includes/linker/LinkRendererFactoryTest.php b/tests/phpunit/unit/includes/linker/LinkRendererFactoryTest.php
index f42894c8515a..7bc0e0055e18 100644
--- a/tests/phpunit/unit/includes/linker/LinkRendererFactoryTest.php
+++ b/tests/phpunit/unit/includes/linker/LinkRendererFactoryTest.php
@@ -7,7 +7,7 @@ use MediaWiki\SpecialPage\SpecialPageFactory;
use MediaWiki\Title\TitleFormatter;
/**
- * @covers MediaWiki\Linker\LinkRendererFactory
+ * @covers \MediaWiki\Linker\LinkRendererFactory
*/
class LinkRendererFactoryTest extends MediaWikiUnitTestCase {
diff --git a/tests/phpunit/unit/includes/linker/LinksMigrationTest.php b/tests/phpunit/unit/includes/linker/LinksMigrationTest.php
index d74cb90b8b3d..fecbc86edca8 100644
--- a/tests/phpunit/unit/includes/linker/LinksMigrationTest.php
+++ b/tests/phpunit/unit/includes/linker/LinksMigrationTest.php
@@ -7,7 +7,7 @@ use MediaWiki\MainConfigNames;
use MediaWiki\Title\TitleValue;
/**
- * @covers MediaWiki\Linker\LinksMigration
+ * @covers \MediaWiki\Linker\LinksMigration
*/
class LinksMigrationTest extends MediaWikiUnitTestCase {
diff --git a/tests/phpunit/unit/includes/mail/UserMailerTest.php b/tests/phpunit/unit/includes/mail/UserMailerTest.php
index fb5d7594ffd7..ff21f67fb976 100644
--- a/tests/phpunit/unit/includes/mail/UserMailerTest.php
+++ b/tests/phpunit/unit/includes/mail/UserMailerTest.php
@@ -3,7 +3,7 @@
class UserMailerTest extends MediaWikiUnitTestCase {
/**
- * @covers UserMailer::quotedPrintable
+ * @covers \UserMailer::quotedPrintable
*/
public function testQuotedPrintable() {
$this->assertEquals(
diff --git a/tests/phpunit/unit/includes/media/GIFMetadataExtractorTest.php b/tests/phpunit/unit/includes/media/GIFMetadataExtractorTest.php
index 41b0b49208ca..186f647c4664 100644
--- a/tests/phpunit/unit/includes/media/GIFMetadataExtractorTest.php
+++ b/tests/phpunit/unit/includes/media/GIFMetadataExtractorTest.php
@@ -19,7 +19,7 @@ class GIFMetadataExtractorTest extends \MediaWikiUnitTestCase {
* @param string $filename
* @param array $expected The extracted metadata.
* @dataProvider provideGetMetadata
- * @covers GIFMetadataExtractor::getMetadata
+ * @covers \GIFMetadataExtractor::getMetadata
*/
public function testGetMetadata( $filename, $expected ) {
$actual = GIFMetadataExtractor::getMetadata( $this->mediaPath . $filename );
diff --git a/tests/phpunit/unit/includes/media/IPTCTest.php b/tests/phpunit/unit/includes/media/IPTCTest.php
index b4abbd5d2b28..3f8fe107b843 100644
--- a/tests/phpunit/unit/includes/media/IPTCTest.php
+++ b/tests/phpunit/unit/includes/media/IPTCTest.php
@@ -6,7 +6,7 @@
class IPTCTest extends \MediaWikiUnitTestCase {
/**
- * @covers IPTC::getCharset
+ * @covers \IPTC::getCharset
*/
public function testRecognizeUtf8() {
// utf-8 is the only one used in practise.
@@ -62,7 +62,7 @@ class IPTCTest extends \MediaWikiUnitTestCase {
}
/**
- * @covers IPTC::parse
+ * @covers \IPTC::parse
* @dataProvider provideParse
*/
public function testIPTCParseUTF8( $rawData, $expectedKeywords ) {
diff --git a/tests/phpunit/unit/includes/media/MediaHandlerTest.php b/tests/phpunit/unit/includes/media/MediaHandlerTest.php
index eb4ece88c4f2..5dd8fe2f1829 100644
--- a/tests/phpunit/unit/includes/media/MediaHandlerTest.php
+++ b/tests/phpunit/unit/includes/media/MediaHandlerTest.php
@@ -6,7 +6,7 @@
class MediaHandlerTest extends \MediaWikiUnitTestCase {
/**
- * @covers MediaHandler::fitBoxWidth
+ * @covers \MediaHandler::fitBoxWidth
*
* @dataProvider provideTestFitBoxWidth
*/
diff --git a/tests/phpunit/unit/includes/media/TrivialMediaHandlerStateTest.php b/tests/phpunit/unit/includes/media/TrivialMediaHandlerStateTest.php
index 7acafbee0c5f..d7ea9609ad56 100644
--- a/tests/phpunit/unit/includes/media/TrivialMediaHandlerStateTest.php
+++ b/tests/phpunit/unit/includes/media/TrivialMediaHandlerStateTest.php
@@ -1,7 +1,7 @@
<?php
/**
- * @covers TrivialMediaHandlerState
+ * @covers \TrivialMediaHandlerState
*/
class TrivialMediaHandlerStateTest extends MediaWikiUnitTestCase {
public function testSetHandlerState() {
diff --git a/tests/phpunit/unit/includes/objectcache/MemcachedBagOStuffTest.php b/tests/phpunit/unit/includes/objectcache/MemcachedBagOStuffTest.php
index 4f2b850a08cf..0dbb3980f634 100644
--- a/tests/phpunit/unit/includes/objectcache/MemcachedBagOStuffTest.php
+++ b/tests/phpunit/unit/includes/objectcache/MemcachedBagOStuffTest.php
@@ -1,6 +1,6 @@
<?php
/**
- * @covers MemcachedBagOStuff
+ * @covers \MemcachedBagOStuff
* @group BagOStuff
*/
class MemcachedBagOStuffTest extends \MediaWikiUnitTestCase {
diff --git a/tests/phpunit/unit/includes/objectcache/RESTBagOStuffTest.php b/tests/phpunit/unit/includes/objectcache/RESTBagOStuffTest.php
index d9f98c6df10a..222761c32514 100644
--- a/tests/phpunit/unit/includes/objectcache/RESTBagOStuffTest.php
+++ b/tests/phpunit/unit/includes/objectcache/RESTBagOStuffTest.php
@@ -2,7 +2,7 @@
/**
* @group BagOStuff
*
- * @covers RESTBagOStuff
+ * @covers \RESTBagOStuff
*/
class RESTBagOStuffTest extends \MediaWikiUnitTestCase {
diff --git a/tests/phpunit/unit/includes/objectcache/RedisBagOStuffTest.php b/tests/phpunit/unit/includes/objectcache/RedisBagOStuffTest.php
index 346ab3dc2b22..f5794fc07858 100644
--- a/tests/phpunit/unit/includes/objectcache/RedisBagOStuffTest.php
+++ b/tests/phpunit/unit/includes/objectcache/RedisBagOStuffTest.php
@@ -3,7 +3,7 @@
use Wikimedia\TestingAccessWrapper;
/**
- * @covers RedisBagOStuff
+ * @covers \RedisBagOStuff
* @group BagOStuff
*/
class RedisBagOStuffTest extends MediaWikiUnitTestCase {
diff --git a/tests/phpunit/unit/includes/objectcache/SqlBagOStuffTest.php b/tests/phpunit/unit/includes/objectcache/SqlBagOStuffTest.php
index e21c234c09a8..50bc67623767 100644
--- a/tests/phpunit/unit/includes/objectcache/SqlBagOStuffTest.php
+++ b/tests/phpunit/unit/includes/objectcache/SqlBagOStuffTest.php
@@ -1,7 +1,7 @@
<?php
/**
- * @covers SqlBagOStuff
+ * @covers \SqlBagOStuff
* @group BagOStuff
*/
class SqlBagOStuffTest extends MediaWikiUnitTestCase {
diff --git a/tests/phpunit/unit/includes/page/MovePageTest.php b/tests/phpunit/unit/includes/page/MovePageTest.php
index cf66dbfb30e3..9409417b0620 100644
--- a/tests/phpunit/unit/includes/page/MovePageTest.php
+++ b/tests/phpunit/unit/includes/page/MovePageTest.php
@@ -88,9 +88,9 @@ class MovePageTest extends MediaWikiUnitTestCase {
/**
* @dataProvider provideCheckPermissions
- * @covers MediaWiki\Page\MovePage::checkPermissions
- * @covers MediaWiki\Page\MovePage::authorizeMove
- * @covers MediaWiki\Page\MovePage::probablyCanMove
+ * @covers \MediaWiki\Page\MovePage::checkPermissions
+ * @covers \MediaWiki\Page\MovePage::authorizeMove
+ * @covers \MediaWiki\Page\MovePage::probablyCanMove
*/
public function testCheckPermissions( Authority $authority, bool $good ) {
$spamChecker = $this->createNoOpMock( SpamChecker::class, [ 'checkSummary' ] );
@@ -110,9 +110,9 @@ class MovePageTest extends MediaWikiUnitTestCase {
}
/**
- * @covers MediaWiki\Page\MovePage::checkPermissions
- * @covers MediaWiki\Page\MovePage::authorizeMove
- * @covers MediaWiki\Page\MovePage::probablyCanMove
+ * @covers \MediaWiki\Page\MovePage::checkPermissions
+ * @covers \MediaWiki\Page\MovePage::authorizeMove
+ * @covers \MediaWiki\Page\MovePage::probablyCanMove
*/
public function testCheckPermissions_spam() {
$spamChecker = $this->createNoOpMock( SpamChecker::class, [ 'checkSummary' ] );
diff --git a/tests/phpunit/unit/includes/page/PageIdentityValueTest.php b/tests/phpunit/unit/includes/page/PageIdentityValueTest.php
index f1d7b88eac7a..c78f432ff32e 100644
--- a/tests/phpunit/unit/includes/page/PageIdentityValueTest.php
+++ b/tests/phpunit/unit/includes/page/PageIdentityValueTest.php
@@ -25,7 +25,7 @@ use Wikimedia\Assert\ParameterAssertionException;
use Wikimedia\Assert\PreconditionException;
/**
- * @covers MediaWiki\Page\PageIdentityValue
+ * @covers \MediaWiki\Page\PageIdentityValue
*
* @group Title
*/
diff --git a/tests/phpunit/unit/includes/page/PageReferenceValueTest.php b/tests/phpunit/unit/includes/page/PageReferenceValueTest.php
index 01366c0ae26c..c2a2aa268c31 100644
--- a/tests/phpunit/unit/includes/page/PageReferenceValueTest.php
+++ b/tests/phpunit/unit/includes/page/PageReferenceValueTest.php
@@ -24,7 +24,7 @@ use MediaWiki\Page\PageReferenceValue;
use Wikimedia\Assert\ParameterAssertionException;
/**
- * @covers MediaWiki\Page\PageReferenceValue
+ * @covers \MediaWiki\Page\PageReferenceValue
*
* @group Title
*/
diff --git a/tests/phpunit/unit/includes/parser/LinkHolderArrayTest.php b/tests/phpunit/unit/includes/parser/LinkHolderArrayTest.php
index 6f5b28d4fcbd..c38fdc219a5c 100644
--- a/tests/phpunit/unit/includes/parser/LinkHolderArrayTest.php
+++ b/tests/phpunit/unit/includes/parser/LinkHolderArrayTest.php
@@ -19,7 +19,7 @@ use Wikimedia\TestingAccessWrapper;
class LinkHolderArrayTest extends MediaWikiUnitTestCase {
/**
- * @covers LinkHolderArray::merge
+ * @covers \LinkHolderArray::merge
*/
public function testMerge() {
$link1 = new LinkHolderArray(
@@ -151,7 +151,7 @@ class LinkHolderArrayTest extends MediaWikiUnitTestCase {
}
/**
- * @covers LinkHolderArray::clear
+ * @covers \LinkHolderArray::clear
*/
public function testClear() {
$linkHolderArray = new LinkHolderArray(
@@ -173,7 +173,7 @@ class LinkHolderArrayTest extends MediaWikiUnitTestCase {
/**
* @dataProvider provideReplaceText
- * @covers LinkHolderArray::replaceText
+ * @covers \LinkHolderArray::replaceText
*
* @param string $input
* @param string $expected
@@ -242,8 +242,8 @@ class LinkHolderArrayTest extends MediaWikiUnitTestCase {
/**
* @dataProvider provideReplace_external
- * @covers LinkHolderArray::replace
- * @covers LinkHolderArray::replaceInterwiki
+ * @covers \LinkHolderArray::replace
+ * @covers \LinkHolderArray::replaceInterwiki
*
* @param string $text
* @param string $extended
diff --git a/tests/phpunit/unit/includes/parser/ParserFactoryTest.php b/tests/phpunit/unit/includes/parser/ParserFactoryTest.php
index 5875b2b1a355..86dcd5c65e97 100644
--- a/tests/phpunit/unit/includes/parser/ParserFactoryTest.php
+++ b/tests/phpunit/unit/includes/parser/ParserFactoryTest.php
@@ -28,7 +28,7 @@ use WANObjectCache;
use Wikimedia\TestingAccessWrapper;
/**
- * @covers ParserFactory
+ * @covers \ParserFactory
*/
class ParserFactoryTest extends MediaWikiUnitTestCase {
diff --git a/tests/phpunit/unit/includes/parser/Parsoid/LanguageVariantConverterUnitTest.php b/tests/phpunit/unit/includes/parser/Parsoid/LanguageVariantConverterUnitTest.php
index a0c8b703043a..8bc0d410afe9 100644
--- a/tests/phpunit/unit/includes/parser/Parsoid/LanguageVariantConverterUnitTest.php
+++ b/tests/phpunit/unit/includes/parser/Parsoid/LanguageVariantConverterUnitTest.php
@@ -24,7 +24,7 @@ use Wikimedia\Parsoid\Core\PageBundle;
use Wikimedia\Parsoid\Parsoid;
/**
- * @covers MediaWiki\Parser\Parsoid\LanguageVariantConverter
+ * @covers \MediaWiki\Parser\Parsoid\LanguageVariantConverter
*/
class LanguageVariantConverterUnitTest extends MediaWikiUnitTestCase {
diff --git a/tests/phpunit/unit/includes/parser/Parsoid/PageBundleParserOutputConverterTest.php b/tests/phpunit/unit/includes/parser/Parsoid/PageBundleParserOutputConverterTest.php
index 045759cd4ba8..423635033d36 100644
--- a/tests/phpunit/unit/includes/parser/Parsoid/PageBundleParserOutputConverterTest.php
+++ b/tests/phpunit/unit/includes/parser/Parsoid/PageBundleParserOutputConverterTest.php
@@ -9,7 +9,7 @@ use MediaWikiUnitTestCase;
use Wikimedia\Parsoid\Core\PageBundle;
/**
- * @covers MediaWiki\Parser\Parsoid\PageBundleParserOutputConverter
+ * @covers \MediaWiki\Parser\Parsoid\PageBundleParserOutputConverter
*/
class PageBundleParserOutputConverterTest extends MediaWikiUnitTestCase {
/** @dataProvider provideParserOutputFromPageBundle */
diff --git a/tests/phpunit/unit/includes/password/AbstractPbkdf2PasswordTest.php b/tests/phpunit/unit/includes/password/AbstractPbkdf2PasswordTest.php
index e77b1bae6056..62fd98e2cdf8 100644
--- a/tests/phpunit/unit/includes/password/AbstractPbkdf2PasswordTest.php
+++ b/tests/phpunit/unit/includes/password/AbstractPbkdf2PasswordTest.php
@@ -2,7 +2,7 @@
/**
* @group large
- * @covers AbstractPbkdf2Password
+ * @covers \AbstractPbkdf2Password
*/
class AbstractPbkdf2PasswordTest extends \PHPUnit\Framework\TestCase {
public function testNewInstanceUsesSpecifiedSubclass() {
diff --git a/tests/phpunit/unit/includes/password/Argon2PasswordTest.php b/tests/phpunit/unit/includes/password/Argon2PasswordTest.php
index 28e3b96a88d8..5808f3c0e673 100644
--- a/tests/phpunit/unit/includes/password/Argon2PasswordTest.php
+++ b/tests/phpunit/unit/includes/password/Argon2PasswordTest.php
@@ -2,9 +2,9 @@
/**
* @group large
- * @covers Argon2Password
- * @covers Password
- * @covers ParameterizedPassword
+ * @covers \Argon2Password
+ * @covers \Password
+ * @covers \ParameterizedPassword
*/
class Argon2PasswordTest extends PasswordTestCase {
diff --git a/tests/phpunit/unit/includes/password/BcryptPasswordTest.php b/tests/phpunit/unit/includes/password/BcryptPasswordTest.php
index 40290a536a37..0a2bae866976 100644
--- a/tests/phpunit/unit/includes/password/BcryptPasswordTest.php
+++ b/tests/phpunit/unit/includes/password/BcryptPasswordTest.php
@@ -2,10 +2,10 @@
/**
* @group large
- * @covers BcryptPassword
- * @covers ParameterizedPassword
- * @covers Password
- * @covers PasswordFactory
+ * @covers \BcryptPassword
+ * @covers \ParameterizedPassword
+ * @covers \Password
+ * @covers \PasswordFactory
*/
class BcryptPasswordTest extends PasswordTestCase {
protected function getTypeConfigs() {
diff --git a/tests/phpunit/unit/includes/password/EncryptedPasswordTest.php b/tests/phpunit/unit/includes/password/EncryptedPasswordTest.php
index d0c9b27e6933..3c1bc77f463f 100644
--- a/tests/phpunit/unit/includes/password/EncryptedPasswordTest.php
+++ b/tests/phpunit/unit/includes/password/EncryptedPasswordTest.php
@@ -1,9 +1,9 @@
<?php
/**
- * @covers EncryptedPassword
- * @covers ParameterizedPassword
- * @covers Password
+ * @covers \EncryptedPassword
+ * @covers \ParameterizedPassword
+ * @covers \Password
*/
class EncryptedPasswordTest extends PasswordTestCase {
protected function getTypeConfigs() {
diff --git a/tests/phpunit/unit/includes/password/LayeredParameterizedPasswordTest.php b/tests/phpunit/unit/includes/password/LayeredParameterizedPasswordTest.php
index 3b720dedfb45..9cdbc8e4bcfb 100644
--- a/tests/phpunit/unit/includes/password/LayeredParameterizedPasswordTest.php
+++ b/tests/phpunit/unit/includes/password/LayeredParameterizedPasswordTest.php
@@ -1,8 +1,8 @@
<?php
/**
- * @covers LayeredParameterizedPassword
- * @covers Password
+ * @covers \LayeredParameterizedPassword
+ * @covers \Password
*/
class LayeredParameterizedPasswordTest extends PasswordTestCase {
protected function getTypeConfigs() {
@@ -46,7 +46,7 @@ class LayeredParameterizedPasswordTest extends PasswordTestCase {
}
/**
- * @covers LayeredParameterizedPassword::partialCrypt
+ * @covers \LayeredParameterizedPassword::partialCrypt
*/
public function testLargeLayeredPartialUpdate() {
/** @var ParameterizedPassword $partialPassword */
diff --git a/tests/phpunit/unit/includes/password/MWOldPasswordTest.php b/tests/phpunit/unit/includes/password/MWOldPasswordTest.php
index 50100826f1dc..659be5685a96 100644
--- a/tests/phpunit/unit/includes/password/MWOldPasswordTest.php
+++ b/tests/phpunit/unit/includes/password/MWOldPasswordTest.php
@@ -1,9 +1,9 @@
<?php
/**
- * @covers MWOldPassword
- * @covers ParameterizedPassword
- * @covers Password
+ * @covers \MWOldPassword
+ * @covers \ParameterizedPassword
+ * @covers \Password
*/
class MWOldPasswordTest extends PasswordTestCase {
protected function getTypeConfigs() {
diff --git a/tests/phpunit/unit/includes/password/MWSaltedPasswordTest.php b/tests/phpunit/unit/includes/password/MWSaltedPasswordTest.php
index 5616868dad2d..606bd7a2f81c 100644
--- a/tests/phpunit/unit/includes/password/MWSaltedPasswordTest.php
+++ b/tests/phpunit/unit/includes/password/MWSaltedPasswordTest.php
@@ -1,9 +1,9 @@
<?php
/**
- * @covers MWSaltedPassword
- * @covers ParameterizedPassword
- * @covers Password
+ * @covers \MWSaltedPassword
+ * @covers \ParameterizedPassword
+ * @covers \Password
*/
class MWSaltedPasswordTest extends PasswordTestCase {
protected function getTypeConfigs() {
diff --git a/tests/phpunit/unit/includes/password/PasswordFactoryTest.php b/tests/phpunit/unit/includes/password/PasswordFactoryTest.php
index bdb2c32f0806..07d3c0bb9337 100644
--- a/tests/phpunit/unit/includes/password/PasswordFactoryTest.php
+++ b/tests/phpunit/unit/includes/password/PasswordFactoryTest.php
@@ -4,7 +4,7 @@ use MediaWiki\Config\HashConfig;
use MediaWiki\MainConfigNames;
/**
- * @covers PasswordFactory
+ * @covers \PasswordFactory
*/
class PasswordFactoryTest extends MediaWikiUnitTestCase {
public function testConstruct() {
diff --git a/tests/phpunit/unit/includes/password/PasswordTest.php b/tests/phpunit/unit/includes/password/PasswordTest.php
index 89e06041a1e0..c9fb91cdb787 100644
--- a/tests/phpunit/unit/includes/password/PasswordTest.php
+++ b/tests/phpunit/unit/includes/password/PasswordTest.php
@@ -21,7 +21,7 @@
*/
/**
- * @covers Password
+ * @covers \Password
*/
class PasswordTest extends \MediaWikiUnitTestCase {
public function testNoTypeThrows() {
diff --git a/tests/phpunit/unit/includes/password/PasswordTestCase.php b/tests/phpunit/unit/includes/password/PasswordTestCase.php
index 65368cbf1d0b..625dc893b4b8 100644
--- a/tests/phpunit/unit/includes/password/PasswordTestCase.php
+++ b/tests/phpunit/unit/includes/password/PasswordTestCase.php
@@ -75,7 +75,7 @@ abstract class PasswordTestCase extends MediaWikiUnitTestCase {
/**
* @dataProvider providePasswordTests
- * @covers InvalidPassword
+ * @covers \InvalidPassword
*/
public function testInvalidUnequalNormal( $shouldMatch, $hash, $password ) {
$invalid = $this->passwordFactory->newFromCiphertext( null );
diff --git a/tests/phpunit/unit/includes/password/Pbkdf2PasswordUsingHashExtensionTest.php b/tests/phpunit/unit/includes/password/Pbkdf2PasswordUsingHashExtensionTest.php
index 08d47f230b38..162055f63680 100644
--- a/tests/phpunit/unit/includes/password/Pbkdf2PasswordUsingHashExtensionTest.php
+++ b/tests/phpunit/unit/includes/password/Pbkdf2PasswordUsingHashExtensionTest.php
@@ -2,8 +2,8 @@
/**
* @group large
- * @covers AbstractPbkdf2Password
- * @covers Pbkdf2PasswordUsingHashExtension
+ * @covers \AbstractPbkdf2Password
+ * @covers \Pbkdf2PasswordUsingHashExtension
*/
class Pbkdf2PasswordUsingHashExtensionTest extends Pbkdf2PasswordTestCase {
protected static function getPbkdf2PasswordClass() {
diff --git a/tests/phpunit/unit/includes/password/Pbkdf2PasswordUsingOpenSSLTest.php b/tests/phpunit/unit/includes/password/Pbkdf2PasswordUsingOpenSSLTest.php
index 4a60c63af830..f71a5e00b305 100644
--- a/tests/phpunit/unit/includes/password/Pbkdf2PasswordUsingOpenSSLTest.php
+++ b/tests/phpunit/unit/includes/password/Pbkdf2PasswordUsingOpenSSLTest.php
@@ -2,8 +2,8 @@
/**
* @group large
- * @covers AbstractPbkdf2Password
- * @covers Pbkdf2PasswordUsingOpenSSL
+ * @covers \AbstractPbkdf2Password
+ * @covers \Pbkdf2PasswordUsingOpenSSL
* @requires function openssl_pbkdf2
*/
class Pbkdf2PasswordUsingOpenSSLTest extends Pbkdf2PasswordTestCase {
diff --git a/tests/phpunit/unit/includes/preferences/FiltersTest.php b/tests/phpunit/unit/includes/preferences/FiltersTest.php
index 972001eb7853..914f648d5d62 100644
--- a/tests/phpunit/unit/includes/preferences/FiltersTest.php
+++ b/tests/phpunit/unit/includes/preferences/FiltersTest.php
@@ -28,8 +28,8 @@ use MediaWiki\User\CentralId\CentralIdLookup;
*/
class FiltersTest extends \MediaWikiUnitTestCase {
/**
- * @covers MediaWiki\Preferences\IntvalFilter::filterFromForm()
- * @covers MediaWiki\Preferences\IntvalFilter::filterForForm()
+ * @covers \MediaWiki\Preferences\IntvalFilter::filterFromForm()
+ * @covers \MediaWiki\Preferences\IntvalFilter::filterForForm()
*/
public function testIntvalFilter() {
$filter = new IntvalFilter();
@@ -39,7 +39,7 @@ class FiltersTest extends \MediaWikiUnitTestCase {
}
/**
- * @covers MediaWiki\Preferences\TimezoneFilter::filterFromForm()
+ * @covers \MediaWiki\Preferences\TimezoneFilter::filterFromForm()
* @dataProvider provideTimezoneFilter
*
* @param string $input
@@ -62,7 +62,7 @@ class FiltersTest extends \MediaWikiUnitTestCase {
}
/**
- * @covers MediaWiki\Preferences\MultiUsernameFilter::filterFromForm()
+ * @covers \MediaWiki\Preferences\MultiUsernameFilter::filterFromForm()
* @dataProvider provideMultiUsernameFilterFrom
*
* @param string $input
@@ -87,7 +87,7 @@ class FiltersTest extends \MediaWikiUnitTestCase {
}
/**
- * @covers MediaWiki\Preferences\MultiUsernameFilter::filterForForm()
+ * @covers \MediaWiki\Preferences\MultiUsernameFilter::filterForForm()
* @dataProvider provideMultiUsernameFilterFor
*
* @param string $input
diff --git a/tests/phpunit/unit/includes/rcfeed/RCFeedTest.php b/tests/phpunit/unit/includes/rcfeed/RCFeedTest.php
index d94dd4e2a265..f8ce239d8787 100644
--- a/tests/phpunit/unit/includes/rcfeed/RCFeedTest.php
+++ b/tests/phpunit/unit/includes/rcfeed/RCFeedTest.php
@@ -1,7 +1,7 @@
<?php
/**
- * @covers RCFeed
+ * @covers \RCFeed
*/
class RCFeedTest extends MediaWikiUnitTestCase {
diff --git a/tests/phpunit/unit/includes/registration/ExtensionJsonValidatorTest.php b/tests/phpunit/unit/includes/registration/ExtensionJsonValidatorTest.php
index ce76d4240bc2..ecc09b012c13 100644
--- a/tests/phpunit/unit/includes/registration/ExtensionJsonValidatorTest.php
+++ b/tests/phpunit/unit/includes/registration/ExtensionJsonValidatorTest.php
@@ -19,7 +19,7 @@
*/
/**
- * @covers ExtensionJsonValidator
+ * @covers \ExtensionJsonValidator
*/
class ExtensionJsonValidatorTest extends MediaWikiUnitTestCase {
diff --git a/tests/phpunit/unit/includes/registration/ExtensionProcessorTest.php b/tests/phpunit/unit/includes/registration/ExtensionProcessorTest.php
index c24ecc7ff1bc..b1496b8da1ac 100644
--- a/tests/phpunit/unit/includes/registration/ExtensionProcessorTest.php
+++ b/tests/phpunit/unit/includes/registration/ExtensionProcessorTest.php
@@ -13,7 +13,7 @@ use UnexpectedValueException;
use Wikimedia\TestingAccessWrapper;
/**
- * @covers ExtensionProcessor
+ * @covers \ExtensionProcessor
*/
class ExtensionProcessorTest extends MediaWikiUnitTestCase {
diff --git a/tests/phpunit/unit/includes/registration/ExtensionRegistryTest.php b/tests/phpunit/unit/includes/registration/ExtensionRegistryTest.php
index 5802ee814a9c..3c221262e90f 100644
--- a/tests/phpunit/unit/includes/registration/ExtensionRegistryTest.php
+++ b/tests/phpunit/unit/includes/registration/ExtensionRegistryTest.php
@@ -11,7 +11,7 @@ use Wikimedia\ScopedCallback;
use Wikimedia\TestingAccessWrapper;
/**
- * @covers ExtensionRegistry
+ * @covers \ExtensionRegistry
*/
class ExtensionRegistryTest extends MediaWikiUnitTestCase {
diff --git a/tests/phpunit/unit/includes/registration/VersionCheckerTest.php b/tests/phpunit/unit/includes/registration/VersionCheckerTest.php
index dfc541e12c32..9ed6f113bfdd 100644
--- a/tests/phpunit/unit/includes/registration/VersionCheckerTest.php
+++ b/tests/phpunit/unit/includes/registration/VersionCheckerTest.php
@@ -1,7 +1,7 @@
<?php
/**
- * @covers VersionChecker
+ * @covers \VersionChecker
*/
class VersionCheckerTest extends MediaWikiUnitTestCase {
diff --git a/tests/phpunit/unit/includes/revisionlist/RevisionItemBaseTest.php b/tests/phpunit/unit/includes/revisionlist/RevisionItemBaseTest.php
index 702a53baec1f..dcd96b11f21d 100644
--- a/tests/phpunit/unit/includes/revisionlist/RevisionItemBaseTest.php
+++ b/tests/phpunit/unit/includes/revisionlist/RevisionItemBaseTest.php
@@ -1,7 +1,7 @@
<?php
/**
- * @covers RevisionItemBase
+ * @covers \RevisionItemBase
*
* @author DannyS712
*/
diff --git a/tests/phpunit/unit/includes/revisionlist/RevisionListBaseTest.php b/tests/phpunit/unit/includes/revisionlist/RevisionListBaseTest.php
index 8310426a9fb9..aac678691d0f 100644
--- a/tests/phpunit/unit/includes/revisionlist/RevisionListBaseTest.php
+++ b/tests/phpunit/unit/includes/revisionlist/RevisionListBaseTest.php
@@ -4,7 +4,7 @@ use Wikimedia\Rdbms\IResultWrapper;
use Wikimedia\TestingAccessWrapper;
/**
- * @covers RevisionListBase
+ * @covers \RevisionListBase
*
* @author DannyS712
*/
diff --git a/tests/phpunit/unit/includes/search/FauxSearchResultSetTest.php b/tests/phpunit/unit/includes/search/FauxSearchResultSetTest.php
index 08374e2c1599..342c0f2418b4 100644
--- a/tests/phpunit/unit/includes/search/FauxSearchResultSetTest.php
+++ b/tests/phpunit/unit/includes/search/FauxSearchResultSetTest.php
@@ -4,7 +4,7 @@ use MediaWiki\Title\Title;
/**
* @group Search
- * @covers FauxSearchResultSet
+ * @covers \FauxSearchResultSet
*/
class FauxSearchResultSetTest extends MediaWikiUnitTestCase {
diff --git a/tests/phpunit/unit/includes/search/FauxSearchResultTest.php b/tests/phpunit/unit/includes/search/FauxSearchResultTest.php
index f8fd5281412a..58c69ef58a55 100644
--- a/tests/phpunit/unit/includes/search/FauxSearchResultTest.php
+++ b/tests/phpunit/unit/includes/search/FauxSearchResultTest.php
@@ -4,7 +4,7 @@ use MediaWiki\Revision\MutableRevisionRecord;
/**
* @group Search
- * @covers FauxSearchResultSet
+ * @covers \FauxSearchResultSet
*/
class FauxSearchResultTest extends MediaWikiUnitTestCase {
use MockTitleTrait;
diff --git a/tests/phpunit/unit/includes/search/SearchIndexFieldTest.php b/tests/phpunit/unit/includes/search/SearchIndexFieldTest.php
index beafcd52dec1..91310b3efe93 100644
--- a/tests/phpunit/unit/includes/search/SearchIndexFieldTest.php
+++ b/tests/phpunit/unit/includes/search/SearchIndexFieldTest.php
@@ -2,7 +2,7 @@
/**
* @group Search
- * @covers SearchIndexFieldDefinition
+ * @covers \SearchIndexFieldDefinition
*/
class SearchIndexFieldTest extends \MediaWikiUnitTestCase {
diff --git a/tests/phpunit/unit/includes/search/SearchSuggestionSetTest.php b/tests/phpunit/unit/includes/search/SearchSuggestionSetTest.php
index 13a4f35909eb..4d478277f7b1 100644
--- a/tests/phpunit/unit/includes/search/SearchSuggestionSetTest.php
+++ b/tests/phpunit/unit/includes/search/SearchSuggestionSetTest.php
@@ -23,7 +23,7 @@ class SearchSuggestionSetTest extends \MediaWikiUnitTestCase {
/**
* Test that adding a new suggestion at the end
* will keep proper score ordering
- * @covers SearchSuggestionSet::append
+ * @covers \SearchSuggestionSet::append
*/
public function testAppend() {
$set = SearchSuggestionSet::emptySuggestionSet();
@@ -55,9 +55,9 @@ class SearchSuggestionSetTest extends \MediaWikiUnitTestCase {
/**
* Test that adding a new best suggestion will keep proper score
* ordering
- * @covers SearchSuggestionSet::getWorstScore
- * @covers SearchSuggestionSet::getBestScore
- * @covers SearchSuggestionSet::prepend
+ * @covers \SearchSuggestionSet::getWorstScore
+ * @covers \SearchSuggestionSet::getBestScore
+ * @covers \SearchSuggestionSet::prepend
*/
public function testInsertBest() {
$set = SearchSuggestionSet::emptySuggestionSet();
@@ -93,7 +93,7 @@ class SearchSuggestionSetTest extends \MediaWikiUnitTestCase {
}
/**
- * @covers SearchSuggestionSet::shrink
+ * @covers \SearchSuggestionSet::shrink
*/
public function testShrink() {
$set = SearchSuggestionSet::emptySuggestionSet();
@@ -112,7 +112,7 @@ class SearchSuggestionSetTest extends \MediaWikiUnitTestCase {
}
/**
- * @covers SearchSuggestionSet::remove
+ * @covers \SearchSuggestionSet::remove
*/
public function testRemove() {
$set = SearchSuggestionSet::emptySuggestionSet();
@@ -138,7 +138,7 @@ class SearchSuggestionSetTest extends \MediaWikiUnitTestCase {
}
/**
- * @covers SearchSuggestionSet::fromTitles
+ * @covers \SearchSuggestionSet::fromTitles
* @dataProvider provideNoTitles
*/
public function testFromNoTitles( array $titles ): void {
diff --git a/tests/phpunit/unit/includes/session/MetadataMergeExceptionTest.php b/tests/phpunit/unit/includes/session/MetadataMergeExceptionTest.php
index c8853a63cc75..faf74e1eb148 100644
--- a/tests/phpunit/unit/includes/session/MetadataMergeExceptionTest.php
+++ b/tests/phpunit/unit/includes/session/MetadataMergeExceptionTest.php
@@ -6,7 +6,7 @@ use MediaWiki\Session\MetadataMergeException;
/**
* @group Session
- * @covers MediaWiki\Session\MetadataMergeException
+ * @covers \MediaWiki\Session\MetadataMergeException
*/
class MetadataMergeExceptionTest extends \MediaWikiUnitTestCase {
diff --git a/tests/phpunit/unit/includes/session/SessionIdTest.php b/tests/phpunit/unit/includes/session/SessionIdTest.php
index e40fcfcbf85f..7afbed73b704 100644
--- a/tests/phpunit/unit/includes/session/SessionIdTest.php
+++ b/tests/phpunit/unit/includes/session/SessionIdTest.php
@@ -6,7 +6,7 @@ use MediaWiki\Session\SessionId;
/**
* @group Session
- * @covers MediaWiki\Session\SessionId
+ * @covers \MediaWiki\Session\SessionId
*/
class SessionIdTest extends \MediaWikiUnitTestCase {
diff --git a/tests/phpunit/unit/includes/shell/CommandFactoryTest.php b/tests/phpunit/unit/includes/shell/CommandFactoryTest.php
index c4631699e69d..78ee45c23755 100644
--- a/tests/phpunit/unit/includes/shell/CommandFactoryTest.php
+++ b/tests/phpunit/unit/includes/shell/CommandFactoryTest.php
@@ -12,7 +12,7 @@ use Wikimedia\TestingAccessWrapper;
class CommandFactoryTest extends MediaWikiUnitTestCase {
/**
- * @covers MediaWiki\Shell\CommandFactory::create
+ * @covers \MediaWiki\Shell\CommandFactory::create
*/
public function testCreate() {
$logger = new NullLogger();
diff --git a/tests/phpunit/unit/includes/shell/ShellboxClientFactoryTest.php b/tests/phpunit/unit/includes/shell/ShellboxClientFactoryTest.php
index 9cf5bf7264d7..95bd35bac946 100644
--- a/tests/phpunit/unit/includes/shell/ShellboxClientFactoryTest.php
+++ b/tests/phpunit/unit/includes/shell/ShellboxClientFactoryTest.php
@@ -6,7 +6,7 @@ use Shellbox\RPC\RpcClient;
/**
* @group Shell
- * @covers MediaWiki\Shell\ShellboxClientFactory
+ * @covers \MediaWiki\Shell\ShellboxClientFactory
*/
class ShellboxClientFactoryTest extends MediaWikiUnitTestCase {
diff --git a/tests/phpunit/unit/includes/site/MediaWikiPageNameNormalizerTest.php b/tests/phpunit/unit/includes/site/MediaWikiPageNameNormalizerTest.php
index c08325178fa6..251df2b38fec 100644
--- a/tests/phpunit/unit/includes/site/MediaWikiPageNameNormalizerTest.php
+++ b/tests/phpunit/unit/includes/site/MediaWikiPageNameNormalizerTest.php
@@ -4,7 +4,7 @@ use MediaWiki\Http\HttpRequestFactory;
use MediaWiki\Site\MediaWikiPageNameNormalizer;
/**
- * @covers MediaWiki\Site\MediaWikiPageNameNormalizer
+ * @covers \MediaWiki\Site\MediaWikiPageNameNormalizer
*
* 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
diff --git a/tests/phpunit/unit/includes/skins/SkinFactoryTest.php b/tests/phpunit/unit/includes/skins/SkinFactoryTest.php
index 373907d338ae..19d39106a72a 100644
--- a/tests/phpunit/unit/includes/skins/SkinFactoryTest.php
+++ b/tests/phpunit/unit/includes/skins/SkinFactoryTest.php
@@ -3,7 +3,7 @@
use MediaWiki\Tests\Unit\DummyServicesTrait;
/**
- * @covers SkinFactory
+ * @covers \SkinFactory
*/
class SkinFactoryTest extends \MediaWikiUnitTestCase {
use DummyServicesTrait;
diff --git a/tests/phpunit/unit/includes/specials/formfields/LicensesTest.php b/tests/phpunit/unit/includes/specials/formfields/LicensesTest.php
index 7c0f78aebf92..fdb06e97053d 100644
--- a/tests/phpunit/unit/includes/specials/formfields/LicensesTest.php
+++ b/tests/phpunit/unit/includes/specials/formfields/LicensesTest.php
@@ -1,7 +1,7 @@
<?php
/**
- * @covers Licenses
+ * @covers \Licenses
*/
class LicensesTest extends MediaWikiUnitTestCase {
diff --git a/tests/phpunit/unit/includes/tidy/RemexDriverTest.php b/tests/phpunit/unit/includes/tidy/RemexDriverTest.php
index e64f64b570c8..ae6e732ecc76 100644
--- a/tests/phpunit/unit/includes/tidy/RemexDriverTest.php
+++ b/tests/phpunit/unit/includes/tidy/RemexDriverTest.php
@@ -340,10 +340,10 @@ MathML;
/**
* @dataProvider provider
- * @covers MediaWiki\Tidy\RemexCompatFormatter
- * @covers MediaWiki\Tidy\RemexCompatMunger
- * @covers MediaWiki\Tidy\RemexDriver
- * @covers MediaWiki\Tidy\RemexMungerData
+ * @covers \MediaWiki\Tidy\RemexCompatFormatter
+ * @covers \MediaWiki\Tidy\RemexCompatMunger
+ * @covers \MediaWiki\Tidy\RemexDriver
+ * @covers \MediaWiki\Tidy\RemexMungerData
*/
public function testTidy( $desc, $input, $expected ) {
$r = new MediaWiki\Tidy\RemexDriver(
diff --git a/tests/phpunit/unit/includes/title/TitleArrayFromResultTest.php b/tests/phpunit/unit/includes/title/TitleArrayFromResultTest.php
index e907629d906e..bf3493f203f6 100644
--- a/tests/phpunit/unit/includes/title/TitleArrayFromResultTest.php
+++ b/tests/phpunit/unit/includes/title/TitleArrayFromResultTest.php
@@ -5,7 +5,7 @@ use MediaWiki\Title\TitleArrayFromResult;
/**
* @author Addshore
- * @covers MediaWiki\Title\TitleArrayFromResult
+ * @covers \MediaWiki\Title\TitleArrayFromResult
*/
class TitleArrayFromResultTest extends MediaWikiUnitTestCase {
@@ -28,7 +28,7 @@ class TitleArrayFromResultTest extends MediaWikiUnitTestCase {
}
/**
- * @covers MediaWiki\Title\TitleArrayFromResult::__construct
+ * @covers \MediaWiki\Title\TitleArrayFromResult::__construct
*/
public function testConstructionWithFalseRow() {
$row = false;
@@ -42,7 +42,7 @@ class TitleArrayFromResultTest extends MediaWikiUnitTestCase {
}
/**
- * @covers MediaWiki\Title\TitleArrayFromResult::__construct
+ * @covers \MediaWiki\Title\TitleArrayFromResult::__construct
*/
public function testConstructionWithRow() {
$namespace = 0;
@@ -69,7 +69,7 @@ class TitleArrayFromResultTest extends MediaWikiUnitTestCase {
/**
* @dataProvider provideNumberOfRows
- * @covers MediaWiki\Title\TitleArrayFromResult::count
+ * @covers \MediaWiki\Title\TitleArrayFromResult::count
*/
public function testCountWithVaryingValues( $numRows ) {
$object = new TitleArrayFromResult( $this->getMockResultWrapper(
@@ -80,7 +80,7 @@ class TitleArrayFromResultTest extends MediaWikiUnitTestCase {
}
/**
- * @covers MediaWiki\Title\TitleArrayFromResult::current
+ * @covers \MediaWiki\Title\TitleArrayFromResult::current
*/
public function testCurrentAfterConstruction() {
$namespace = 0;
@@ -101,7 +101,7 @@ class TitleArrayFromResultTest extends MediaWikiUnitTestCase {
/**
* @dataProvider provideTestValid
- * @covers MediaWiki\Title\TitleArrayFromResult::valid
+ * @covers \MediaWiki\Title\TitleArrayFromResult::valid
*/
public function testValid( $input, $expected ) {
$object = new TitleArrayFromResult( $this->getMockResultWrapper( $input ) );
diff --git a/tests/phpunit/unit/includes/title/TitleTest.php b/tests/phpunit/unit/includes/title/TitleTest.php
index 59ad69db0b17..7b674bd60756 100644
--- a/tests/phpunit/unit/includes/title/TitleTest.php
+++ b/tests/phpunit/unit/includes/title/TitleTest.php
@@ -31,7 +31,7 @@ use MediaWiki\User\UserIdentityValue;
use MediaWikiUnitTestCase;
/**
- * @covers MediaWiki\Title\Title
+ * @covers \MediaWiki\Title\Title
*
* @author DannyS712
*/
@@ -71,7 +71,7 @@ class TitleTest extends MediaWikiUnitTestCase {
}
/**
- * @covers MediaWiki\Title\Title::legalChars
+ * @covers \MediaWiki\Title\Title::legalChars
*/
public function testLegalChars() {
$titlechars = Title::legalChars();
@@ -155,7 +155,7 @@ class TitleTest extends MediaWikiUnitTestCase {
/**
* @dataProvider provideConvertByteClassToUnicodeClass
- * @covers MediaWiki\Title\Title::convertByteClassToUnicodeClass
+ * @covers \MediaWiki\Title\Title::convertByteClassToUnicodeClass
*/
public function testConvertByteClassToUnicodeClass( $byteClass, $unicodeClass ) {
$this->assertEquals( $unicodeClass, Title::convertByteClassToUnicodeClass( $byteClass ) );
@@ -170,7 +170,7 @@ class TitleTest extends MediaWikiUnitTestCase {
}
/**
- * @covers MediaWiki\Title\Title::newFromLinkTarget
+ * @covers \MediaWiki\Title\Title::newFromLinkTarget
* @dataProvider provideNewFromTitleValue
*/
public function testNewFromLinkTarget( LinkTarget $value ) {
@@ -183,7 +183,7 @@ class TitleTest extends MediaWikiUnitTestCase {
}
/**
- * @covers MediaWiki\Title\Title::newFromLinkTarget
+ * @covers \MediaWiki\Title\Title::newFromLinkTarget
*/
public function testNewFromLinkTarget_clone() {
$title = Title::makeTitle( NS_MAIN, 'Example' );
@@ -200,7 +200,7 @@ class TitleTest extends MediaWikiUnitTestCase {
}
/**
- * @covers MediaWiki\Title\Title::castFromLinkTarget
+ * @covers \MediaWiki\Title\Title::castFromLinkTarget
* @dataProvider provideCastFromLinkTarget
*/
public function testCastFromLinkTarget( $value ) {
@@ -226,9 +226,9 @@ class TitleTest extends MediaWikiUnitTestCase {
}
/**
- * @covers MediaWiki\Title\Title::getFragment
- * @covers MediaWiki\Title\Title::setFragment
- * @covers MediaWiki\Title\Title::normalizeFragment
+ * @covers \MediaWiki\Title\Title::getFragment
+ * @covers \MediaWiki\Title\Title::setFragment
+ * @covers \MediaWiki\Title\Title::normalizeFragment
* @dataProvider provideDataForTestSetAndGetFragment
*/
public function testSetAndGetFragment( string $fragment, $expected ) {
@@ -246,7 +246,7 @@ class TitleTest extends MediaWikiUnitTestCase {
}
/**
- * @covers MediaWiki\Title\Title::hasFragment
+ * @covers \MediaWiki\Title\Title::hasFragment
* @dataProvider provideTitleWithOrWithoutFragments
*/
public function testHasFragment( Title $title, $expected ) {
@@ -298,7 +298,7 @@ class TitleTest extends MediaWikiUnitTestCase {
/**
* @dataProvider provideCompare
- * @covers MediaWiki\Title\Title::compare
+ * @covers \MediaWiki\Title\Title::compare
*/
public function testCompare( $a, $b, $expected ) {
if ( $expected > 0 ) {
@@ -329,7 +329,7 @@ class TitleTest extends MediaWikiUnitTestCase {
}
/**
- * @covers MediaWiki\Title\Title::castFromPageIdentity
+ * @covers \MediaWiki\Title\Title::castFromPageIdentity
* @dataProvider provideCastFromPageIdentity
*/
public function testCastFromPageIdentity( ?PageIdentity $value ) {
@@ -351,7 +351,7 @@ class TitleTest extends MediaWikiUnitTestCase {
}
/**
- * @covers MediaWiki\Title\Title::castFromPageReference
+ * @covers \MediaWiki\Title\Title::castFromPageReference
* @dataProvider provideCastFromPageIdentity
* @dataProvider provideCastFromPageReference
*/
@@ -378,7 +378,7 @@ class TitleTest extends MediaWikiUnitTestCase {
}
/**
- * @covers MediaWiki\Title\Title::createFragmentTarget
+ * @covers \MediaWiki\Title\Title::createFragmentTarget
* @dataProvider provideCreateFragmentTitle
*/
public function testCreateFragmentTitle( $namespace, $title, $fragment ) {
@@ -472,7 +472,7 @@ class TitleTest extends MediaWikiUnitTestCase {
}
/**
- * @covers MediaWiki\Title\Title::equals
+ * @covers \MediaWiki\Title\Title::equals
* @dataProvider provideEquals
*/
public function testEquals( Title $firstValue, $secondValue, $expectedSame ) {
@@ -516,7 +516,7 @@ class TitleTest extends MediaWikiUnitTestCase {
}
/**
- * @covers MediaWiki\Title\Title::isSameLinkAs
+ * @covers \MediaWiki\Title\Title::isSameLinkAs
* @dataProvider provideIsSameLinkAs
*/
public function testIsSameLinkAs( Title $firstValue, $secondValue, $expectedSame ) {
diff --git a/tests/phpunit/unit/includes/user/UserNameUtilsTest.php b/tests/phpunit/unit/includes/user/UserNameUtilsTest.php
index 8f9a416be769..1dc062abb56a 100644
--- a/tests/phpunit/unit/includes/user/UserNameUtilsTest.php
+++ b/tests/phpunit/unit/includes/user/UserNameUtilsTest.php
@@ -6,7 +6,7 @@ use MediaWiki\User\UserRigorOptions;
use Psr\Log\LogLevel;
/**
- * @covers MediaWiki\User\UserNameUtils
+ * @covers \MediaWiki\User\UserNameUtils
* @author DannyS712
*/
class UserNameUtilsTest extends MediaWikiUnitTestCase {
@@ -14,7 +14,7 @@ class UserNameUtilsTest extends MediaWikiUnitTestCase {
/**
* @dataProvider provideIsValid
- * @covers MediaWiki\User\UserNameUtils::isValid
+ * @covers \MediaWiki\User\UserNameUtils::isValid
*/
public function testIsValid( string $name, bool $result ) {
$this->assertSame(
@@ -49,7 +49,7 @@ class UserNameUtilsTest extends MediaWikiUnitTestCase {
/**
* @dataProvider provideIsUsable
- * @covers MediaWiki\User\UserNameUtils::isUsable
+ * @covers \MediaWiki\User\UserNameUtils::isUsable
*/
public function testIsUsable( string $name, bool $result ) {
$utils = $this->getDummyUserNameUtils( [
@@ -77,7 +77,7 @@ class UserNameUtilsTest extends MediaWikiUnitTestCase {
}
/**
- * @covers MediaWiki\User\UserNameUtils::isCreatable
+ * @covers \MediaWiki\User\UserNameUtils::isCreatable
*/
public function testIsCreatable() {
$logger = new TestLogger( true, static function ( $message ) {
@@ -126,7 +126,7 @@ class UserNameUtilsTest extends MediaWikiUnitTestCase {
/**
* @dataProvider provideGetCanonical
- * @covers MediaWiki\User\UserNameUtils::getCanonical
+ * @covers \MediaWiki\User\UserNameUtils::getCanonical
*/
public function testGetCanonical( string $name, array $expectedArray ) {
$utils = $this->getDummyUserNameUtils();
@@ -224,7 +224,7 @@ class UserNameUtilsTest extends MediaWikiUnitTestCase {
}
/**
- * @covers MediaWiki\User\UserNameUtils::getCanonical
+ * @covers \MediaWiki\User\UserNameUtils::getCanonical
*/
public function testGetCanonical_bad() {
$this->expectException( InvalidArgumentException::class );
@@ -234,7 +234,7 @@ class UserNameUtilsTest extends MediaWikiUnitTestCase {
/**
* @dataProvider provideIPs
- * @covers MediaWiki\User\UserNameUtils::isIP
+ * @covers \MediaWiki\User\UserNameUtils::isIP
*/
public function testIsIP( string $value, bool $result ) {
$utils = $this->getDummyUserNameUtils();
@@ -265,7 +265,7 @@ class UserNameUtilsTest extends MediaWikiUnitTestCase {
/**
* @dataProvider provideIPRanges
- * @covers MediaWiki\User\UserNameUtils::isValidIPRange
+ * @covers \MediaWiki\User\UserNameUtils::isValidIPRange
*/
public function testIsValidIPRange( $value, $result ) {
$utils = $this->getDummyUserNameUtils();
diff --git a/tests/phpunit/unit/includes/utils/ClassCollectorTest.php b/tests/phpunit/unit/includes/utils/ClassCollectorTest.php
index 29433748d244..6f5288691c4a 100644
--- a/tests/phpunit/unit/includes/utils/ClassCollectorTest.php
+++ b/tests/phpunit/unit/includes/utils/ClassCollectorTest.php
@@ -1,7 +1,7 @@
<?php
/**
- * @covers ClassCollector
+ * @covers \ClassCollector
*/
class ClassCollectorTest extends MediaWikiUnitTestCase {
diff --git a/tests/phpunit/unit/includes/utils/MWRestrictionsTest.php b/tests/phpunit/unit/includes/utils/MWRestrictionsTest.php
index f5b123a9542d..0d04e45add39 100644
--- a/tests/phpunit/unit/includes/utils/MWRestrictionsTest.php
+++ b/tests/phpunit/unit/includes/utils/MWRestrictionsTest.php
@@ -20,8 +20,8 @@ class MWRestrictionsTest extends MediaWikiUnitTestCase {
}
/**
- * @covers MWRestrictions::newDefault
- * @covers MWRestrictions::__construct
+ * @covers \MWRestrictions::newDefault
+ * @covers \MWRestrictions::__construct
*/
public function testNewDefault() {
$ret = MWRestrictions::newDefault();
@@ -33,10 +33,10 @@ class MWRestrictionsTest extends MediaWikiUnitTestCase {
}
/**
- * @covers MWRestrictions::newFromArray
- * @covers MWRestrictions::__construct
- * @covers MWRestrictions::loadFromArray
- * @covers MWRestrictions::toArray
+ * @covers \MWRestrictions::newFromArray
+ * @covers \MWRestrictions::__construct
+ * @covers \MWRestrictions::loadFromArray
+ * @covers \MWRestrictions::toArray
* @dataProvider provideArray
* @param array $data
* @param StatusValue|InvalidArgumentException $expect StatusValue if the call succeeds,
@@ -82,11 +82,11 @@ class MWRestrictionsTest extends MediaWikiUnitTestCase {
}
/**
- * @covers MWRestrictions::newFromJson
- * @covers MWRestrictions::__construct
- * @covers MWRestrictions::loadFromArray
- * @covers MWRestrictions::toJson
- * @covers MWRestrictions::__toString
+ * @covers \MWRestrictions::newFromJson
+ * @covers \MWRestrictions::__construct
+ * @covers \MWRestrictions::loadFromArray
+ * @covers \MWRestrictions::toJson
+ * @covers \MWRestrictions::__toString
* @dataProvider provideJson
* @param string $json
* @param array|null $restrictions
@@ -162,7 +162,7 @@ class MWRestrictionsTest extends MediaWikiUnitTestCase {
}
/**
- * @covers MWRestrictions::checkIP
+ * @covers \MWRestrictions::checkIP
* @dataProvider provideCheckIP
* @param string $ip
* @param bool $pass
@@ -183,7 +183,7 @@ class MWRestrictionsTest extends MediaWikiUnitTestCase {
}
/**
- * @covers MWRestrictions::check
+ * @covers \MWRestrictions::check
* @dataProvider provideCheck
* @param WebRequest $request
* @param Status $expect
diff --git a/tests/phpunit/unit/includes/watcheditem/NoWriteWatchedItemStoreUnitTest.php b/tests/phpunit/unit/includes/watcheditem/NoWriteWatchedItemStoreUnitTest.php
index b9d8e3d47531..cbd40698bd61 100644
--- a/tests/phpunit/unit/includes/watcheditem/NoWriteWatchedItemStoreUnitTest.php
+++ b/tests/phpunit/unit/includes/watcheditem/NoWriteWatchedItemStoreUnitTest.php
@@ -7,7 +7,7 @@ use Wikimedia\Rdbms\DBReadOnlyError;
/**
* @author Addshore
*
- * @covers NoWriteWatchedItemStore
+ * @covers \NoWriteWatchedItemStore
*/
class NoWriteWatchedItemStoreUnitTest extends \MediaWikiUnitTestCase {
diff --git a/tests/phpunit/unit/includes/watcheditem/WatchedItemQueryServiceUnitTest.php b/tests/phpunit/unit/includes/watcheditem/WatchedItemQueryServiceUnitTest.php
index bd1125c9fea9..0e5df4140ff2 100644
--- a/tests/phpunit/unit/includes/watcheditem/WatchedItemQueryServiceUnitTest.php
+++ b/tests/phpunit/unit/includes/watcheditem/WatchedItemQueryServiceUnitTest.php
@@ -15,7 +15,7 @@ use Wikimedia\Rdbms\IReadableDatabase;
use Wikimedia\TestingAccessWrapper;
/**
- * @covers WatchedItemQueryService
+ * @covers \WatchedItemQueryService
*/
class WatchedItemQueryServiceUnitTest extends MediaWikiUnitTestCase {
diff --git a/tests/phpunit/unit/includes/watcheditem/WatchedItemUnitTest.php b/tests/phpunit/unit/includes/watcheditem/WatchedItemUnitTest.php
index 38352ba6c70e..68be3d1dad15 100644
--- a/tests/phpunit/unit/includes/watcheditem/WatchedItemUnitTest.php
+++ b/tests/phpunit/unit/includes/watcheditem/WatchedItemUnitTest.php
@@ -5,7 +5,7 @@ use MediaWiki\User\UserIdentityValue;
use Wikimedia\Timestamp\ConvertibleTimestamp;
/**
- * @covers WatchedItem
+ * @covers \WatchedItem
*/
class WatchedItemUnitTest extends MediaWikiUnitTestCase {
diff --git a/tests/phpunit/unit/includes/xml/XmlSelectTest.php b/tests/phpunit/unit/includes/xml/XmlSelectTest.php
index 6891c91c6486..11ad9bab43ce 100644
--- a/tests/phpunit/unit/includes/xml/XmlSelectTest.php
+++ b/tests/phpunit/unit/includes/xml/XmlSelectTest.php
@@ -6,7 +6,7 @@
class XmlSelectTest extends MediaWikiUnitTestCase {
/**
- * @covers XmlSelect::__construct
+ * @covers \XmlSelect::__construct
*/
public function testConstructWithoutParameters() {
$select = new XmlSelect();
@@ -16,7 +16,7 @@ class XmlSelectTest extends MediaWikiUnitTestCase {
/**
* Parameters are $name (false), $id (false), $default (false)
* @dataProvider provideConstructionParameters
- * @covers XmlSelect::__construct
+ * @covers \XmlSelect::__construct
*/
public function testConstructParameters( $name, $id, $default, $expected ) {
$select = new XmlSelect( $name, $id, $default );
@@ -51,7 +51,7 @@ class XmlSelectTest extends MediaWikiUnitTestCase {
}
/**
- * @covers XmlSelect::addOption
+ * @covers \XmlSelect::addOption
*/
public function testAddOptionNoValue() {
$select = new XmlSelect();
@@ -64,7 +64,7 @@ class XmlSelectTest extends MediaWikiUnitTestCase {
/**
* @dataProvider provideAddOption
- * @covers XmlSelect::addOption
+ * @covers \XmlSelect::addOption
*/
public function testAddOption( $value, $expected ) {
$select = new XmlSelect();
@@ -79,7 +79,7 @@ class XmlSelectTest extends MediaWikiUnitTestCase {
}
/**
- * @covers XmlSelect::setDefault
+ * @covers \XmlSelect::setDefault
*/
public function testSetDefault() {
$select = new XmlSelect();
@@ -97,7 +97,7 @@ class XmlSelectTest extends MediaWikiUnitTestCase {
* Adding default later on should set the correct selection or
* raise an exception.
* To handle this, we need to render the options in getHtml()
- * @covers XmlSelect::setDefault
+ * @covers \XmlSelect::setDefault
*/
public function testSetDefaultAfterAddingOptions() {
$select = new XmlSelect();
@@ -112,8 +112,8 @@ class XmlSelectTest extends MediaWikiUnitTestCase {
}
/**
- * @covers XmlSelect::setAttribute
- * @covers XmlSelect::getAttribute
+ * @covers \XmlSelect::setAttribute
+ * @covers \XmlSelect::getAttribute
*/
public function testGetAttributes() {
# create some attributes
diff --git a/tests/phpunit/unit/includes/xml/XmlTest.php b/tests/phpunit/unit/includes/xml/XmlTest.php
index 6ec037a754c2..da2fa8e6f2db 100644
--- a/tests/phpunit/unit/includes/xml/XmlTest.php
+++ b/tests/phpunit/unit/includes/xml/XmlTest.php
@@ -32,7 +32,7 @@ use Xml;
class XmlTest extends MediaWikiUnitTestCase {
/**
- * @covers Xml::expandAttributes
+ * @covers \Xml::expandAttributes
*/
public function testExpandAttributes() {
$this->assertNull(
@@ -47,7 +47,7 @@ class XmlTest extends MediaWikiUnitTestCase {
}
/**
- * @covers Xml::escapeTagsOnly
+ * @covers \Xml::escapeTagsOnly
*/
public function testEscapeTagsOnly() {
$this->assertEquals( '&quot;&gt;&lt;', Xml::escapeTagsOnly( '"><' ),
diff --git a/tests/phpunit/unit/maintenance/MWDoxygenFilterTest.php b/tests/phpunit/unit/maintenance/MWDoxygenFilterTest.php
index b6e78e3817a7..2327b9ee7745 100644
--- a/tests/phpunit/unit/maintenance/MWDoxygenFilterTest.php
+++ b/tests/phpunit/unit/maintenance/MWDoxygenFilterTest.php
@@ -1,7 +1,7 @@
<?php
/**
- * @covers MWDoxygenFilter
+ * @covers \MWDoxygenFilter
*/
class MWDoxygenFilterTest extends \PHPUnit\Framework\TestCase {
diff --git a/tests/phpunit/unit/maintenance/PopulateUserIsTempTest.php b/tests/phpunit/unit/maintenance/PopulateUserIsTempTest.php
index 3c98a9a9d5d0..3892daa9473a 100644
--- a/tests/phpunit/unit/maintenance/PopulateUserIsTempTest.php
+++ b/tests/phpunit/unit/maintenance/PopulateUserIsTempTest.php
@@ -8,7 +8,7 @@ use PopulateUserIsTemp;
use Wikimedia\TestingAccessWrapper;
/**
- * @covers PopulateUserIsTemp
+ * @covers \PopulateUserIsTemp
*/
class PopulateUserIsTempTest extends MediaWikiUnitTestCase {
public function testUpdateKey() {
diff --git a/tests/phpunit/unit/tests/MockDatabaseTest.php b/tests/phpunit/unit/tests/MockDatabaseTest.php
index bf09ace631e5..cf5574e96fea 100644
--- a/tests/phpunit/unit/tests/MockDatabaseTest.php
+++ b/tests/phpunit/unit/tests/MockDatabaseTest.php
@@ -7,7 +7,7 @@ use Wikimedia\Rdbms\IResultWrapper;
* Ensure that MockDatabase methods can be called without triggering unit test
* constraints, such as service container access.
*
- * @covers MediaWiki\Tests\MockDatabase
+ * @covers \MediaWiki\Tests\MockDatabase
*/
class MockDatabaseTest extends MediaWikiUnitTestCase {