use Symfony\Contracts\HttpClient\HttpClientInterface;
final class SpotHitTransportTest extends TransportTestCase
{ public static function createTransport(HttpClientInterface
$client = null
): SpotHitTransport
{ return (new SpotHitTransport('api_token', 'MyCompany',
$client ??
new MockHttpClient()))->
setHost('host.test'
);
} public static function toStringProvider(): iterable
{ yield ['spothit://host.test?from=MyCompany', self::
createTransport()];
yield ['spothit://host.test?from=MyCompany&smslong=1', self::
createTransport()->
setSmsLong(true
)];
yield ['spothit://host.test?from=MyCompany&smslongnbr=3', self::
createTransport()->
setLongNBr(3
)];
yield ['spothit://host.test?from=MyCompany&smslong=1&smslongnbr=3', self::
createTransport()->
setSmsLong(true
)->
setLongNBr(3
)];
} public static function supportedMessagesProvider(): iterable
{ yield [new SmsMessage('0611223344', 'Hello!'
)];
yield [new SmsMessage('+33611223344', 'Hello!'
)];
}