public printResponseError ( Scalr\Tests\Functional\Api\ApiTestResponse $response ) : string | ||
$response | Scalr\Tests\Functional\Api\ApiTestResponse | Response envelope |
return | string |
public function printResponseError(ApiTestResponse $response)
{
return implode(PHP_EOL, array_map(function ($entry) {
return "{$entry->code}:\t{$entry->message}";
}, empty($response->getBody()->errors) ? [] : $response->getBody()->errors));
}