public function testResponseHeaders() { $params = new MakeRequestOptions('http://www.example.com'); $params->setNoCache(true); $headers = array('Content-Type' => 'text/plain'); $this->response->setResponseHeaders($headers); $this->fetcher->enqueueResponse($this->response); $result = $this->makeRequest->fetch($this->context, $params); $response_headers = $result->getResponseHeaders(); $this->assertArrayHasKey('Content-Type', $response_headers); $this->assertEquals('text/plain', $response_headers['Content-Type']); }