Asserts that a raw string appears in $this->content.
string $value: The raw 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 assertRaw($value, $message = NULL, $args = array()) {
if (!isset($message)) {
$message = 'Raw string @value found in @content';
}
$args += array(
'@value' => $value,
'@content' => $this->content,
);
return $this
->assert(strpos($this->content, $value) !== FALSE, $this
->formatString($message, $args));
}