public function testHeaderSettersAndGetters() { $response = new Response(); $headers = array('Content-Type' => 'application/xml', 'Location' => 'http://sonno.360i.com'); $response->setHeaders($headers); $this->assertEquals($response->getHeaders(), $headers); $this->assertEquals($response->getHeader('Content-Type'), $headers['Content-Type']); $this->assertEquals($response->getHeader('Location'), $headers['Location']); }