Converts a string to its PHP source equivalent for display in test messages.
$text: The text string to convert.
An HTML representation of the text string that, when displayed in a browser, represents the PHP source code equivalent of $text.
protected function stringToHtml($text) {
return '"' . str_replace(array(
"\n",
' ',
), array(
'\\n',
' ',
), check_plain($text)) . '"';
}