引数のheaderとstatusを使用する
This commit is contained in:
parent
9bd6b23c05
commit
0522270c1c
@ -45,8 +45,8 @@ trait CreateMockedResolver
|
|||||||
foreach ($responses as $response) {
|
foreach ($responses as $response) {
|
||||||
if (is_array($response)) {
|
if (is_array($response)) {
|
||||||
$response += [
|
$response += [
|
||||||
1 => [],
|
1 => $headers,
|
||||||
2 => 200
|
2 => $status
|
||||||
];
|
];
|
||||||
array_push($mockResponses, new Response($response[2], $response[1], $response[0]));
|
array_push($mockResponses, new Response($response[2], $response[1], $response[0]));
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user