Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ResponseHeaderSame.php

function ResponseHeaderSame::matches

Parameters

Response $response:

Overrides Constraint::matches

File

vendor/symfony/http-foundation/Test/Constraint/ResponseHeaderSame.php, line 33

Class

ResponseHeaderSame

Namespace

Symfony\Component\HttpFoundation\Test\Constraint

Code

protected function matches($response) : bool {
    return $this->expectedValue === $response->headers
        ->get($this->headerName, null);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal