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