use Symfony\Contracts\HttpClient\HttpClientInterface;
use Symfony\Contracts\HttpClient\ResponseInterface;
/**
* @author Piergiuseppe Longo <piergiuseppe.longo@gmail.com>
* @author Oskar Stark <oskarstark@googlemail.com>
*/
final class GatewayApiTransportTest extends TransportTestCase
{ public static function createTransport(HttpClientInterface
$client = null
): GatewayApiTransport
{ return new GatewayApiTransport('authtoken', 'Symfony',
$client ??
new MockHttpClient());
} public static function toStringProvider(): iterable
{ yield ['gatewayapi://gatewayapi.com?from=Symfony', self::
createTransport()];
} public static function supportedMessagesProvider(): iterable
{ yield [new SmsMessage('0611223344', 'Hello!'
)];
yield [new SmsMessage('0611223344', 'Hello!', 'from',
new GatewayApiOptions(['from' => 'foo'
]))];
}