You are here

public function WebAssert::responseHeaderEquals in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/behat/mink/src/WebAssert.php \Behat\Mink\WebAssert::responseHeaderEquals()

Checks that current response header equals value.

Parameters

string $name:

string $value:

Throws

ExpectationException

File

vendor/behat/mink/src/WebAssert.php, line 156

Class

WebAssert
Mink web assertions tool.

Namespace

Behat\Mink

Code

public function responseHeaderEquals($name, $value) {
  $actual = $this->session
    ->getResponseHeader($name);
  $message = sprintf('Current response header "%s" is "%s", but "%s" expected.', $name, $actual, $value);
  $this
    ->assert($value === $actual, $message);
}