You are here

public function WebAssert::responseHeaderNotEquals in Zircon Profile 8

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

Checks that current response header does not equal value.

Parameters

string $name:

string $value:

Throws

ExpectationException

File

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

Class

WebAssert
Mink web assertions tool.

Namespace

Behat\Mink

Code

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