getHeader() public method

Returns the value of the specified header.
public getHeader ( string $header ) : string
$header string Header name.
return string
 public function testnullIsReturnedWhenRequestingANonExistingHeader()
 {
     $response = new CurlClientResponse("HTTP/1.1 200 OK\r\nCache-Control: max-age=30\r\nCache-Control: s-maxage=50\r\n\r\n");
     $this->assertEquals(null, $response->getHeader('Host'));
 }