1
0
Fork 0

Fix phpmailer (Case sensitive Check)

This commit is contained in:
Philipp Holzer 2020-09-22 22:48:34 +02:00
commit e2b736d0a9
No known key found for this signature in database
GPG key ID: 9A28B7D4FF5667BD
5 changed files with 196 additions and 3 deletions

23
tests/Util/EmailerSpy.php Normal file
View file

@ -0,0 +1,23 @@
<?php
namespace Friendica\Test\Util;
use Friendica\Util\Emailer;
class EmailerSpy extends Emailer
{
public static $MAIL_DATA;
protected function mail(string $to, string $subject, string $body, string $headers, string $parameters)
{
self::$MAIL_DATA = [
'to' => $to,
'subject' => $subject,
'body' => $body,
'headers' => $headers,
'parameters' => $parameters,
];
return true;
}
}