Will trigger a pass if the Perl regex pattern is found in the raw content.
$pattern: Perl regex to look for including the regex delimiters.
$message: Message to display.
$group: The group this message belongs to.
TRUE on pass, FALSE on fail.
protected function assertPattern($pattern, $message = '', $group = 'Other') {
if (!$message) {
$message = t('Pattern "@pattern" found', array(
'@pattern' => $pattern,
));
}
return $this
->assert((bool) preg_match($pattern, $this
->drupalGetContent()), $message, $group);
}