use Symfony\Component\Notifier\Exception\TransportException;
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 OvhCloudTransportTest extends TransportTestCase
{ public static function createTransport(HttpClientInterface
$client = null, string
$sender = null, bool
$noStopClause = false
): OvhCloudTransport
{ return (new OvhCloudTransport('applicationKey', 'applicationSecret', 'consumerKey', 'serviceName',
$client ??
new MockHttpClient()))->
setSender($sender)->
setNoStopClause($noStopClause);
} public static function toStringProvider(): iterable
{ yield ['ovhcloud://eu.api.ovh.com?service_name=serviceName', self::
createTransport()];
yield ['ovhcloud://eu.api.ovh.com?service_name=serviceName', self::
createTransport(null, null, true
)];
yield ['ovhcloud://eu.api.ovh.com?service_name=serviceName&sender=sender', self::
createTransport(null, 'sender'
)];
} public static function supportedMessagesProvider(): iterable
{