Overview

Namespaces

  • Contrib
    • Bundle
      • CoverallsBundle
        • Console
        • Entity
      • CoverallsV1Bundle
        • Api
        • Collector
        • Command
        • Config
        • Entity
          • Git
    • Component
      • File
      • Log
      • System
        • Git
  • Guzzle
    • Batch
      • Exception
    • Cache
    • Common
      • Exception
    • Http
      • Curl
      • Exception
      • Message
      • QueryAggregator
    • Inflection
    • Iterator
    • Log
    • Parser
      • Cookie
      • Message
      • UriTemplate
      • Url
    • Plugin
      • Async
      • Backoff
      • Cache
      • Cookie
        • CookieJar
        • Exception
      • CurlAuth
      • ErrorResponse
        • Exception
      • History
      • Log
      • Md5
      • Mock
      • Oauth
    • Service
      • Builder
      • Command
        • Factory
        • LocationVisitor
          • Request
          • Response
      • Description
      • Exception
      • Resource
    • Stream
  • PHP
  • Psr
    • Log
  • Symfony
    • Component
      • Config
        • Definition
          • Builder
          • Exception
        • Exception
        • Loader
        • Resource
        • Util
      • Console
        • Command
        • Formatter
        • Helper
        • Input
        • Output
        • Tester
      • EventDispatcher
        • Debug
      • Finder
        • Adapter
        • Comparator
        • Exception
        • Expression
        • Iterator
        • Shell
      • Stopwatch
      • Yaml
        • Exception

Classes

  • AbstractMessage
  • EntityEnclosingRequest
  • Header
  • HeaderComparison
  • PostFile
  • Request
  • RequestFactory
  • Response

Interfaces

  • EntityEnclosingRequestInterface
  • MessageInterface
  • PostFileInterface
  • RequestFactoryInterface
  • RequestInterface
  • Overview
  • Namespace
  • Class
  • Tree
  • Todo

Class HeaderComparison

Class used to compare HTTP headers using a custom DSL

Namespace: Guzzle\Http\Message
Located at Guzzle/Http/Message/HeaderComparison.php
Methods summary
public array|boolean
# compare( array $filteredHeaders, array $actualHeaders )

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

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

Parameters

$filteredHeaders
array
$filteredHeaders Array of special headers
$actualHeaders
array
$actualHeaders Array of headers to check against

Returns

array|boolean
Returns an array of the differences or FALSE if none
public array|boolean
# compareArray( array $expected, array|Guzzle\Common\Collection $actual, array $ignore = array(), array $absent = array() )

Check if an array of HTTP headers matches another array of HTTP headers while taking * into account as a wildcard

Check if an array of HTTP headers matches another array of HTTP headers while taking * into account as a wildcard

Parameters

$expected
array
$expected Expected HTTP headers (allows wildcard values)
$actual
array|Guzzle\Common\Collection
$actual Actual HTTP header array
$ignore
array
$ignore Headers to ignore from the comparison
$absent
array
$absent Array of headers that must not be present

Returns

array|boolean
Returns an array of the differences or FALSE if none
protected boolean
# hasKey( string $key, array $array )

Case insensitive check if an array have a key

Case insensitive check if an array have a key

Parameters

$key
string
$key Key to check
$array
array
$array Array to check

Returns

boolean
php-coveralls API documentation generated by ApiGen 2.8.0