/**
* @dataProvider messageWhereSchemeIsPartOfSchemeToPackageMapProvider
*/
public function testMessageWhereSchemeIsPartOfSchemeToPackageMap(string
$scheme, string
$package) { $dsn =
new Dsn($scheme, 'localhost'
);
$this->
assertSame( sprintf('Unable to send emails via "%s" as the bridge is not installed. Try running "composer require %s".',
$scheme,
$package),
(new UnsupportedSchemeException($dsn))->
getMessage() );
} public static function messageWhereSchemeIsPartOfSchemeToPackageMapProvider(): \Generator
{ yield ['brevo', 'symfony/brevo-mailer'
];
yield ['gmail', 'symfony/google-mailer'
];
yield ['infobip', 'symfony/infobip-mailer'
];
yield ['mailersend', 'symfony/mailersend-mailer'
];
yield ['mailgun', 'symfony/mailgun-mailer'
];
yield ['mailjet', 'symfony/mailjet-mailer'
];