array_intersect_key
brefphp/bref
Supported Versions: PHP 5 >= 5.1.0, PHP 7, PHP 8
Computes the intersection of arrays using keys for comparison
array_intersect_key
(array
$array
, array ...
$arrays
): array
];
$overriddenKeys
=
array_intersect_key
(
$expectedGlobalVariables
[
'$_SERVER'
],
$expectedCommonVariables
);
$expectedCommonVariables
=
array_merge
(
$expectedCommonVariables
,
$overriddenKeys
);
self
::
assertArraySubset
(
$expectedCommonVariables
,
$response
[
'$_SERVER'
]);
tests/Handler/FpmHandlerTest.php