/**
  * Compare HTTP headers and use special markup to filter values
  * A header prefixed with '!' means it must not exist
  * A header prefixed with '_' means it must be ignored
  * A header value of '*' means anything after the * will be ignored
  *
  * @param array $filteredHeaders Array of special headers
  * @param array $actualHeaders Array of headers to check against
  *
  * @return array|bool Returns an array of the differences or FALSE if none
  */
 public function compareHeaders($filteredHeaders, $actualHeaders)
 {
     $comparison = new HeaderComparison();
     return $comparison->compare($filteredHeaders, $actualHeaders);
 }
 /**
  * @dataProvider filterProvider
  */
 public function testComparesHeaders($filters, $headers, $result)
 {
     $compare = new HeaderComparison();
     $this->assertEquals($result, $compare->compare($filters, $headers));
 }