public function testHasCookie() { $response = new Response(); $this->assertFalse($response->hasCookie('test_cookie')); $response = $response->withCookie('test_cookie'); $this->assertTrue($response->hasCookie('test_cookie')); }