public function testWithoutHeader() { $response = new Response([], ['foo' => 'bar', 'baz' => 'qux']); $newResponse = $response->withoutHeader('baz'); $this->assertNotSame($response, $newResponse); $this->assertEquals(['foo' => 'bar'], $newResponse->getHeaders()); }