diff options
author | Fomafix <fomafix@googlemail.com> | 2024-11-19 06:57:29 +0000 |
---|---|---|
committer | Fomafix <fomafix@googlemail.com> | 2024-11-19 07:01:18 +0000 |
commit | 1205872d771e14c94d422a8af731ea19b3b2f285 (patch) | |
tree | 1e84056a0e6ee310d25bfd6105f2eb69a25af005 /tests/phpunit/includes/api/ApiMessageTest.php | |
parent | b5c9e2710d8e800bf9d0fb06018e180e8862073e (diff) | |
download | mediawikicore-1205872d771e14c94d422a8af731ea19b3b2f285.tar.gz mediawikicore-1205872d771e14c94d422a8af731ea19b3b2f285.zip |
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
Diffstat (limited to 'tests/phpunit/includes/api/ApiMessageTest.php')
-rw-r--r-- | tests/phpunit/includes/api/ApiMessageTest.php | 8 |
1 files changed, 4 insertions, 4 deletions
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' ] ); |