function Main::testNoEmail in SpamSpan filter 5
File
- test/
spamspan_test.inc, line 17
Class
Code
function testNoEmail() {
// test that strings without emails a passed unchanged
$noemails = array(
'no email here',
'oneword',
'',
'notan@email',
'notan@email either',
'some text and notan.email@something here',
);
while ($text = each($noemails)) {
$this
->assertEqual(spamspan($text, ""), $text);
}
}