use Symfony\Component\Notifier\Bridge\SpotHit\SpotHitTransport;
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;
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
{