<?php $expectedHeader = array_map(function (string $value, string $key): string {
return $key . '=' . urlencode($value);
}, $expected, array_keys($expected));
$this->assertEquals(implode('; ', $expectedHeader), $this->event->getHeaders()['cookie'][0] ?? '');
}