X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=tests%2FUtil%2FEmailerSpy.php;h=9a490d2ef354aaec549d9ddcffd1c21c2f89c19a;hb=4f37f68bd77d9ba26720f1d322729c8af58074f6;hp=effd2ed08010a6611688a7e8a97261d79b490aa5;hpb=9cfd4ef8686b5519c34e79f38ea89f62d469cd7e;p=friendica.git diff --git a/tests/Util/EmailerSpy.php b/tests/Util/EmailerSpy.php index effd2ed080..9a490d2ef3 100644 --- a/tests/Util/EmailerSpy.php +++ b/tests/Util/EmailerSpy.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Test\Util; @@ -8,6 +27,18 @@ class EmailerSpy extends Emailer { public static $MAIL_DATA; + /** + * Wrapper around the mail() method (mainly used to overwrite for tests) + * @see mail() + * + * @param string $to Recipient of this mail + * @param string $subject Subject of this mail + * @param string $body Message body of this mail + * @param string $headers Headers of this mail + * @param string $parameters Additional (sendmail) parameters of this mail + * + * @return bool true if the mail was successfully accepted for delivery, false otherwise. + */ protected function mail(string $to, string $subject, string $body, string $headers, string $parameters) { self::$MAIL_DATA = [