new Dsn('mailersend+smtp', 'default', self::USER, self::PASSWORD
),
new MailerSendSmtpTransport(self::USER, self::PASSWORD, null,
new NullLogger()),
];
yield [ new Dsn('mailersend+smtp', 'default', self::USER, self::PASSWORD, 465
),
new MailerSendSmtpTransport(self::USER, self::PASSWORD, null,
new NullLogger()),
];
yield [ new Dsn('mailersend+api', 'default', self::USER
),
new MailerSendApiTransport(self::USER,
new MockHttpClient(), null,
new NullLogger()),
];
} public static function unsupportedSchemeProvider(): iterable
{ yield [ new Dsn('mailersend+foo', 'default', self::USER, self::PASSWORD
),
'The "mailersend+foo" scheme is not supported; supported schemes for mailer "mailersend" are: "mailersend", "mailersend+smtp", "mailersend+api".',
];
}