Tests the HTML escaping filter.
check_plain() is not tested here.
function testHtmlEscapeFilter() {
// Setup dummy filter object.
$filter = new stdClass();
$filter->callback = '_filter_html_escape';
$tests = array(
" One. <!-- \"comment\" --> Two'.\n<p>Three.</p>\n " => array(
"One. <!-- "comment" --> Two'.\n<p>Three.</p>" => TRUE,
' One.' => FALSE,
"</p>\n " => FALSE,
),
);
$this
->assertFilteredString($filter, $tests);
}