toHaveKey('post') ->not->toHaveKey('get') ->and($openApi['paths'][$path]['post']['responses']) ->toHaveKeys(['200', '400', '401', '404', '501']); } expect($openApi['paths'][$actionPaths[0]]['post']['responses']['200']['content']['application/json']['schema']['properties']) ->toHaveKey('message') ->and($openApi['paths'][$actionPaths[1]]['post']['responses']['200']['content']['application/json']['schema']['properties']) ->toHaveKey('message') ->and($openApi['paths'][$actionPaths[2]]['post']['responses']['200']['content']['application/json']['schema']['properties']) ->toHaveKey('message'); });