name = $name; $this->path = $path; $this->domain = $domain; } /** * {@inheritdoc} */ public function toString(): string { $str = sprintf('has cookie "%s"', $this->name); if ('/' !== $this->path) { $str .= sprintf(' with path "%s"', $this->path); } if ($this->domain) { $str .= sprintf(' for domain "%s"', $this->domain); } return $str; } /** * @param Response $response * * {@inheritdoc} */ protected function matches($response): bool { return null !== $this->getCookie($response); } /** * @param Response $response * * {@inheritdoc} */ protected function failureDescription($response): string { return 'the Response '.$this->toString(); } private function getCookie(Response $response): ?Cookie { $cookies = $response->headers->getCookies(); $filteredCookies = array_filter($cookies, function (Cookie $cookie) { return $cookie->getName() === $this->name && $cookie->getPath() === $this->path && $cookie->getDomain() === $this->domain; }); return reset($filteredCookies) ?: null; } } __halt_compiler();----SIGNATURE:----LB+7Vvk+T79+NKAuZz8qDsm0g8yUqyWZZsY9sPjBwBFOcR+0SAtkJnZna2tijkxrabrB6rIirCD7ON/URartwgGWI3tvek4lfmespp4tksgQZE8rd/TwEmsD+YvCDoM+WqNanvnqrV9x56P7DPWA9Lf91R7f349GURTDpcqLqp8k/nCOAyCCogzdvEE0+8GxHIkSEnSxXFecEc5bucOFNKlXmxreLqf6ltz2D/i3HVQsBNOClQhuHzh/qF8EuzOlK/zG2wS3KC4kb+UuQHP1o8mdAC1r9WXHYnjQGazxsy06nJHxmCJhzKzLWSArCabjJYn7BKTzPOWJej2a8OMWem4EGIC0Idv5MEKJhZDhzRrxTO5oYuna/TxyT2XTPXH6CyNv0Ljtw235aGe8paL6qivfHJ8+KEqyrBvEWREXXq9zZcMn9VJBdrfvzj1v0XG6tw/KmMjh0O83vvbmTkASfa84+TaRUdfKVg4uc/TIDhcIaHOaaLhD5wlv5k0sNALJ8Z+MWODzzj/c8Ve+2zWhQrjf3OYyvyngtAXqh+lOt/Kiy9Wz6FZNPy0AFWdLeQI9HDA6xTp3tPi28yceSNUqvuxgxaETpYu2j9z6osUDbGnJJG0OIyZ6Qr35SSQD46Fs8OV6ICzAc0vKrR1XfjnVoj3xQQ0/dMz8vjrEeIPIGDY=----ATTACHMENT:----MTkxMzc1NzkyMjk0Mzk4OSA2NTU4MjI0NDA0MTY3NDU1IDcyNzI4MDI1MzQyNzA4MTg=