aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/unit/includes/PathRouterTest.php
diff options
context:
space:
mode:
authorFunc <Funcer@outlook.com>2023-05-27 17:43:12 +0800
committerFunc <Funcer@outlook.com>2023-05-27 17:43:12 +0800
commit4d1da6f7f81670879d089f8fcd0be3074c53fbef (patch)
tree9506851ee3d24805f1ea7d8fa98bddee86f20c5b /tests/phpunit/unit/includes/PathRouterTest.php
parent54df5533faa6dacae027fa3e6bc87fb9fac05234 (diff)
downloadmediawikicore-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.php2
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 {