From b35f956bca2c915fe486c1f49ad5f748f584f929 Mon Sep 17 00:00:00 2001 From: Fomafix Date: Tue, 19 Nov 2024 19:34:44 +0000 Subject: [PATCH] PHPUnit: Use FQCN with leading backslash in @covers annotation https://docs.phpunit.de/en/11.4/annotations.html#covers recommends: Please note that this annotation requires a fully-qualified class name (FQCN). To make this more obvious to the reader, it is recommended to use a leading backslash (even if this not required for the annotation to work correctly). Change-Id: I58d381d8a5b378d0086bdce0717f42e885ea5b87 --- tests/phpunit/integration/VectorHooksTest.php | 2 +- tests/phpunit/unit/Services/LanguageServiceTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/phpunit/integration/VectorHooksTest.php b/tests/phpunit/integration/VectorHooksTest.php index 3cb206056..b7a2d4fa1 100644 --- a/tests/phpunit/integration/VectorHooksTest.php +++ b/tests/phpunit/integration/VectorHooksTest.php @@ -312,7 +312,7 @@ class VectorHooksTest extends MediaWikiIntegrationTestCase { /** * @todo move into MediaWiki\Skins\Vector\FeatureManagement\Requirements\LimitedWidthContentRequirement * test in future. - * @covers MediaWiki\Skins\Vector\FeatureManagement\Requirements\LimitedWidthContentRequirement::isMet + * @covers \MediaWiki\Skins\Vector\FeatureManagement\Requirements\LimitedWidthContentRequirement::isMet * @dataProvider providerShouldDisableMaxWidth */ public function testShouldDisableMaxWidth( diff --git a/tests/phpunit/unit/Services/LanguageServiceTest.php b/tests/phpunit/unit/Services/LanguageServiceTest.php index ade06e1cc..483a7a36d 100644 --- a/tests/phpunit/unit/Services/LanguageServiceTest.php +++ b/tests/phpunit/unit/Services/LanguageServiceTest.php @@ -27,7 +27,7 @@ use MediaWikiUnitTestCase; /** * @group Vector * @group Services - * @covers \MediaWiki\Skins\Vector\Services\LanguageService + * @covers \MediaWiki\Skins\Vector\Services\LanguageService */ class LanguageServiceTest extends MediaWikiUnitTestCase {