use Symfony\Component\Notifier\Message\SmsMessage;
use Symfony\Component\Notifier\Test\TransportTestCase;
use Symfony\Component\Notifier\Tests\Fixtures\TestOptions;
use Symfony\Component\Notifier\Tests\Mailer\DummyMailer;
use Symfony\Component\Notifier\Tests\Transport\DummyMessage;
use Symfony\Contracts\HttpClient\HttpClientInterface;
final class FakeChatEmailTransportTest extends TransportTestCase
{ public static function createTransport(HttpClientInterface
$client = null, string
$transportName = null
): FakeChatEmailTransport
{ $transport =
(new FakeChatEmailTransport(new DummyMailer(), '
[email protected]', '
[email protected]',
$client ??
new MockHttpClient()));
if (null !==
$transportName) { $transport->
setHost($transportName);
} return $transport;
} public static function toStringProvider(): iterable
{ yield ['fakechat+email://
[email protected]&
[email protected]', self::
createTransport()];