Пример #1
0
 /**
  * SyncResponse constructor.
  * @param \stdClass $response
  * @throws ResponseParseException on creating response for notification
  */
 public function __construct(\stdClass $response)
 {
     $this->response = $response;
     /** @noinspection PhpInternalEntityUsedInspection */
     $validator = new ResponseBodyValidator();
     $validator->validate($this->response);
 }
 /**
  * @param \stdClass $body
  *
  * @dataProvider validResponseBodyProvider
  */
 public function testValidBody(\stdClass $body)
 {
     $parser = new ResponseBodyValidator();
     $parser->validate($body);
 }