use Symfony\Component\Notifier\Message\ChatMessage;
use Symfony\Component\Notifier\Message\SmsMessage;
use Symfony\Component\Notifier\Test\TransportTestCase;
use Symfony\Component\Notifier\Tests\Fixtures\TestOptions;
use Symfony\Component\Notifier\Tests\Transport\DummyMessage;
use Symfony\Contracts\HttpClient\HttpClientInterface;
class AmazonSnsTransportTest extends TransportTestCase
{ public static function createTransport(HttpClientInterface
$client = null
): AmazonSnsTransport
{ return (new AmazonSnsTransport(new SnsClient(['region' => 'eu-west-3'
]),
$client ??
new MockHttpClient()))->
setHost('host.test'
);
} public static function toStringProvider(): iterable
{ yield ['sns://host.test?region=eu-west-3', self::
createTransport()];
} public static function supportedMessagesProvider(): iterable
{ yield [new SmsMessage('0601020304', 'Hello!'
)];
yield [new ChatMessage('Hello',
new AmazonSnsOptions('my-topic'
))];
}