public function testResponseChangeHeaders() { $response = new Response('Body', 404); $this->assertEquals($response->getStatus()->getCode(), 404); $this->assertEquals($response->getBody(), 'Body'); $response->addHeader('Auth', 'author'); $this->assertEquals($response->getStatus()->getCode(), 404); $this->assertEquals($response->getHeaders(), array('Auth' => 'author')); $response->addHeader('Auth', 'author_change'); $this->assertEquals($response->getHeaders(), array('Auth' => 'author_change')); }