function WebAssert::responseHeaderNotContains
Checks that current response header does not contain value.
Parameters
string $name:
string $value:
Return value
void
Throws
File
-
vendor/
behat/ mink/ src/ WebAssert.php, line 229
Class
- WebAssert
- Mink web assertions tool.
Namespace
Behat\MinkCode
public function responseHeaderNotContains(string $name, string $value) {
$actual = (string) $this->session
->getResponseHeader($name);
$message = sprintf('The text "%s" was found in the "%s" response header, but it should not.', $value, $name);
$this->assert(false === stripos($actual, $value), $message);
}