Asserts that a text string does not appear in the text-only version of $this->content.
string $value: The text string to look for.
string $message: (optional) An assertion message. If omitted, a default message is used. Available placeholders:
array $args: (optional) Additional replacement token map to pass to formatString().
bool TRUE on pass, FALSE on fail.
protected function assertNoText($value, $message = NULL, $args = array()) {
if (!isset($message)) {
$message = 'Text string @value not found in @content';
}
$content = $this
->getPlainTextContent($this->content);
$args += array(
'@value' => $value,
'@content' => $content,
);
return $this
->assert(strpos($content, $value) === FALSE, $this
->formatString($message, $args));
}