fix: fix broken test after wiremock-php/wiremock-php upgrade to v2.33
parent
4575406b33
commit
cea986c622
|
@ -25,7 +25,7 @@
|
|||
"league/openapi-psr7-validator": "^0.17",
|
||||
"phpunit/phpunit": "^8.5",
|
||||
"psy/psysh": "@stable",
|
||||
"wiremock-php/wiremock-php": "^2.32"
|
||||
"wiremock-php/wiremock-php": "^2.33"
|
||||
},
|
||||
"suggest": {
|
||||
"markstory/asset_compress": "An asset compression plugin which provides file concatenation and a flexible filter system for preprocessing and minification.",
|
||||
|
|
|
@ -76,7 +76,7 @@ trait WireMockTestTrait
|
|||
$headers = $stub->getRequest()->getHeaders();
|
||||
if (is_array($headers)) {
|
||||
foreach ($headers as $header => $rule) {
|
||||
$validator = $validator->withHeader($header, ValueMatchingStrategy::fromArray($rule));
|
||||
$validator = $validator->withHeader($header, $rule);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue