From 1205872d771e14c94d422a8af731ea19b3b2f285 Mon Sep 17 00:00:00 2001 From: Fomafix Date: Tue, 19 Nov 2024 06:57:29 +0000 Subject: 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: I7eb4b997346387e5799fa27a61ab317573124fd0 --- tests/phpunit/includes/api/ApiMessageTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/phpunit/includes/api/ApiMessageTest.php') diff --git a/tests/phpunit/includes/api/ApiMessageTest.php b/tests/phpunit/includes/api/ApiMessageTest.php index 8a7a1a72d8b7..c54197921e00 100644 --- a/tests/phpunit/includes/api/ApiMessageTest.php +++ b/tests/phpunit/includes/api/ApiMessageTest.php @@ -34,7 +34,7 @@ class ApiMessageTest extends MediaWikiIntegrationTestCase { } /** - * @covers MediaWiki\Api\ApiMessageTrait + * @covers \MediaWiki\Api\ApiMessageTrait * @dataProvider provideCodeDefaults */ public function testCodeDefaults( $msg, $expectedCode ) { @@ -53,7 +53,7 @@ class ApiMessageTest extends MediaWikiIntegrationTestCase { } /** - * @covers MediaWiki\Api\ApiMessageTrait + * @covers \MediaWiki\Api\ApiMessageTrait * @dataProvider provideInvalidCode */ public function testInvalidCode( $code ) { @@ -85,7 +85,7 @@ class ApiMessageTest extends MediaWikiIntegrationTestCase { /** * @covers \MediaWiki\Api\ApiMessage - * @covers MediaWiki\Api\ApiMessageTrait + * @covers \MediaWiki\Api\ApiMessageTrait */ public function testApiMessage() { $msg = new Message( [ 'foo', 'bar' ], [ 'baz' ] ); @@ -127,7 +127,7 @@ class ApiMessageTest extends MediaWikiIntegrationTestCase { /** * @covers \MediaWiki\Api\ApiRawMessage - * @covers MediaWiki\Api\ApiMessageTrait + * @covers \MediaWiki\Api\ApiMessageTrait */ public function testApiRawMessage() { $msg = new RawMessage( 'foo', [ 'baz' ] ); -- cgit v1.2.3