\RESTParserTest
Synopsis
class RESTParserTest
extends SapphireTest
{
- // members
- public static string $json_body = '{ "$type": "RESTParserTest_Result", "Foo": 1, "Bar": "Zam" }';
- public static string $json_typeless_body = '{ "Foo": 1, "Bar": "Zam" }';
- public static string $xml_attrstyle_body = '<?xml version="1.0"?> <RESTParserTest_Result Foo="1" Bar="Zam" /> ';
- public static string $xml_elemstyle_body = '<?xml version="1.0"?> <RESTParserTest_Result> <Foo>1</Foo> <Bar>Zam</Bar> </RESTParserTest_Result> ';
- // methods
- protected void genRequest()
- public void testParserSelectionFromMimeType()
- public void testParserSelectionFromBody()
- public void testParse()
- public void testJSONTypeMismatch()
Hierarchy
Extends
- SapphireTest
Members
public
- $json_body
- $json_typeless_body
- $xml_attrstyle_body
- $xml_elemstyle_body