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)); }