function SpamSpanBasicTestCase::testSpamSpanNoEmail in SpamSpan filter 6
Test that strings without emails are passed through unchanged
File
- ./
spamspan.test, line 45 - Tests for the SpamSpan module
Class
- SpamSpanBasicTestCase
- @file Tests for the SpamSpan module
Code
function testSpamSpanNoEmail() {
$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, "Checking for false positives");
}
}