use Symfony\Component\Notifier\Message\ChatMessage;
use Symfony\Component\Notifier\Message\SmsMessage;
use Symfony\Component\Notifier\Test\TransportTestCase;
use Symfony\Component\Notifier\Tests\Transport\DummyMessage;
use Symfony\Contracts\HttpClient\HttpClientInterface;
use Symfony\Contracts\HttpClient\ResponseInterface;
final class EsendexTransportTest extends TransportTestCase
{ public static function createTransport(HttpClientInterface
$client = null
): EsendexTransport
{ return (new EsendexTransport('email', 'password', 'testAccountReference', 'testFrom',
$client ??
new MockHttpClient()))->
setHost('host.test'
);
} public static function toStringProvider(): iterable
{ yield ['esendex://host.test?accountreference=testAccountReference&from=testFrom', self::
createTransport()];
} public static function supportedMessagesProvider(): iterable
{ yield [new SmsMessage('0611223344', 'Hello!'
)];
yield [new SmsMessage('0611223344', 'Hello!', 'from',
new EsendexOptions(['from' => 'foo'
]))];
}