public functionpageTextNotMatches(string $regex) {
$actual = $this->session
->getPage()
->getText();
$message = sprintf('The pattern %s was found in the text of the current page, but it should not.', $regex);
$this->assertResponseText(!preg_match($regex, $actual), $message);
}