public static function supportedMessagesProvider(): iterable
{ yield [new SmsMessage('0601020304', 'Hello!'
)];
yield [new ChatMessage('Hello',
new AmazonSnsOptions('my-topic'
))];
} public static function unsupportedMessagesProvider(): iterable
{ yield [new DummyMessage()];
yield [new ChatMessage('hello',
new TestOptions())];
} public function testSmsMessageWithFrom() { $transport =
$this->
createTransport();
$this->
expectException(InvalidArgumentException::
class);
$this->
expectExceptionMessage('The "Symfony\Component\Notifier\Bridge\AmazonSns\AmazonSnsTransport" transport does not support "from" in "Symfony\Component\Notifier\Message\SmsMessage".'
);
$transport->
send(new SmsMessage('0600000000', 'test', 'foo'
));
}