diff options
Diffstat (limited to 'tests/phpunit/unit/includes/json')
-rw-r--r-- | tests/phpunit/unit/includes/json/FormatJsonTest.php | 14 | ||||
-rw-r--r-- | tests/phpunit/unit/includes/json/JsonCodecTest.php | 2 |
2 files changed, 9 insertions, 7 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. diff --git a/tests/phpunit/unit/includes/json/JsonCodecTest.php b/tests/phpunit/unit/includes/json/JsonCodecTest.php index 0ee4df0662c8..21d00ea8768a 100644 --- a/tests/phpunit/unit/includes/json/JsonCodecTest.php +++ b/tests/phpunit/unit/includes/json/JsonCodecTest.php @@ -2,10 +2,10 @@ namespace MediaWiki\Tests\Json; -use FormatJson; use InvalidArgumentException; use JsonException; use JsonSerializable; +use MediaWiki\Json\FormatJson; use MediaWiki\Json\JsonCodec; use MediaWiki\Json\JsonConstants; use MediaWiki\Title\Title; |