MediaWiki
REL1_23
|
Public Member Functions | |
testDecodeReturnType () | |
testEncodeAllOk ($from, $to) | |
provideEncodeAllOk | |
testEncodeDefault ($from, $to) | |
provideEncodeDefault | |
testEncodePhpBug46944 () | |
testEncoderPrettyPrinting ($pretty, $expectedIndent) | |
provideEncoderPrettyPrinting | |
testEncodeUtf8 ($from, $to) | |
provideEncodeUtf8 | |
testEncodeXmlMeta ($from, $to) | |
provideEncodeXmlMeta | |
Static Public Member Functions | |
static | provideEncodeAllOk () |
static | provideEncodeDefault () |
static | provideEncoderPrettyPrinting () |
static | provideEncodeUtf8 () |
static | provideEncodeXmlMeta () |
Static Private Member Functions | |
static | getEncodeTestCases (array $unescapedGroups) |
Generate a set of test cases for a particular combination of encoder options. |
Definition at line 6 of file FormatJsonTest.php.
static FormatJsonTest::getEncodeTestCases | ( | array $ | unescapedGroups | ) | [static, private] |
Generate a set of test cases for a particular combination of encoder options.
array | $unescapedGroups | List of character groups to leave unescaped |
Definition at line 132 of file FormatJsonTest.php.
References $name, array(), and as.
Referenced by provideEncodeAllOk(), provideEncodeDefault(), provideEncodeUtf8(), and provideEncodeXmlMeta().
static FormatJsonTest::provideEncodeAllOk | ( | ) | [static] |
Definition at line 93 of file FormatJsonTest.php.
References array(), and getEncodeTestCases().
static FormatJsonTest::provideEncodeDefault | ( | ) | [static] |
Definition at line 60 of file FormatJsonTest.php.
References array(), and getEncodeTestCases().
static FormatJsonTest::provideEncoderPrettyPrinting | ( | ) | [static] |
Definition at line 8 of file FormatJsonTest.php.
References array().
static FormatJsonTest::provideEncodeUtf8 | ( | ) | [static] |
Definition at line 71 of file FormatJsonTest.php.
References array(), and getEncodeTestCases().
static FormatJsonTest::provideEncodeXmlMeta | ( | ) | [static] |
Definition at line 82 of file FormatJsonTest.php.
References array(), and getEncodeTestCases().
Definition at line 112 of file FormatJsonTest.php.
References FormatJson\decode().
FormatJsonTest::testEncodeAllOk | ( | $ | from, |
$ | to | ||
) |
provideEncodeAllOk
Definition at line 100 of file FormatJsonTest.php.
References FormatJson\ALL_OK, and FormatJson\encode().
FormatJsonTest::testEncodeDefault | ( | $ | from, |
$ | to | ||
) |
provideEncodeDefault
Definition at line 67 of file FormatJsonTest.php.
References FormatJson\encode().
Definition at line 104 of file FormatJsonTest.php.
References FormatJson\encode().
FormatJsonTest::testEncoderPrettyPrinting | ( | $ | pretty, |
$ | expectedIndent | ||
) |
provideEncoderPrettyPrinting
Definition at line 23 of file FormatJsonTest.php.
References array(), and FormatJson\encode().
FormatJsonTest::testEncodeUtf8 | ( | $ | from, |
$ | to | ||
) |
provideEncodeUtf8
Definition at line 78 of file FormatJsonTest.php.
References FormatJson\encode(), and FormatJson\UTF8_OK.
FormatJsonTest::testEncodeXmlMeta | ( | $ | from, |
$ | to | ||
) |
provideEncodeXmlMeta
Definition at line 89 of file FormatJsonTest.php.
References FormatJson\encode(), and FormatJson\XMLMETA_OK.