public function testGetCookie() { $response = new Response(); $this->assertNull($response->getCookie('test_cookie')); $response = $response->withCookie('test_cookie'); $this->assertInstanceOf(Cookie::class, $response->getCookie('test_cookie')); }