true,
];
} public static function createProvider(): iterable
{ $client =
new MockHttpClient();
$logger =
new NullLogger();
yield [ new Dsn('mailgun+api', 'default', self::USER, self::PASSWORD
),
new MailgunApiTransport(self::USER, self::PASSWORD, null,
$client, null,
$logger),
];
yield [ new Dsn('mailgun+api', 'default', self::USER, self::PASSWORD, null,
['region' => 'eu'
]),
new MailgunApiTransport(self::USER, self::PASSWORD, 'eu',
$client, null,
$logger),
];
yield [ new Dsn('mailgun+api', 'example.com', self::USER, self::PASSWORD, 8080
),
(new MailgunApiTransport(self::USER, self::PASSWORD, null,
$client, null,
$logger))->
setHost('example.com'
)->
setPort(8080
),
];