Exemplo n.º 1
0
 /**
  * retrieves the request body as a ResponseObject 
  *
  * returns ResponseObject
  */
 public function getDecodedBody()
 {
     return ResponseObjectBuilder::buildFromJSON($this->body);
 }
Exemplo n.º 2
0
 public function testResponse()
 {
     $response = (new ResponseObjectBuilder())->responseCode(12345)->errorCode('12345')->message('my message')->body('{"message":"text"}')->build();
     $this->assertEquals($response, ResponseObjectBuilder::buildFromJSON($response->getJSONString()));
 }