aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/unit/includes/json/FormatJsonTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/phpunit/unit/includes/json/FormatJsonTest.php')
-rw-r--r--tests/phpunit/unit/includes/json/FormatJsonTest.php14
1 files changed, 8 insertions, 6 deletions
diff --git a/tests/phpunit/unit/includes/json/FormatJsonTest.php b/tests/phpunit/unit/includes/json/FormatJsonTest.php
index f3320e619810..7fd7ec68cbcc 100644
--- a/tests/phpunit/unit/includes/json/FormatJsonTest.php
+++ b/tests/phpunit/unit/includes/json/FormatJsonTest.php
@@ -1,7 +1,9 @@
<?php
+use MediaWiki\Json\FormatJson;
+
/**
- * @covers \FormatJson
+ * @covers \MediaWiki\Json\FormatJson
*/
class FormatJsonTest extends MediaWikiUnitTestCase {
@@ -223,7 +225,7 @@ class FormatJsonTest extends MediaWikiUnitTestCase {
}
/**
- * @covers \FormatJson::stripComments
+ * @covers \MediaWiki\Json\FormatJson::stripComments
* @dataProvider provideStripComments
* @param string $json
* @param string $expect
@@ -241,8 +243,8 @@ class FormatJsonTest extends MediaWikiUnitTestCase {
}
/**
- * @covers \FormatJson::parse
- * @covers \FormatJson::stripComments
+ * @covers \MediaWiki\Json\FormatJson::parse
+ * @covers \MediaWiki\Json\FormatJson::stripComments
* @dataProvider provideParseStripComments
*/
public function testParseStripComments( $json, $expect ) {
@@ -336,8 +338,8 @@ class FormatJsonTest extends MediaWikiUnitTestCase {
}
/**
- * @covers \FormatJson::encode
- * @covers \FormatJson::decode
+ * @covers \MediaWiki\Json\FormatJson::encode
+ * @covers \MediaWiki\Json\FormatJson::decode
* @dataProvider provideEmptyJsonKeyStrings
*
* Decoding behavior with empty keys can be surprising.