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/PathRouterTest.php | |
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/PathRouterTest.php')
-rw-r--r-- | tests/phpunit/unit/includes/PathRouterTest.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/phpunit/unit/includes/PathRouterTest.php b/tests/phpunit/unit/includes/PathRouterTest.php index 86a6d68fc28e..7190772f36d1 100644 --- a/tests/phpunit/unit/includes/PathRouterTest.php +++ b/tests/phpunit/unit/includes/PathRouterTest.php @@ -5,7 +5,7 @@ use MediaWiki\Request\PathRouter; /** * Tests for the MediaWiki\Request\PathRouter parsing. * - * @covers PathRouter + * @covers MediaWiki\Request\PathRouter */ class PathRouterTest extends MediaWikiUnitTestCase { |