public functionresponseNotMatches(string $regex) {
$actual = $this->session
->getPage()
->getContent();
$message = sprintf('The pattern %s was found in the HTML response of the page, but it should not.', $regex);
$this->assert(!preg_match($regex, $actual), $message);
}