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