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
This commit is contained in:
Fomafix 2024-11-19 19:34:44 +00:00
parent 57efc86758
commit b35f956bca
2 changed files with 2 additions and 2 deletions

View file

@ -312,7 +312,7 @@ class VectorHooksTest extends MediaWikiIntegrationTestCase {
/** /**
* @todo move into MediaWiki\Skins\Vector\FeatureManagement\Requirements\LimitedWidthContentRequirement * @todo move into MediaWiki\Skins\Vector\FeatureManagement\Requirements\LimitedWidthContentRequirement
* test in future. * test in future.
* @covers MediaWiki\Skins\Vector\FeatureManagement\Requirements\LimitedWidthContentRequirement::isMet * @covers \MediaWiki\Skins\Vector\FeatureManagement\Requirements\LimitedWidthContentRequirement::isMet
* @dataProvider providerShouldDisableMaxWidth * @dataProvider providerShouldDisableMaxWidth
*/ */
public function testShouldDisableMaxWidth( public function testShouldDisableMaxWidth(

View file

@ -27,7 +27,7 @@ use MediaWikiUnitTestCase;
/** /**
* @group Vector * @group Vector
* @group Services * @group Services
* @covers \MediaWiki\Skins\Vector\Services\LanguageService * @covers \MediaWiki\Skins\Vector\Services\LanguageService
*/ */
class LanguageServiceTest extends MediaWikiUnitTestCase { class LanguageServiceTest extends MediaWikiUnitTestCase {