3 class JsonTest
extends MediaWikiTestCase
{
5 function testPhpBug46944Test() {
7 $this->assertNotEquals(
9 strtolower( FormatJson
::encode( "\xf0\xa0\x80\x80" ) ),
10 'Test encoding an broken json_encode character (U+20000)'
16 function testDecodeVarTypes() {
18 $this->assertInternalType(
20 FormatJson
::decode( '{"Name": "Cheeso", "Rank": 7}' ),
24 $this->assertInternalType(
26 FormatJson
::decode( '{"Name": "Cheeso", "Rank": 7}', true ),