3 class JsonTest
extends MediaWikiTestCase
{
5 function testPhpBug46944Test() {
6 $this->assertNotEquals(
8 strtolower( FormatJson
::encode( "\xf0\xa0\x80\x80" ) ),
9 'Test encoding an broken json_encode character (U+20000)'
14 function testDecodeVarTypes() {
15 $this->assertInternalType(
17 FormatJson
::decode( '{"Name": "Cheeso", "Rank": 7}' ),
21 $this->assertInternalType(
23 FormatJson
::decode( '{"Name": "Cheeso", "Rank": 7}', true ),