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'
]))];
} public static function unsupportedMessagesProvider(): iterable
{ yield [new ChatMessage('Hello!'
)];
yield [new DummyMessage()];
} public function testSendWithErrorResponseThrowsTransportException() { $response =
$this->
createMock(ResponseInterface::
class);