public functionresponseContains(string $text) {
$actual = $this->session
->getPage()
->getContent();
$message = sprintf('The string "%s" was not found anywhere in the HTML response of the current page.', $text);
$this->assert(stripos($actual, (string) $text) !== false, $message);
}