use Symfony\Component\HttpClient\MockHttpClient;
use Symfony\Component\Mailer\Test\TransportFactoryTestCase;
use Symfony\Component\Mailer\Transport\Dsn;
use Symfony\Component\Mailer\Transport\SendmailTransport;
use Symfony\Component\Mailer\Transport\SendmailTransportFactory;
use Symfony\Component\Mailer\Transport\TransportFactoryInterface;
class SendmailTransportFactoryTest extends TransportFactoryTestCase
{ public function getFactory(): TransportFactoryInterface
{ return new SendmailTransportFactory(null,
new MockHttpClient(),
new NullLogger());
} public static function supportsProvider(): iterable
{ yield [ new Dsn('sendmail+smtp', 'default'
),
true,
];
} public static function createProvider(): iterable
{