You are here

function SpamSpanBasicTestCase::_checkEmail in SpamSpan filter 6

A utility function to check that emails within text are converted

1 call to SpamSpanBasicTestCase::_checkEmail()
SpamSpanBasicTestCase::testSpamSpanEmail in ./spamspan.test
Check that emails in odd places are properly converted

File

./spamspan.test, line 37
Tests for the SpamSpan module

Class

SpamSpanBasicTestCase
@file Tests for the SpamSpan module

Code

function _checkEmail($prefix = '', $suffix = '', $original = "", $shouldbe = '', $message = '') {
  $this
    ->assertEqual($prefix . $shouldbe . $suffix, spamspan($prefix . $original . $suffix, ""), $message);
}