]> git.mxchange.org Git - friendica.git/blob - tests/Util/EmailerSpy.php
Merge pull request #9278 from annando/issue-9276
[friendica.git] / tests / Util / EmailerSpy.php
1 <?php
2
3 namespace Friendica\Test\Util;
4
5 use Friendica\Util\Emailer;
6
7 class EmailerSpy extends Emailer
8 {
9         public static $MAIL_DATA;
10
11         protected function mail(string $to, string $subject, string $body, string $headers, string $parameters)
12         {
13                 self::$MAIL_DATA = [
14                         'to' => $to,
15                         'subject' => $subject,
16                         'body' => $body,
17                         'headers' => $headers,
18                         'parameters' => $parameters,
19                 ];
20
21                 return true;
22         }
23 }