diff options
author | Func <Funcer@outlook.com> | 2023-05-27 17:43:12 +0800 |
---|---|---|
committer | Func <Funcer@outlook.com> | 2023-05-27 17:43:12 +0800 |
commit | 4d1da6f7f81670879d089f8fcd0be3074c53fbef (patch) | |
tree | 9506851ee3d24805f1ea7d8fa98bddee86f20c5b /tests/phpunit/unit/includes/editpage | |
parent | 54df5533faa6dacae027fa3e6bc87fb9fac05234 (diff) | |
download | mediawikicore-4d1da6f7f81670879d089f8fcd0be3074c53fbef.tar.gz mediawikicore-4d1da6f7f81670879d089f8fcd0be3074c53fbef.zip |
phpunit: Update `@covers` annotations for namespaced classes
We renamed many classes to be namespaced, but the `@covers` and
`@coversDefaultClass` annotations weren't updated properly.
PHPUnit didn't support short cover annotations with `use` statements,
these didn't trigger any errors yet, because they are class alias.
This patch is populated by a modified version of PhpunitAnnotationsSniff.
Change-Id: I6c602290a30099239b17d2dc0d67b1488b4eaeeb
Diffstat (limited to 'tests/phpunit/unit/includes/editpage')
-rw-r--r-- | tests/phpunit/unit/includes/editpage/IEditObjectTest.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/phpunit/unit/includes/editpage/IEditObjectTest.php b/tests/phpunit/unit/includes/editpage/IEditObjectTest.php index 2082634f897e..e06e4d8ebf6f 100644 --- a/tests/phpunit/unit/includes/editpage/IEditObjectTest.php +++ b/tests/phpunit/unit/includes/editpage/IEditObjectTest.php @@ -4,7 +4,7 @@ use MediaWiki\EditPage\EditPage; use MediaWiki\EditPage\IEditObject; /** - * @covers EditPage + * @covers MediaWiki\EditPage\EditPage * * MediaWikiCoversValidator fails when trying to say that this covers an interface, * but this covers \MediaWiki\EditPage\IEditObject primarily |