public function testTransferHeaders() { $curl = new Curl(); $curl->setMethod('GET'); $curl->setOption(CURLOPT_URL, 'https://httpbin.org/get?foo=23&bar=42'); $response = $curl->execute(); $curl->getTransferHeaders($response); $this->assertTrue($response->hasHeader('Transfer-Duration')); $this->assertTrue($response->hasHeader('Transfer-Upload')); $this->assertTrue($response->hasHeader('Transfer-Download')); }