public function WebAssert::responseHeaderContains in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/behat/mink/src/WebAssert.php \Behat\Mink\WebAssert::responseHeaderContains()
Checks that current response header contains value.
Parameters
string $name:
string $value:
Throws
File
- vendor/
behat/ mink/ src/ WebAssert.php, line 188
Class
- WebAssert
- Mink web assertions tool.
Namespace
Behat\MinkCode
public function responseHeaderContains($name, $value) {
$actual = $this->session
->getResponseHeader($name);
$message = sprintf('The text "%s" was not found anywhere in the "%s" response header.', $value, $name);
$this
->assert(false !== stripos($actual, $value), $message);
}