From 85396a9c99230d706cbbe21466770856b1fbe922 Mon Sep 17 00:00:00 2001 From: Reedy Date: Fri, 16 Feb 2024 18:04:47 +0000 Subject: [PATCH] tests: Fix @covers and @coversDefaultClass to have leading \ Change-Id: I5629f91387f2ac453ee4341bfe4bba310bd52f03 --- tests/phpunit/includes/AutoLoaderTest.php | 2 +- .../includes/Category/CategoryTest.php | 2 +- .../Category/TrackingCategoriesTest.php | 2 +- .../includes/ExternalLinks/LinkFilterTest.php | 2 +- tests/phpunit/includes/Html/HtmlTest.php | 2 +- .../includes/MediaWikiServicesTest.php | 2 +- .../ParamValidator/TypeDef/TagsDefTest.php | 2 +- .../Request/ContentSecurityPolicyTest.php | 34 +-- .../includes/Request/FauxRequestTest.php | 66 ++--- .../includes/Request/WebResponseTest.php | 2 +- .../includes/SiteStats/SiteStatsTest.php | 4 +- .../includes/Status/StatusFormatterTest.php | 2 +- tests/phpunit/includes/Status/StatusTest.php | 2 +- .../Storage/DerivedPageDataUpdaterTest.php | 4 +- .../Storage/NameTableStoreFactoryTest.php | 2 +- .../PageUpdaterFactoryIntegrationTest.php | 4 +- .../phpunit/includes/WikiMap/WikiMapTest.php | 18 +- .../includes/actions/ActionEntryPointTest.php | 2 +- tests/phpunit/includes/actions/ActionTest.php | 2 +- .../includes/actions/RollbackActionTest.php | 2 +- .../includes/actions/WatchActionTest.php | 26 +- .../api/ApiAcquireTempUserNameTest.php | 2 +- tests/phpunit/includes/api/ApiBaseTest.php | 4 +- .../includes/api/ApiBlockInfoTraitTest.php | 2 +- tests/phpunit/includes/api/ApiBlockTest.php | 2 +- .../phpunit/includes/api/ApiCSPReportTest.php | 2 +- .../api/ApiChangeContentModelTest.php | 2 +- .../includes/api/ApiCheckTokenTest.php | 2 +- .../includes/api/ApiClearHasMsgTest.php | 2 +- .../includes/api/ApiComparePagesTest.php | 2 +- .../api/ApiContinuationManagerTest.php | 2 +- .../api/ApiCreateTempUserTraitTest.php | 2 +- tests/phpunit/includes/api/ApiDeleteTest.php | 2 +- .../phpunit/includes/api/ApiDisabledTest.php | 2 +- .../phpunit/includes/api/ApiEditPageTest.php | 2 +- .../includes/api/ApiErrorFormatterTest.php | 24 +- tests/phpunit/includes/api/ApiLoginTest.php | 2 +- tests/phpunit/includes/api/ApiLogoutTest.php | 2 +- tests/phpunit/includes/api/ApiMainTest.php | 2 +- tests/phpunit/includes/api/ApiMessageTest.php | 14 +- tests/phpunit/includes/api/ApiMoveTest.php | 2 +- .../includes/api/ApiOpenSearchTest.php | 2 +- tests/phpunit/includes/api/ApiOptionsTest.php | 2 +- tests/phpunit/includes/api/ApiPageSetTest.php | 2 +- tests/phpunit/includes/api/ApiParseTest.php | 2 +- tests/phpunit/includes/api/ApiProtectTest.php | 4 +- tests/phpunit/includes/api/ApiPurgeTest.php | 2 +- tests/phpunit/includes/api/ApiResultTest.php | 14 +- .../includes/api/ApiRevisionDeleteTest.php | 2 +- .../phpunit/includes/api/ApiRollbackTest.php | 2 +- ...etNotificationTimestampIntegrationTest.php | 2 +- .../phpunit/includes/api/ApiStashEditTest.php | 2 +- tests/phpunit/includes/api/ApiUnblockTest.php | 2 +- .../phpunit/includes/api/ApiUndeleteTest.php | 4 +- tests/phpunit/includes/api/ApiUploadTest.php | 2 +- .../includes/api/ApiUsageExceptionTest.php | 2 +- .../includes/api/ApiUserrightsTest.php | 2 +- tests/phpunit/includes/api/ApiWatchTest.php | 2 +- .../includes/api/format/ApiFormatBaseTest.php | 2 +- .../includes/api/format/ApiFormatJsonTest.php | 2 +- .../includes/api/format/ApiFormatNoneTest.php | 2 +- .../includes/api/format/ApiFormatPhpTest.php | 2 +- .../includes/api/format/ApiFormatRawTest.php | 2 +- .../includes/api/format/ApiFormatXmlTest.php | 2 +- .../api/query/ApiQueryAllPagesTest.php | 2 +- .../api/query/ApiQueryAllRevisionsTest.php | 2 +- .../api/query/ApiQueryAllUsersTest.php | 2 +- .../includes/api/query/ApiQueryBasicTest.php | 2 +- .../api/query/ApiQueryBlockInfoTraitTest.php | 2 +- .../includes/api/query/ApiQueryBlocksTest.php | 2 +- .../api/query/ApiQueryContinue2Test.php | 2 +- .../api/query/ApiQueryContinueTest.php | 2 +- .../api/query/ApiQueryDisabledTest.php | 2 +- .../api/query/ApiQueryImageInfoTest.php | 2 +- .../includes/api/query/ApiQueryInfoTest.php | 2 +- .../api/query/ApiQueryLanguageinfoTest.php | 2 +- .../api/query/ApiQueryLogEventsTest.php | 2 +- .../api/query/ApiQueryPrefixSearchTest.php | 2 +- .../ApiQueryRecentChangesIntegrationTest.php | 2 +- .../api/query/ApiQueryRevisionsTest.php | 2 +- .../includes/api/query/ApiQuerySearchTest.php | 2 +- .../api/query/ApiQuerySiteinfoTest.php | 2 +- .../includes/api/query/ApiQueryTest.php | 2 +- .../includes/api/query/ApiQueryTokensTest.php | 2 +- .../api/query/ApiQueryUserContribsTest.php | 2 +- .../api/query/ApiQueryUserInfoTest.php | 4 +- .../ApiQueryWatchlistIntegrationTest.php | 2 +- .../ApiQueryWatchlistRawIntegrationTest.php | 2 +- .../includes/cache/BacklinkCacheTest.php | 10 +- .../includes/cache/GenderCacheTest.php | 6 +- .../phpunit/includes/cache/LinkBatchTest.php | 22 +- .../phpunit/includes/cache/LinkCacheTest.php | 54 ++-- .../changes/CategoryMembershipChangeTest.php | 2 +- .../changes/EnhancedChangesListTest.php | 2 +- .../includes/changes/OldChangesListTest.php | 2 +- .../changes/RCCacheEntryFactoryTest.php | 2 +- .../includes/changes/RecentChangeTest.php | 66 ++--- .../includes/changetags/ChangeTagsTest.php | 4 +- .../includes/collation/CollationTest.php | 32 +-- .../CustomUppercaseCollationTest.php | 2 +- .../collation/RemoteIcuCollationTest.php | 2 +- .../composer/MediaWikiVersionFetcherTest.php | 2 +- .../includes/content/ContentHandlerTest.php | 44 ++-- .../content/ContentModelChangeTest.php | 18 +- .../content/CssContentHandlerTest.php | 2 +- .../includes/content/CssContentTest.php | 8 +- .../content/FallbackContentHandlerTest.php | 4 +- .../includes/content/FallbackContentTest.php | 34 +-- .../content/JavaScriptContentHandlerTest.php | 2 +- .../content/JavaScriptContentTest.php | 12 +- .../JsonContentHandlerIntegrationTest.php | 4 +- .../includes/content/MessageContentTest.php | 2 +- .../TextContentHandlerIntegrationTest.php | 2 +- .../includes/content/TextContentTest.php | 36 +-- .../Transform/ContentTransformerTest.php | 4 +- .../WikitextContentHandlerIntegrationTest.php | 6 +- .../content/WikitextContentHandlerTest.php | 10 +- .../includes/content/WikitextContentTest.php | 18 +- .../content/WikitextStructureTest.php | 2 +- .../includes/debug/DeprecationHelperTest.php | 2 +- tests/phpunit/includes/debug/MWDebugTest.php | 2 +- .../includes/deferred/LinksUpdateTest.php | 26 +- .../RefreshSecondaryDataUpdateTest.php | 2 +- .../includes/deferred/SiteStatsUpdateTest.php | 4 +- .../DifferenceEngineSlotDiffRendererTest.php | 2 +- .../includes/diff/DifferenceEngineTest.php | 2 +- .../includes/diff/SlotDiffRendererTest.php | 2 +- .../diff/TextSlotDiffRendererTest.php | 2 +- .../editpage/EditPageConstraintsTest.php | 2 +- .../includes/editpage/EditPageTest.php | 24 +- .../includes/exception/BadTitleErrorTest.php | 2 +- .../includes/exception/MWExceptionTest.php | 6 +- .../exception/PermissionsErrorTest.php | 2 +- .../includes/exception/ReadOnlyErrorTest.php | 2 +- .../includes/exception/ThrottledErrorTest.php | 2 +- .../exception/UserBlockedErrorTest.php | 2 +- .../exception/UserNotLoggedInTest.php | 2 +- tests/phpunit/includes/export/ExportTest.php | 4 +- .../externalstore/ExternalStoreAccessTest.php | 10 +- .../ExternalStoreFactoryTest.php | 14 +- .../externalstore/ExternalStoreTest.php | 4 +- .../FileBackendGroupIntegrationTest.php | 2 +- .../FileBackendIntegrationTest.php | 64 ++--- .../filebackend/SwiftFileBackendTest.php | 8 +- .../LockManagerGroupIntegrationTest.php | 2 +- .../filerepo/FileBackendDBRepoWrapperTest.php | 4 +- .../includes/filerepo/FileRepoTest.php | 2 +- .../includes/filerepo/LocalRepoTest.php | 4 +- .../filerepo/MigrateFileRepoLayoutTest.php | 2 +- .../includes/filerepo/RepoGroupTest.php | 2 +- .../includes/filerepo/StoreBatchTest.php | 2 +- .../includes/filerepo/file/FileTest.php | 18 +- .../includes/filerepo/file/LocalFileTest.php | 54 ++-- .../HTMLAutoCompleteSelectFieldTest.php | 2 +- .../includes/htmlform/HTMLFormFieldTest.php | 16 +- .../includes/htmlform/HTMLFormTest.php | 2 +- .../includes/http/GuzzleHttpRequestTest.php | 4 +- .../includes/http/MWHttpRequestTest.php | 4 +- .../includes/import/ImportExportTest.php | 4 +- .../includes/import/ImportFailureTest.php | 2 +- .../import/ImportLinkCacheIntegrationTest.php | 4 +- tests/phpunit/includes/import/ImportTest.php | 8 +- .../ImportableOldRevisionImporterTest.php | 2 +- .../interwiki/ClassicInterwikiLookupTest.php | 2 +- .../includes/interwiki/InterwikiTest.php | 2 +- .../includes/jobqueue/JobFactoryTest.php | 2 +- .../includes/jobqueue/JobQueueMemoryTest.php | 2 +- .../includes/jobqueue/JobQueueTest.php | 2 +- .../includes/jobqueue/JobRunnerTest.php | 2 +- tests/phpunit/includes/jobqueue/JobTest.php | 2 +- .../jobqueue/RefreshLinksPartitionTest.php | 2 +- .../jobs/CategoryMembershipChangeJobTest.php | 2 +- .../jobs/ClearUserWatchlistJobTest.php | 2 +- .../jobs/ParsoidCachePrewarmJobTest.php | 8 +- .../jobqueue/jobs/RefreshLinksJobTest.php | 2 +- .../jobs/UserEditCountInitJobTest.php | 2 +- .../includes/language/ConverterRuleTest.php | 2 +- .../language/LanguageConverterFactoryTest.php | 2 +- .../LanguageConverterIntegrationTest.php | 2 +- .../language/LanguageConverterTest.php | 28 +-- .../LanguageFallbackIntegrationTest.php | 2 +- .../language/LanguageIntegrationTest.php | 80 +++--- .../language/LocalisationCacheTest.php | 2 +- .../includes/language/MessageCacheTest.php | 2 +- .../phpunit/includes/language/MessageTest.php | 12 +- .../includes/language/TimeAdjustTest.php | 2 +- .../language/converters/BanConverterTest.php | 10 +- .../language/converters/CrhConverterTest.php | 8 +- .../language/converters/GanConverterTest.php | 4 +- .../language/converters/IuConverterTest.php | 4 +- .../language/converters/KuConverterTest.php | 4 +- .../LanguageConverterConversionTest.php | 2 +- .../language/converters/ShConverterTest.php | 6 +- .../language/converters/ShiConverterTest.php | 4 +- .../language/converters/SrConverterTest.php | 16 +- .../language/converters/TgConverterTest.php | 4 +- .../language/converters/TlyConverterTest.php | 6 +- .../language/converters/UzConverterTest.php | 6 +- .../language/converters/WuuConverterTest.php | 4 +- .../language/converters/ZhConverterTest.php | 4 +- .../includes/languages/LanguageAmTest.php | 4 +- .../includes/languages/LanguageArTest.php | 14 +- .../includes/languages/LanguageArqTest.php | 2 +- .../includes/languages/LanguageBeTest.php | 4 +- .../languages/LanguageBe_taraskTest.php | 14 +- .../includes/languages/LanguageBhoTest.php | 4 +- .../includes/languages/LanguageBsTest.php | 6 +- .../includes/languages/LanguageCsTest.php | 4 +- .../includes/languages/LanguageCuTest.php | 6 +- .../includes/languages/LanguageCyTest.php | 4 +- .../includes/languages/LanguageDsbTest.php | 6 +- .../includes/languages/LanguageFrTest.php | 4 +- .../includes/languages/LanguageGaTest.php | 6 +- .../includes/languages/LanguageGdTest.php | 4 +- .../includes/languages/LanguageGvTest.php | 4 +- .../includes/languages/LanguageHeTest.php | 10 +- .../includes/languages/LanguageHiTest.php | 4 +- .../includes/languages/LanguageHrTest.php | 4 +- .../includes/languages/LanguageHsbTest.php | 6 +- .../includes/languages/LanguageHuTest.php | 6 +- .../includes/languages/LanguageHyTest.php | 6 +- .../includes/languages/LanguageKaTest.php | 2 +- .../includes/languages/LanguageKkTest.php | 2 +- .../includes/languages/LanguageKshTest.php | 6 +- .../includes/languages/LanguageLnTest.php | 4 +- .../includes/languages/LanguageLtTest.php | 6 +- .../includes/languages/LanguageLvTest.php | 4 +- .../includes/languages/LanguageMgTest.php | 4 +- .../includes/languages/LanguageMkTest.php | 4 +- .../includes/languages/LanguageMlTest.php | 8 +- .../includes/languages/LanguageMoTest.php | 4 +- .../includes/languages/LanguageMtTest.php | 6 +- .../includes/languages/LanguageNlTest.php | 2 +- .../includes/languages/LanguageNsoTest.php | 4 +- .../includes/languages/LanguagePlTest.php | 8 +- .../includes/languages/LanguageRoTest.php | 4 +- .../includes/languages/LanguageRuTest.php | 10 +- .../includes/languages/LanguageSeTest.php | 6 +- .../includes/languages/LanguageSgsTest.php | 6 +- .../includes/languages/LanguageShTest.php | 4 +- .../includes/languages/LanguageSkTest.php | 4 +- .../includes/languages/LanguageSlTest.php | 6 +- .../includes/languages/LanguageSmaTest.php | 6 +- .../includes/languages/LanguageSrTest.php | 6 +- .../includes/languages/LanguageTiTest.php | 4 +- .../includes/languages/LanguageTlTest.php | 4 +- .../includes/languages/LanguageTrTest.php | 6 +- .../includes/languages/LanguageTyvTest.php | 2 +- .../includes/languages/LanguageUkTest.php | 10 +- .../includes/languages/LanguageWaTest.php | 10 +- .../includes/languages/LanguageZhTest.php | 2 +- .../libs/http/MultiHttpClientTest.php | 2 +- .../libs/objectcache/APCUBagOStuffTest.php | 2 +- .../libs/objectcache/BagOStuffTestBase.php | 4 +- .../HashBagOStuffIntegrationTest.php | 2 +- .../MemcachedPeclBagOStuffIntegrationTest.php | 2 +- .../MemcachedPhpBagOStuffIntegrationTest.php | 2 +- .../objectcache/MultiWriteBagOStuffTest.php | 2 +- .../RESTBagOStuffIntegrationTest.php | 2 +- .../RedisBagOStuffIntegrationTest.php | 2 +- .../WinCacheBagOStuffIntegrationTest.php | 2 +- .../linkeddata/PageDataRequestHandlerTest.php | 2 +- .../includes/linker/LinkRendererTest.php | 2 +- .../includes/linker/LinkTargetStoreTest.php | 2 +- tests/phpunit/includes/linker/LinkerTest.php | 26 +- .../logging/BlockLogFormatterTest.php | 2 +- .../logging/ContentModelLogFormatterTest.php | 2 +- .../includes/logging/DatabaseLogEntryTest.php | 6 +- .../logging/DeleteLogFormatterTest.php | 2 +- .../logging/ImportLogFormatterTest.php | 2 +- .../includes/logging/LogFormatterTest.php | 80 +++--- .../logging/MergeLogFormatterTest.php | 2 +- .../includes/logging/MoveLogFormatterTest.php | 2 +- .../logging/NewUsersLogFormatterTest.php | 2 +- .../logging/PageLangLogFormatterTest.php | 2 +- .../logging/PatrolLogFormatterTest.php | 2 +- .../logging/ProtectLogFormatterTest.php | 4 +- .../logging/RightsLogFormatterTest.php | 2 +- .../logging/UploadLogFormatterTest.php | 2 +- .../includes/mail/EmailNotificationTest.php | 2 +- .../phpunit/includes/mail/MailAddressTest.php | 10 +- .../media/BitmapMetadataHandlerTest.php | 18 +- .../includes/media/BitmapScalingTest.php | 8 +- .../phpunit/includes/media/BmpHandlerTest.php | 8 +- tests/phpunit/includes/media/DjVuTest.php | 2 +- .../phpunit/includes/media/ExifBitmapTest.php | 2 +- .../includes/media/ExifRotationTest.php | 2 +- tests/phpunit/includes/media/ExifTest.php | 2 +- .../includes/media/FormatMetadataTest.php | 8 +- .../phpunit/includes/media/GIFHandlerTest.php | 14 +- .../includes/media/Jpeg2000HandlerTest.php | 2 +- .../media/JpegMetadataExtractorTest.php | 2 +- .../includes/media/JpegPixelFormatTest.php | 2 +- tests/phpunit/includes/media/JpegTest.php | 6 +- .../media/MediaHandlerIntegrationTest.php | 4 +- .../phpunit/includes/media/PNGHandlerTest.php | 14 +- .../media/PNGMetadataExtractorTest.php | 2 +- .../phpunit/includes/media/SVGReaderTest.php | 2 +- .../phpunit/includes/media/SvgHandlerTest.php | 10 +- tests/phpunit/includes/media/TiffTest.php | 4 +- .../includes/media/WebPHandlerTest.php | 2 +- .../phpunit/includes/media/XCFHandlerTest.php | 4 +- .../includes/objectcache/ObjectCacheTest.php | 2 +- .../SqlBagOStuffIntegrationTest.php | 2 +- ...qlBagOStuffMultiPrimaryIntegrationTest.php | 2 +- .../SqlBagOStuffServerArrayTest.php | 2 +- .../includes/page/ArticleTablesTest.php | 4 +- tests/phpunit/includes/page/ArticleTest.php | 12 +- .../phpunit/includes/page/ArticleViewTest.php | 8 +- .../includes/page/ImagePage404Test.php | 2 +- tests/phpunit/includes/page/ImagePageTest.php | 4 +- .../includes/page/MergeHistoryTest.php | 16 +- tests/phpunit/includes/page/MovePageTest.php | 18 +- .../phpunit/includes/page/PageArchiveTest.php | 12 +- .../includes/page/WikiCategoryPageTest.php | 8 +- .../includes/page/WikiFilePageTest.php | 2 +- .../phpunit/includes/page/WikiPageDbTest.php | 4 +- .../phpunit/includes/parser/CacheTimeTest.php | 2 +- .../parser/CoreParserFunctionsTest.php | 2 +- .../includes/parser/ExtraParserTest.php | 28 +-- .../parser/LinkHolderArrayIntegrationTest.php | 6 +- .../includes/parser/MagicVariableTest.php | 2 +- .../parser/PageBundleJsonTraitTest.php | 2 +- .../includes/parser/ParserCacheTest.php | 86 +++---- .../includes/parser/ParserMethodsTest.php | 6 +- .../includes/parser/ParserOptionsTest.php | 2 +- .../includes/parser/ParserOutputTest.php | 2 +- .../includes/parser/ParserPreloadTest.php | 26 +- tests/phpunit/includes/parser/ParserTest.php | 16 +- .../includes/parser/PreprocessorTest.php | 24 +- .../includes/parser/StripStateTest.php | 2 +- .../phpunit/includes/parser/TagHooksTest.php | 28 +-- .../password/UserPasswordPolicyTest.php | 2 +- .../DefaultPreferencesFactoryTest.php | 2 +- .../preferences/SignatureValidatorTest.php | 8 +- .../includes/rcfeed/RCFeedIntegrationTest.php | 10 +- .../ExtensionRegistrationTest.php | 2 +- .../ParserOutputSearchDataExtractorTest.php | 2 +- .../includes/search/PrefixSearchTest.php | 12 +- .../search/SearchEnginePrefixTest.php | 8 +- .../includes/search/SearchEngineTest.php | 8 +- .../includes/search/SearchHighlighterTest.php | 2 +- .../search/SearchNearMatchResultSetTest.php | 4 +- .../includes/search/SearchResultSetTest.php | 18 +- .../includes/search/SearchResultTraitTest.php | 8 +- .../BotPasswordSessionProviderTest.php | 2 +- ...ImmutableSessionProviderWithCookieTest.php | 2 +- .../session/PHPSessionHandlerTest.php | 2 +- .../includes/session/SessionBackendTest.php | 2 +- .../includes/session/SessionInfoTest.php | 2 +- .../includes/session/SessionManagerTest.php | 2 +- .../includes/session/SessionProviderTest.php | 2 +- tests/phpunit/includes/skins/SideBarTest.php | 4 +- .../includes/skins/SkinMustacheTest.php | 12 +- .../includes/skins/SkinTemplateTest.php | 4 +- tests/phpunit/includes/skins/SkinTest.php | 4 +- .../title/MediaWikiTitleCodecTest.php | 6 +- .../includes/title/NamespaceInfoTest.php | 6 +- .../includes/title/TemplateCategoriesTest.php | 2 +- tests/phpunit/includes/title/TitleTest.php | 236 +++++++++--------- tests/phpunit/includes/title/TitleUrlTest.php | 12 +- .../includes/upload/UploadBaseTest.php | 14 +- .../includes/upload/UploadFromUrlTest.php | 2 +- .../includes/upload/UploadStashTest.php | 2 +- .../includes/user/ActorMigrationTest.php | 4 +- tests/phpunit/includes/user/UserTest.php | 4 +- .../includes/utils/BatchRowUpdateTest.php | 6 +- .../includes/utils/FileContentsHasherTest.php | 2 +- .../includes/utils/MWCryptHKDFTest.php | 4 +- .../includes/utils/ZipDirectoryReaderTest.php | 2 +- ...WatchedItemQueryServiceIntegrationTest.php | 2 +- .../WatchedItemStoreIntegrationTest.php | 2 +- .../watcheditem/WatchedItemStoreUnitTest.php | 2 +- tests/phpunit/includes/xml/XmlTest.php | 2 +- .../Html/TemplateParserIntegrationTest.php | 6 +- .../includes/MediaWikiEntryPointTest.php | 2 +- .../Rest/Handler/ParsoidHandlerTest.php | 4 +- .../includes/Storage/UndoIntegrationTest.php | 6 +- .../includes/block/BlockUserTest.php | 14 +- .../cache/HtmlCacheUpdaterIntegrationTest.php | 4 +- .../context/DerivativeContextTest.php | 2 +- .../includes/context/RequestContextTest.php | 22 +- .../includes/db/DatabasePostgresTest.php | 8 +- ...eEngineSlotDiffRendererIntegrationTest.php | 2 +- .../filerepo/LocalAndForeignDBRepoTest.php | 8 +- .../htmlform/HTMLRestrictionsFieldTest.php | 2 +- .../htmlform/HTMLTitleTextFieldTest.php | 2 +- .../htmlform/HTMLUserTextFieldTest.php | 2 +- .../includes/http/HttpRequestFactoryTest.php | 2 +- .../includes/logging/LogPageTest.php | 2 +- .../Parsoid/LanguageVariantConverterTest.php | 2 +- .../integration/includes/parser/TidyTest.php | 2 +- .../PoolCounterConnectionManagerTest.php | 2 +- .../revisionlist/RevisionListTest.php | 8 +- .../SearchSuggestionSetIntegrationTest.php | 2 +- .../user/Options/DefaultOptionsLookupTest.php | 10 +- .../Options/UserOptionsLookupTestBase.php | 38 +-- .../user/Options/UserOptionsManagerTest.php | 22 +- .../includes/utils/MWFilePropsTest.php | 2 +- .../maintenance/BackupDumperLoggerTest.php | 2 +- .../maintenance/BackupDumperPageTest.php | 2 +- tests/phpunit/maintenance/BaseDumpTest.php | 2 +- .../phpunit/maintenance/CategoriesRdfTest.php | 2 +- .../maintenance/CategoryChangesAsRdfTest.php | 2 +- .../maintenance/DeleteAutoPatrolLogsTest.php | 2 +- .../maintenance/DeleteUserEmailTest.php | 2 +- tests/phpunit/maintenance/FetchTextTest.php | 2 +- tests/phpunit/maintenance/MaintenanceTest.php | 6 +- .../maintenance/PopulateUserIsTempTest.php | 2 +- .../TextPassDumperDatabaseTest.php | 4 +- .../phpunit/suites/ParserIntegrationTest.php | 22 +- ...ediaWikiIntegrationTestCaseSchema1Test.php | 2 +- ...ediaWikiIntegrationTestCaseSchema2Test.php | 2 +- .../MediaWikiIntegrationTestCaseTest.php | 82 +++--- tests/phpunit/tests/MockHttpTraitTest.php | 2 +- .../Html/FormOptionsInitializationTest.php | 4 +- .../unit/includes/Html/FormOptionsTest.php | 4 +- .../unit/includes/Html/ListToggleTest.php | 6 +- .../Request/DerivativeRequestTest.php | 2 +- .../includes/Request/FauxResponseTest.php | 14 +- .../unit/includes/Request/PathRouterTest.php | 2 +- .../ResourceLoader/VueComponentParserTest.php | 2 +- .../StubObject/DeprecatedGlobalTest.php | 2 +- .../includes/WikiMap/WikiReferenceTest.php | 2 +- .../unit/includes/actions/ActionInfoTest.php | 2 +- .../includes/api/ApiModuleManagerTest.php | 16 +- .../includes/api/ApiWatchlistTraitTest.php | 2 +- .../unit/includes/block/BlockUtilsTest.php | 2 +- .../cache/BacklinkCacheFactoryTest.php | 2 +- .../includes/cache/CacheKeyHelperTest.php | 2 +- .../includes/cache/HtmlCacheUpdaterTest.php | 2 +- .../ChangesListBooleanFilterGroupTest.php | 2 +- .../changes/ChangesListBooleanFilterTest.php | 2 +- .../changes/ChangesListFilterGroupTest.php | 2 +- .../changes/ChangesListFilterTest.php | 2 +- ...hangesListStringOptionsFilterGroupTest.php | 2 +- .../content/FileContentHandlerTest.php | 2 +- .../content/JsonContentHandlerTest.php | 2 +- .../content/TextContentHandlerTest.php | 6 +- .../content/WikitextContentHandlerTest.php | 2 +- .../unit/includes/db/MWLBFactoryTest.php | 4 +- .../diff/UnsupportedSlotDiffRendererTest.php | 2 +- .../includes/editpage/IEditObjectTest.php | 2 +- .../unit/includes/exception/HttpErrorTest.php | 2 +- .../exception/MWExceptionHandlerTest.php | 2 +- .../filebackend/FileBackendGroupTest.php | 2 +- .../filebackend/HTTPFileStreamerTest.php | 2 +- .../LockManagerGroupFactoryTest.php | 2 +- .../lockmanager/LockManagerGroupTest.php | 2 +- .../filerepo/file/ForeignDBFileTest.php | 4 +- .../historyblob/DiffHistoryBlobTest.php | 2 +- .../historyblob/HistoryBlobUtilsTest.php | 2 +- .../includes/htmlform/HTMLCheckMatrixTest.php | 2 +- .../import/WikiImporterFactoryTest.php | 2 +- .../interwiki/InterwikiLookupAdapterTest.php | 2 +- .../jobqueue/JobSpecificationTest.php | 10 +- .../unit/includes/json/FormatJsonTest.php | 12 +- .../language/FormatterFactoryTest.php | 2 +- .../language/LCStoreStaticArrayTest.php | 2 +- .../includes/language/LanguageCodeTest.php | 14 +- .../language/LanguageFallbackTest.php | 2 +- .../language/LanguageFallbackTestTrait.php | 12 +- .../language/LanguageNameUtilsTestTrait.php | 80 +++--- .../unit/includes/language/LanguageTest.php | 2 +- .../language/LocalisationCacheTest.php | 2 +- .../unit/includes/libs/ArrayUtilsTest.php | 2 +- .../phpunit/unit/includes/libs/CookieTest.php | 4 +- .../unit/includes/libs/DeflateTest.php | 2 +- .../includes/libs/DnsSrvDiscovererTest.php | 2 +- .../unit/includes/libs/HashRingTest.php | 2 +- .../unit/includes/libs/HtmlArmorTest.php | 2 +- .../unit/includes/libs/MWCryptHashTest.php | 2 +- .../unit/includes/libs/MapCacheLRUTest.php | 2 +- .../includes/libs/MemoizedCallableTest.php | 2 +- .../ParamValidator/ParamValidatorTest.php | 2 +- .../ParamValidator/SimpleCallbacksTest.php | 2 +- .../ParamValidator/TypeDef/EnumDefTest.php | 2 +- .../ParamValidator/TypeDef/FloatDefTest.php | 2 +- .../ParamValidator/TypeDef/IntegerDefTest.php | 4 +- .../ParamValidator/TypeDef/LimitDefTest.php | 2 +- .../TypeDef/PasswordDefTest.php | 2 +- .../TypeDef/PresenceBooleanDefTest.php | 2 +- .../ParamValidator/TypeDef/StringDefTest.php | 2 +- .../TypeDef/TimestampDefTest.php | 2 +- .../ParamValidator/TypeDef/UploadDefTest.php | 2 +- .../libs/ParamValidator/TypeDefTest.php | 2 +- .../Util/UploadedFileStreamTest.php | 2 +- .../ParamValidator/Util/UploadedFileTest.php | 2 +- .../libs/SamplingStatsdClientTest.php | 2 +- .../Stats/BufferingStatsdDataFactoryTest.php | 2 +- .../PrefixingStatsdDataFactoryProxyTest.php | 2 +- .../phpunit/unit/includes/libs/TimingTest.php | 2 +- .../unit/includes/libs/XhprofDataTest.php | 2 +- .../unit/includes/libs/XmlTypeCheckTest.php | 2 +- .../libs/composer/ComposerJsonTest.php | 6 +- .../libs/composer/ComposerLockTest.php | 4 +- .../libs/filebackend/FileBackendTest.php | 2 +- .../fsfile/TempFSFileTestTrait.php | 6 +- .../libs/http/HttpAcceptNegotiatorTest.php | 2 +- .../libs/http/HttpAcceptParserTest.php | 2 +- .../libs/mime/MSCompoundFileReaderTest.php | 2 +- .../includes/libs/mime/MimeAnalyzerTest.php | 2 +- .../libs/objectcache/CachedBagOStuffTest.php | 2 +- .../libs/objectcache/HashBagOStuffTest.php | 6 +- .../objectcache/ReplicatedBagOStuffTest.php | 2 +- .../libs/objectcache/WANObjectCacheTest.php | 2 +- .../libs/rdbms/DatabaseFactoryTest.php | 2 +- .../includes/libs/rdbms/ReadOnlyModeTest.php | 4 +- ...SessionConsistentConnectionManagerTest.php | 2 +- .../libs/rdbms/database/DBConnRefTest.php | 2 +- .../rdbms/database/DatabaseDomainTest.php | 2 +- .../libs/rdbms/database/DatabaseSQLTest.php | 6 +- .../libs/rdbms/database/DatabaseTest.php | 6 +- .../libs/rdbms/platform/SQLPlatformTest.php | 4 +- .../rdbms/platform/SqlitePlatformTest.php | 2 +- .../linker/LinkRendererFactoryTest.php | 2 +- .../includes/linker/LinksMigrationTest.php | 2 +- .../unit/includes/mail/UserMailerTest.php | 2 +- .../media/GIFMetadataExtractorTest.php | 2 +- .../phpunit/unit/includes/media/IPTCTest.php | 4 +- .../unit/includes/media/MediaHandlerTest.php | 2 +- .../media/TrivialMediaHandlerStateTest.php | 2 +- .../objectcache/MemcachedBagOStuffTest.php | 2 +- .../objectcache/RESTBagOStuffTest.php | 2 +- .../objectcache/RedisBagOStuffTest.php | 2 +- .../includes/objectcache/SqlBagOStuffTest.php | 2 +- .../unit/includes/page/MovePageTest.php | 12 +- .../includes/page/PageIdentityValueTest.php | 2 +- .../includes/page/PageReferenceValueTest.php | 2 +- .../includes/parser/LinkHolderArrayTest.php | 10 +- .../includes/parser/ParserFactoryTest.php | 2 +- .../LanguageVariantConverterUnitTest.php | 2 +- .../PageBundleParserOutputConverterTest.php | 2 +- .../password/AbstractPbkdf2PasswordTest.php | 2 +- .../includes/password/Argon2PasswordTest.php | 6 +- .../includes/password/BcryptPasswordTest.php | 8 +- .../password/EncryptedPasswordTest.php | 6 +- .../LayeredParameterizedPasswordTest.php | 6 +- .../includes/password/MWOldPasswordTest.php | 6 +- .../password/MWSaltedPasswordTest.php | 6 +- .../includes/password/PasswordFactoryTest.php | 2 +- .../unit/includes/password/PasswordTest.php | 2 +- .../includes/password/PasswordTestCase.php | 2 +- .../Pbkdf2PasswordUsingHashExtensionTest.php | 4 +- .../Pbkdf2PasswordUsingOpenSSLTest.php | 4 +- .../unit/includes/preferences/FiltersTest.php | 10 +- .../unit/includes/rcfeed/RCFeedTest.php | 2 +- .../ExtensionJsonValidatorTest.php | 2 +- .../registration/ExtensionProcessorTest.php | 2 +- .../registration/ExtensionRegistryTest.php | 2 +- .../registration/VersionCheckerTest.php | 2 +- .../revisionlist/RevisionItemBaseTest.php | 2 +- .../revisionlist/RevisionListBaseTest.php | 2 +- .../search/FauxSearchResultSetTest.php | 2 +- .../includes/search/FauxSearchResultTest.php | 2 +- .../includes/search/SearchIndexFieldTest.php | 2 +- .../search/SearchSuggestionSetTest.php | 14 +- .../session/MetadataMergeExceptionTest.php | 2 +- .../unit/includes/session/SessionIdTest.php | 2 +- .../includes/shell/CommandFactoryTest.php | 2 +- .../shell/ShellboxClientFactoryTest.php | 2 +- .../site/MediaWikiPageNameNormalizerTest.php | 2 +- .../unit/includes/skins/SkinFactoryTest.php | 2 +- .../specials/formfields/LicensesTest.php | 2 +- .../unit/includes/tidy/RemexDriverTest.php | 8 +- .../title/TitleArrayFromResultTest.php | 12 +- .../phpunit/unit/includes/title/TitleTest.php | 32 +-- .../unit/includes/user/UserNameUtilsTest.php | 16 +- .../includes/utils/ClassCollectorTest.php | 2 +- .../includes/utils/MWRestrictionsTest.php | 26 +- .../NoWriteWatchedItemStoreUnitTest.php | 2 +- .../WatchedItemQueryServiceUnitTest.php | 2 +- .../watcheditem/WatchedItemUnitTest.php | 2 +- .../unit/includes/xml/XmlSelectTest.php | 16 +- tests/phpunit/unit/includes/xml/XmlTest.php | 4 +- .../unit/maintenance/MWDoxygenFilterTest.php | 2 +- .../maintenance/PopulateUserIsTempTest.php | 2 +- tests/phpunit/unit/tests/MockDatabaseTest.php | 2 +- 578 files changed, 1853 insertions(+), 1853 deletions(-) diff --git a/tests/phpunit/includes/AutoLoaderTest.php b/tests/phpunit/includes/AutoLoaderTest.php index ae7e203d254..41a119946ec 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 f54008425c3..cad07b0abd0 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 5d515c5f6e4..6f36689a79e 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 49de9cdeedb..4c832c1f172 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 574d1438000..04c25f5b6a7 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 82a9e11febc..55a35984fb5 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 908ffa18010..ab13e307116 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 8a83c408b47..ac353e27682 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 fb04f7d2b3d..d7baa9a809e 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 9eb60f6bba6..473e6424b57 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 b211705830e..f1f7533add6 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 6438060587f..61df4e2531f 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 ab07bd99b0b..a126c84235b 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 946db28edb3..8711b44b89f 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 c25e0a88ee2..a7871562f6d 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 80d71ce95d1..1804b450b21 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 5ff0590f4ad..82589c7088d 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 72f9f579373..cdd52fa44be 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 56eab99d62b..afa46120143 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 69e0920507e..e4bbc9c406a 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 5b69c0f64ab..55392577e93 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 dbba3612b59..72d29653fd5 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 f2056529523..a1e1f5b6da1 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 e82b15b5a03..51485e15e19 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 b8464738a8c..73aa11b57b4 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 b5a7028b4b9..5dc4bbbe7f4 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 1fce12d3fe6..0b7702dbd07 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 f1d95d03d65..da90f56df5c 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 d8f6759b90d..fb2a2d371da 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 64979198b94..c645642d23e 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 31decabb76a..3f6e882170c 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 68ebf905e78..ed955786a81 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 13dd278260a..3c943cdbdeb 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 aaa55575999..99e83f59497 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 300929d1e6d..ebce8f2f196 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 88bd4461786..75abd600f34 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 4cc62d538d5..3211ab8a266 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 c5a38e9e0fd..5523e9afa4d 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 6195d4744f4..67d646db3ce 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 1ba4427ac8c..83355dd8825 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 61ab6f7b7fc..494c5ded7fc 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 4d65fb328eb..67de632b1d2 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 9a99ac6b14a..eed6e6f8ed2 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 fd5378aba5e..2df9355c11d 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 2c8bcb4ee7a..9c900f7b494 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 d6fdebed409..55fc76c813d 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 3ab42316e81..e65e8f0a31c 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 62f15d72073..cf55a75f2b2 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 d0811081860..b126f376b29 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 2fa2ff5c639..f28eacb962c 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 340f0c2c8bf..d1b8fadd3d1 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 7ade3def88a..0cf282faa27 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 f3730212337..182324f87cd 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 8487bbb1c4c..a3dbc596878 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 0e6e6d6aca3..8333f3acb17 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 bb9454c13c0..fad33b8fa52 100644 --- a/tests/phpunit/includes/api/ApiUsageExceptionTest.php +++ b/tests/phpunit/includes/api/ApiUsageExceptionTest.php @@ -1,7 +1,7 @@ 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 508d80d00ba..d12115608d9 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 f205770f6c2..65b3f5bf74c 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 09c1a855389..68bba5e6b06 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 d0b0e9c8d3f..3d3562b511f 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 a7b53f28372..e3811626680 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 051b1fd330c..144998ee33f 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 9ed6b2fcb0a..6d17ee5d093 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 874f0a0c6fe..aa5dfd6fd05 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 2c5b39d4e98..6058c326930 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 5eecb15c70e..34ee4b63deb 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 3ff21132fac..5428153294f 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 e75a8153183..7f4d86eaf7b 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 2f3320620ae..b28b8d6d822 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 aef7ef09ad0..287f9098aa9 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 6263cee2cf0..c2556269b10 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 ba024a0b864..d2c3b2d7240 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 fd88414480a..c9636b47ddb 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 692bcb86906..88d5a8183e9 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 cb5265dc469..d3343942546 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 e8d4231087b..109e368d47a 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 4399b21f950..c33b5bcde9c 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 9b91214e172..64aff22243b 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 94cd88eac8d..bb32ba24707 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 8d13f4b3a6f..25148db4771 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 eca9ce9af24..f2b0e1a68fc 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 3abcf1cc071..ce04550f760 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 7f1f948bdd8..a6f9118cab3 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 76fc56c9cce..b14f6c9ab8f 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 2dba1b2166c..1b445fbaae0 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 53ee9128cbf..5eec758392e 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 847719517d6..0923030fef7 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 92aae4fb6f0..79e5481f9bf 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 c808762acff..a586f5f13f4 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 99149abfe9d..b063f59511a 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 8aa0984011f..ada8a7b5d13 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 c76f9f96ff9..156558cf28d 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 1f90d696a43..0e6fc35e9fb 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 3da093d9310..cb75a0e92cd 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 490ece22930..cad736e2ad7 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 04fdf75ce16..a1885b939e2 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 600143c6783..ccc7fa76c0b 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 a38a8f9a245..f7efc356dcc 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 c848bbe1f2e..75e382c99cc 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 b5b40da2bdf..b10cdfce320 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 e0a4999c35f..734d45e4534 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 6f853f11c01..7c770dbf6b3 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 59bc1a05e62..b7459920ee2 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 2f0f34f61bd..3e71b6997d1 100644 --- a/tests/phpunit/includes/exception/UserNotLoggedInTest.php +++ b/tests/phpunit/includes/exception/UserNotLoggedInTest.php @@ -1,7 +1,7 @@ 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 d0a6b16c7fa..b00dc48fad1 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 9111d71f6da..bd58b6f3189 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 001ccb05c37..13d7c57b1e8 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 5a985258330..bc90bccda3f 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 612d8f37929..c292a8dd0c9 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 b373fd36bcf..8baf6bce3f4 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 6eec15c4e4b..1ffad97759e 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 652c7cf53cf..1aee776c5ed 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 e5e9823844f..b9a60df1be6 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 74bdfed14e3..f4667256ec0 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 070a636b0bf..14fe32b3e8b 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 81b8eff68d2..2a4be946716 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 2945341128f..b913e5bb5d2 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 5b8dc77c937..e0798526ba3 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 f95c62d7f9e..1d44b5443dd 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 32bf11885cc..4777bfe03ea 100644 --- a/tests/phpunit/includes/htmlform/HTMLAutoCompleteSelectFieldTest.php +++ b/tests/phpunit/includes/htmlform/HTMLAutoCompleteSelectFieldTest.php @@ -1,6 +1,6 @@ assertSame( $expect, MWHttpRequest::isValidURI( $uri ), $message ); diff --git a/tests/phpunit/includes/import/ImportExportTest.php b/tests/phpunit/includes/import/ImportExportTest.php index d334aaaab91..6297a5211cc 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 f909441b1f6..1f3d4f5599d 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 f6cf58b6de5..44ddef87b63 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 b4da68957c3..f92f62d6e9d 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 1a52e4ced2c..e32b01f1251 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 cf0b28dd8e5..3bc16c0b526 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 03c5396b812..57fd82118d3 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 bb272af948b..56ef965e732 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 521c9ed9099..6786eb2e2e4 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 1e1678c5b0a..51951609c2f 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 ae106a2470f..18914f943e1 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 bc1a4d1cb53..2607a30410b 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 c85ee7e2f72..c7fb9d77bef 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 9da80aab41b..a99259953fd 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 95051731313..c0e613a9b5d 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 ce935172a0f..63f936cac55 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 02d85bbeee4..9e2c584ca9c 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 b08cca5b103..32f579492cf 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 b65508d367a..af5b05a9d43 100644 --- a/tests/phpunit/includes/language/ConverterRuleTest.php +++ b/tests/phpunit/includes/language/ConverterRuleTest.php @@ -1,7 +1,7 @@ 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 70781219b24..695f10951af 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 3cc551baa7b..2694d349059 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 b0f7c294255..83970e463ff 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 ea2d36f2218..d8f44c27b5d 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 06204365be1..066e864fe9b 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 7bf8e51c2fc..9bbd617d174 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 4cc6f0a62c5..db7fab4f6a7 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 2424e5eebc2..c3d7d9833f3 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 " " 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 48c60e7853d..9e77c3eafcc 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 7a0f44dd30e..522be8fdabd 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 6b45424eef0..e157132216a 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 4910063b0c1..3dce9415a48 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 969651673ff..33bd6c2449c 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 ee0ddbd8969..823417c1d44 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 c6c6ba90318..80d83a39b07 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 a2da5c94d61..1c3811682b4 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 97f8d2bf979..24e6815fe01 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 0e5be6e7413..c64b11a503a 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 03718fdefbc..de35035642b 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 8024e7ef1c6..d41fcd0c88e 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 989b38386cb..5408a52a4f3 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 b0d45fa1058..8863b18d92b 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 d32ff4fecc4..87774d8092c 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 501117e6988..d2e3b9a6bf6 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 dc8f37d6c23..c4d9556f36c 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 8a611c7a9d3..9e75be2dcc5 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 ecbfaed527e..b792e9c6efa 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 23a21189a26..491bae69789 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 7e5bf995f35..1f4b6ff662f 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 2ffdc991e42..3fab89abb3b 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 bf920bc307b..af78fcf8878 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 99d68e72074..00e226ab50f 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 d65098c3fef..872076a0c90 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 d22ba4cc05b..abbf0acd81e 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 0efbbac4f6f..1f0527a3a86 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 d762291e445..55923a75818 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 13b7fa1dbaf..543b41e34e7 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 0634d4f3d7d..1ec8de69353 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 fa17316cb0e..5729064ebf0 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 45fd7afb007..fbf9d748fd2 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 020fc219aba..5145370a174 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 a151e33edec..3a7e5dd8fe3 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 ac68c7e181c..d2718d3d1bf 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 5cae22d8d48..3dd9db52cc1 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 182d92e9498..46a4ec2f18a 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 d36183cbb5f..ea46be43770 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 af91a1a9af9..0d290a8cdae 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 48b72617064..c7f460ee4b8 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 0cec25b6468..aa64b650d1e 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 69b0fcdc233..97c26fbd568 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 4d75a7f5de8..b6febc062c0 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 ae83b7eaeec..ca5c4867651 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 1decc7dd8e6..a656c3e62e3 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 8a54f34d158..7ac1ee6bc4c 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 abe307a7225..33cffc3f27e 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 60a9a5c7948..dd44c2994f8 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 ea277f6760f..6b3fc6da15b 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 008210726e7..dc8d0fdae08 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 11f79e5c2a5..d457f288008 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 ef89738c4ed..72aa6ac8ca0 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 5b956c600c3..92bb4d4e211 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 f5c89238eea..2052f0f82dc 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 f1a4b15c355..241883eb5e9 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 d5994e635de..50987fba122 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 4ee1dd8e47f..17b3113d81c 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 fcb2be6e714..5a4bed64209 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 59a73cb287a..717647b5016 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 f98ea29bd20..bd7c592af89 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 59f02718d16..094d8ca2aed 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 a472eeef9e2..508152d5cce 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 815890d82d9..d97bacf608c 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 110ade44865..86a860ade4e 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 1c1e66f55b1..150c77a6609 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 72ff5fec321..7f0ab2e7f2e 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 * @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 9c546d26544..64141be1138 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 ee6ea649bcb..bb64753b102 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 60cbef5d480..5ad94ad9564 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 1b6c264289e..15b7e6551c9 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 d5f654738be..ff5ffba13cd 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 07447cc3181..80e3acf94ef 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 477ef47ec1a..8d4ee9d5445 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 622085ac05b..9d723369d11 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 74607ff092f..f4ce8fc95bc 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 262689e4d61..3f8de603ed2 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 a4fa69eaa8a..762d3387669 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 6250506b9f9..0d74dba021b 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 17e5411504a..bb30f9ee337 100644 --- a/tests/phpunit/includes/logging/ContentModelLogFormatterTest.php +++ b/tests/phpunit/includes/logging/ContentModelLogFormatterTest.php @@ -1,7 +1,7 @@ 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 45b3f72d912..694efb7268e 100644 --- a/tests/phpunit/includes/logging/MergeLogFormatterTest.php +++ b/tests/phpunit/includes/logging/MergeLogFormatterTest.php @@ -1,7 +1,7 @@ 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 ed09ea236b1..46e688eb3f9 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 5337ec8a18f..86ba6ad3bce 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 c9d93e493cc..a5c40d32073 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 ed62681a14a..0390edee82e 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 bf0d0b263ee..94bea31ca9b 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 e4a7bda0a68..0181e0b80ea 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 9dea1b1b8c5..eb8b710116c 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 0549f4353e4..56ee77a6a0e 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 5d29d76ae28..4c790847c56 100644 --- a/tests/phpunit/includes/media/Jpeg2000HandlerTest.php +++ b/tests/phpunit/includes/media/Jpeg2000HandlerTest.php @@ -1,7 +1,7 @@ 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 274d0b86bcc..7fb331baa66 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 2d30c539644..6e6b20b9526 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 59505e935f0..57f0c7786a9 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 991740baee0..86a755de4c2 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 78b4359cf47..0390a805b91 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 dff46ed76ff..30512ff4509 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 6bb63d6d127..e692df4e4d0 100644 --- a/tests/phpunit/includes/media/WebPHandlerTest.php +++ b/tests/phpunit/includes/media/WebPHandlerTest.php @@ -1,7 +1,7 @@ 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 eea4861a876..29dcdb48cf2 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 5f71c113553..b560304e313 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 455c93211d9..972567fb782 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 4aca6dc47c0..21b6ea66733 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 2a5288f0372..adc065198de 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 9d3a8dc5375..e1e47f25118 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 925094b790b..5f7fefb2905 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 ac77314c021..46610bb338a 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 40bebbdded6..76f1e9d63f0 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 1e7c00f5729..21be0525ac9 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 c068c6790f1..ce5494bb21b 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 f38c38cb02f..65f443e930f 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 4c81b1a95f8..4dee15e288c 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 bb80a6e3e41..e7b2d331594 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 3af355d6901..f234fdb4226 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 af87ff32696..755408411c1 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 053f8a95ac2..aceebb46297 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 958c7e497d2..b49c1c6ede1 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 e6bf34afaab..4344ae3b685 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 f772a24847e..17c182cd0c4 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 55b9d88a01b..bcf85e5a57f 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 74a99027aab..b5939052f48 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 af44496dd85..663251ba7b5 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 5ef58b55e0f..3f8ead9ef46 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 5b179dabd8f..d5f747cc37d 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 b5e9e7df5c2..81fef9e7ed3 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 1bbd8410d93..9de78d0f206 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 d08011ce2b0..fd5dbc4f1bc 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 671f525e342..2c34900b533 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 c33e15a09c5..9a97e593504 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 9eec3252777..36e395c1ebd 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 99c05e8eded..9db4e1f35d5 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 1a113477ea7..bc011d7ccef 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 1f8ead109dd..1e89d2176e3 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 ba3f0eb0fa3..a46be60ed75 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 a479a50c42d..2a419179a67 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 002d453aa99..7ce1556639a 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 dea2883c002..1ca0a6c72ca 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 efc5ef009ea..48dd9f3a948 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 + * @covers \SearchEngine * @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 d5c535eac33..b43e6cf2786 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 23301b74dfd..2881678ae40 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 76d1ea2b6a7..371d1c10e05 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 f870542025e..339d0187591 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 44b46445544..9831fa5a903 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 fe3fb1c77b7..e7abbba1505 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 39a2a28f141..0a63bd870f9 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 411881f8737..f9b63c6c476 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 04067ad5580..85b76dd8f8f 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 4cbe0e69be6..29c43e3846f 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 446fd2277cb..da650573254 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 ac2413bf356..e92997588f7 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 9b8fadaf067..f5d879d38e1 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 f53e2206feb..acee7827ac7 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 8ec0f6976ca..752aa94e402 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 3edbd3d09f2..ca73fd98f71 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 be9b411db60..be3aad2f4a0 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 4d0dbceee0d..ea5dccabe52 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 37d754b610d..88233ad71d5 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 0e483e3eeaf..cb0bd612735 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 393a4f31e66..fba56adf081 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 ba4617f0204..da1aa7003c5 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 33a5afc571c..4ff5cb44492 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 a571b6eed3b..63d1d8bb7a0 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 3a1057903ce..15668cff2c4 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 7cd99b21509..dfe7b15cf09 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 38d52e690b3..33e047fb3c8 100644 --- a/tests/phpunit/includes/utils/FileContentsHasherTest.php +++ b/tests/phpunit/includes/utils/FileContentsHasherTest.php @@ -1,7 +1,7 @@ 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 1b310a7c3b5..3e5e2bf3dee 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 f7d9571cb8c..20e3fdc8a48 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 631c3669c0d..2ee387fc5d7 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 59cd3128dde..27110dfd03a 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 2f8d9ea28d4..6ab61895491 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 cb582712b97..f1538f90ae5 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 4dda81cf519..71b68ae4809 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 5c14ab7a402..624164a4692 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 7db3b7e40f7..76dfd023528 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 7058df27825..7a30f9533d2 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 6b37cedb3b0..ef6058257aa 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 8de4893c27f..dcad4634f8c 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 29c693ec571..b54d1d94e4a 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 189703b52e5..872b94d9fe0 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 9713ade111c..551dd29279e 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 89aef220398..3d31fa03ca4 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 f12ed9d7c23..644ee904489 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 62db561425a..894257624f5 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 de389a7511a..3c3e979dd66 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 4d6afdad32b..57f799d979c 100644 --- a/tests/phpunit/integration/includes/utils/MWFilePropsTest.php +++ b/tests/phpunit/integration/includes/utils/MWFilePropsTest.php @@ -1,7 +1,7 @@ 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 44197814927..fe5a7374bb9 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 52286989c63..7d5dd28f623 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 94f28bded0e..0120039d329 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 bd201b9b435..48e50d9ff68 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 2c93fcc975f..9e813937aeb 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 13c6db2dec4..431b1534456 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 16113ad3725..7fe9887dedc 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 2a2d822057d..78dee3a7aeb 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 e8918f67c35..bade4b8a1da 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 69194d87305..29a4a6d6bc2 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 7c233141d2d..d74120fd7c3 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 088d65adf29..8a520a343b4 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 5628c5c9457..729004963ed 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 ecaf8d29fe3..6130d5b3846 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 d4a5809bea5..8b54cdc11f2 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 024372e2d82..2813ce01bfb 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 c5f15862aae..de8f4afd8ef 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 78ff076ca6c..060e1bf5ca5 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 fd7821d3253..297e03eab74 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 fcc4220f786..deabdc4d51f 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 d5eb6a4987d..69377d8ab12 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 51be82ba804..0bf42cf266b 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 c792a4d60e2..d3e18acc26d 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 be39e3a2c69..1852b47317b 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 79a4506f409..59e01203532 100644 --- a/tests/phpunit/unit/includes/changes/ChangesListBooleanFilterTest.php +++ b/tests/phpunit/unit/includes/changes/ChangesListBooleanFilterTest.php @@ -1,7 +1,7 @@ newWikitextContentHandler(); diff --git a/tests/phpunit/unit/includes/db/MWLBFactoryTest.php b/tests/phpunit/unit/includes/db/MWLBFactoryTest.php index 4cde0ca645e..0c55218f056 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 34ed2012bd5..b4ad8f6b994 100644 --- a/tests/phpunit/unit/includes/diff/UnsupportedSlotDiffRendererTest.php +++ b/tests/phpunit/unit/includes/diff/UnsupportedSlotDiffRendererTest.php @@ -1,7 +1,7 @@ '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 9fab60700fa..e21db4c2eec 100644 --- a/tests/phpunit/unit/includes/json/FormatJsonTest.php +++ b/tests/phpunit/unit/includes/json/FormatJsonTest.php @@ -1,7 +1,7 @@ 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 4d37668d0df..200ec980f3d 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 54022e28b17..a7d67ada8e4 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 9de5e9f2df9..4dd1b979c4d 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 50a485e1969..0e93ab49c13 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 a4fe6075503..a56761275e4 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 f20a6ba8700..43c6da25c11 100644 --- a/tests/phpunit/unit/includes/libs/ArrayUtilsTest.php +++ b/tests/phpunit/unit/includes/libs/ArrayUtilsTest.php @@ -1,6 +1,6 @@ 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 29a585c5aad..dc538afc051 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 bc3851601e7..d3e3dc4f019 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 e4e6073f37e..26c8b35346a 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 ca93c45d040..483f91dff08 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 92c27cc74b5..b8874f3581d 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 43ac505fd68..14b34748643 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 5466263c18f..84c34fded5b 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 a2ee49a6833..ff1febf921d 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 61fa4f22ca8..3accc30cd74 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 43a04ac747c..231742d3215 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 02ec95ce64a..a620dfb5c0a 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 5401463a2c9..5dcbbe5512a 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 bfb9b66b988..c746493de33 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 cca923a7fab..7d6537ba79a 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 10e989a9b0b..1823f0b2974 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 add1ab6f3e8..45f78b6555d 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 bb5ceb908c0..008edf05aaa 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 7a86f0cff4a..5ad96ab7caa 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 28a7e24b22e..f58835d455c 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 91db38d8a01..3c21a0dfdd1 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 f42894c8515..7bc0e0055e1 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 d74cb90b8b3..fecbc86edca 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 fb5d7594ffd..ff21f67fb97 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 41b0b49208c..186f647c466 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 b4abbd5d2b2..3f8fe107b84 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 eb4ece88c4f..5dd8fe2f182 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 7acafbee0c5..d7ea9609ad5 100644 --- a/tests/phpunit/unit/includes/media/TrivialMediaHandlerStateTest.php +++ b/tests/phpunit/unit/includes/media/TrivialMediaHandlerStateTest.php @@ -1,7 +1,7 @@ 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 f1d7b88eac7..c78f432ff32 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 01366c0ae26..c2a2aa268c3 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 6f5b28d4fcb..c38fdc219a5 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 5875b2b1a35..86dcd5c65e9 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 a0c8b703043..8bc0d410afe 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 045759cd4ba..423635033d3 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 e77b1bae605..62fd98e2cdf 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 28e3b96a88d..5808f3c0e67 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 40290a536a3..0a2bae86697 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 d0c9b27e693..3c1bc77f463 100644 --- a/tests/phpunit/unit/includes/password/EncryptedPasswordTest.php +++ b/tests/phpunit/unit/includes/password/EncryptedPasswordTest.php @@ -1,9 +1,9 @@ passwordFactory->newFromCiphertext( null ); diff --git a/tests/phpunit/unit/includes/password/Pbkdf2PasswordUsingHashExtensionTest.php b/tests/phpunit/unit/includes/password/Pbkdf2PasswordUsingHashExtensionTest.php index 08d47f230b3..162055f6368 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 4a60c63af83..f71a5e00b30 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 972001eb785..914f648d5d6 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 d94dd4e2a26..f8ce239d878 100644 --- a/tests/phpunit/unit/includes/rcfeed/RCFeedTest.php +++ b/tests/phpunit/unit/includes/rcfeed/RCFeedTest.php @@ -1,7 +1,7 @@ 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 59ad69db0b1..7b674bd6075 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 8f9a416be76..1dc062abb56 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 29433748d24..6f5288691c4 100644 --- a/tests/phpunit/unit/includes/utils/ClassCollectorTest.php +++ b/tests/phpunit/unit/includes/utils/ClassCollectorTest.php @@ -1,7 +1,7 @@ assertNull( @@ -47,7 +47,7 @@ class XmlTest extends MediaWikiUnitTestCase { } /** - * @covers Xml::escapeTagsOnly + * @covers \Xml::escapeTagsOnly */ public function testEscapeTagsOnly() { $this->assertEquals( '"><', Xml::escapeTagsOnly( '"><' ), diff --git a/tests/phpunit/unit/maintenance/MWDoxygenFilterTest.php b/tests/phpunit/unit/maintenance/MWDoxygenFilterTest.php index b6e78e3817a..2327b9ee774 100644 --- a/tests/phpunit/unit/maintenance/MWDoxygenFilterTest.php +++ b/tests/phpunit/unit/maintenance/MWDoxygenFilterTest.php @@ -1,7 +1,7 @@