MediaWiki  REL1_22
FormatJsonTest Class Reference
Inheritance diagram for FormatJsonTest:
Collaboration diagram for FormatJsonTest:

List of all members.

Public Member Functions

 testDecodeReturnType ()
 testEncodeAllOk ($from, $to)
 provideEncodeAllOk
 testEncodeDefault ($from, $to)
 provideEncodeDefault
 testEncodePhpBug46944 ()
 testEncoderPrettyPrinting ()
 testEncodeUtf8 ($from, $to)
 provideEncodeUtf8
 testEncodeXmlMeta ($from, $to)
 provideEncodeXmlMeta

Static Public Member Functions

static provideEncodeAllOk ()
static provideEncodeDefault ()
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.

Detailed Description

Definition at line 3 of file FormatJsonTest.php.


Member Function Documentation

static FormatJsonTest::getEncodeTestCases ( array unescapedGroups) [static, private]

Generate a set of test cases for a particular combination of encoder options.

Parameters:
array$unescapedGroupsList of character groups to leave unescaped
Returns:
array: Arrays of unencoded strings and corresponding encoded strings

Definition at line 113 of file FormatJsonTest.php.

References $name, array(), and as.

Referenced by provideEncodeAllOk(), provideEncodeDefault(), provideEncodeUtf8(), and provideEncodeXmlMeta().

Definition at line 74 of file FormatJsonTest.php.

References array(), and getEncodeTestCases().

Definition at line 41 of file FormatJsonTest.php.

References array(), and getEncodeTestCases().

static FormatJsonTest::provideEncodeUtf8 ( ) [static]

Definition at line 52 of file FormatJsonTest.php.

References array(), and getEncodeTestCases().

Definition at line 63 of file FormatJsonTest.php.

References array(), and getEncodeTestCases().

FormatJsonTest::testEncodeAllOk ( from,
to 
)

provideEncodeAllOk

Definition at line 81 of file FormatJsonTest.php.

References FormatJson\ALL_OK, and FormatJson\encode().

FormatJsonTest::testEncodeDefault ( from,
to 
)

provideEncodeDefault

Definition at line 48 of file FormatJsonTest.php.

References FormatJson\encode().

FormatJsonTest::testEncodeUtf8 ( from,
to 
)

provideEncodeUtf8

Definition at line 59 of file FormatJsonTest.php.

References FormatJson\encode(), and FormatJson\UTF8_OK.

FormatJsonTest::testEncodeXmlMeta ( from,
to 
)

provideEncodeXmlMeta

Definition at line 70 of file FormatJsonTest.php.

References FormatJson\encode(), and FormatJson\XMLMETA_OK.


The documentation for this class was generated from the following file: