mirror of
https://github.com/retailcrm/mailgun-php.git
synced 2024-11-26 14:56:03 +03:00
Fixed standard class declaration in TestBroker
This commit is contained in:
parent
71c4ce388e
commit
8196384b4c
@ -97,6 +97,7 @@ class TestBroker extends HttpBroker{
|
|||||||
}
|
}
|
||||||
public function responseHandler($endpointUrl, $httpResponseCode = 200){
|
public function responseHandler($endpointUrl, $httpResponseCode = 200){
|
||||||
if($httpResponseCode === 200){
|
if($httpResponseCode === 200){
|
||||||
|
$result = new \stdClass();
|
||||||
$jsonResponseData = json_decode('{"message": "Some JSON Response Data"}');
|
$jsonResponseData = json_decode('{"message": "Some JSON Response Data"}');
|
||||||
foreach($jsonResponseData as $key => $value){
|
foreach($jsonResponseData as $key => $value){
|
||||||
$result->http_response_body->$key = $value;
|
$result->http_response_body->$key = $value;
|
||||||
|
Loading…
Reference in New Issue
Block a user