$sut =
new NativeTransportFactory();
$sut->
create(Dsn::
fromString($dsn));
} public static function provideCreate(): \Generator
{ yield ['native://default', '/usr/sbin/sendmail -t -i', '', '',
new SendmailTransport('/usr/sbin/sendmail -t -i'
)];
if ('\\' === \DIRECTORY_SEPARATOR
) { $socketStream =
new SocketStream();
$socketStream->
setHost('myhost.tld'
);
$socketStream->
setPort(25
);
$socketStream->
disableTls();
yield ['native://default', '', 'myhost.tld', '25',
new SmtpTransport($socketStream)];
$socketStreamTls =
new SocketStream();
$socketStreamTls->
setHost('myhost.tld'
);
$socketStreamTls->
setPort(465
);
yield ['native://default', '', 'myhost.tld', '465',
new SmtpTransport($socketStreamTls)];
} }