3 namespace Friendica\Test\Util;
5 use Friendica\Util\Emailer;
7 class EmailerSpy extends Emailer
9 public static $MAIL_DATA;
12 * Wrapper around the mail() method (mainly used to overwrite for tests)
15 * @param string $to Recipient of this mail
16 * @param string $subject Subject of this mail
17 * @param string $body Message body of this mail
18 * @param string $headers Headers of this mail
19 * @param string $parameters Additional (sendmail) parameters of this mail
21 * @return bool true if the mail was successfully accepted for delivery, false otherwise.
23 protected function mail(string $to, string $subject, string $body, string $headers, string $parameters)
27 'subject' => $subject,
29 'headers' => $headers,
30 'parameters' => $parameters,