function WebAssert::responseHeaderContains
Checks that current response header contains value.
Parameters
string $name:
string $value:
Return value
void
Throws
File
-
vendor/
behat/ mink/ src/ WebAssert.php, line 211
Class
- WebAssert
- Mink web assertions tool.
Namespace
Behat\MinkCode
public function responseHeaderContains(string $name, string $value) {
$actual = (string) $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);
}