Overview

Namespaces

  • Guzzle
    • Batch
      • Exception
    • Cache
    • Common
      • Exception
    • Http
      • Curl
      • Exception
      • Message
        • Header
      • 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
    • Tests
      • Batch
      • Cache
      • Common
        • Cache
        • Exception
      • Http
        • Curl
        • Exception
        • Message
          • Header
      • Inflection
      • Iterator
      • Log
      • Message
      • Mock
      • Parser
        • Cookie
        • Message
      • Parsers
        • UriTemplate
      • Plugin
        • Async
        • Backoff
        • Cache
        • Cookie
          • CookieJar
        • CurlAuth
        • ErrorResponse
        • History
        • Log
        • Md5
        • Mock
        • Oauth
        • Redirect
      • Service
        • Builder
        • Command
          • LocationVisitor
            • Request
            • Response
        • Description
        • Exception
        • Mock
          • Command
            • Sub
          • Model
        • Resource
      • Stream
  • None
  • Omnipay
    • Common
      • Exception
      • Message
    • Dummy
      • Message
    • VivaPayments
      • Message
  • PHP

Classes

  • AbstractMessageTest
  • EntityEnclosingRequestTest
  • HeaderComparison
  • HeaderTest
  • HttpRequestFactoryTest
  • PostFileTest
  • RequestTest
  • Overview
  • Namespace
  • Class
  • Tree

Class HeaderComparison

Class used to compare HTTP headers using a custom DSL

Namespace: Guzzle\Tests\Http\Message
Located at tests/Guzzle/Tests/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 of special headers
$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
Expected HTTP headers (allows wildcard values)
$actual
Actual HTTP header array
$ignore
Headers to ignore from the comparison
$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
Key to check
$array
Array to check

Returns

boolean
Omnipay Viva Payments Gateway Module API Documentation API documentation generated by ApiGen