public function WebAssert::responseHeaderNotEquals in Zircon Profile 8
Same name and namespace in other branches
- 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
File
- vendor/
behat/ mink/ src/ WebAssert.php, line 172
Class
- WebAssert
- Mink web assertions tool.
Namespace
Behat\MinkCode
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);
}