/** * @test */ public function removeRemovesTheSpecifiedHeader() { $specifiedFields = array('X-Coffee' => 'Arabica', 'Host' => 'myhost.com'); $headers = new Headers($specifiedFields); $headers->remove('X-Coffee'); $headers->remove('X-This-Does-Not-Exist-Anyway'); $this->assertEquals(array('Host' => array('myhost.com')), $headers->getAll()); }