$this->
assertSame(sprintf('onesignal://9fb175f0-0b32-4e99-ae97-bd228b9eb246@%s:%d',
$customHost,
$customPort),
(string) $transport);
} public static function toStringProvider(): iterable
{ yield ['onesignal://9fb175f0-0b32-4e99-ae97-bd228b9eb246@onesignal.com', self::
createTransport()];
yield ['onesignal://9fb175f0-0b32-4e99-ae97-bd228b9eb246@onesignal.com?recipientId=ea345989-d273-4f21-a33b-0c006efc5edb', self::
createTransport(null, 'ea345989-d273-4f21-a33b-0c006efc5edb'
)];
} public static function supportedMessagesProvider(): iterable
{ yield [new PushMessage('Hello', 'World'
), self::
createTransport(null, 'ea345989-d273-4f21-a33b-0c006efc5edb'
)];
yield [new PushMessage('Hello', 'World',
(new OneSignalOptions())->
recipient('ea345989-d273-4f21-a33b-0c006efc5edb'
))];
} public static function unsupportedMessagesProvider(): iterable
{ yield [new SmsMessage('0611223344', 'Hello!'
)];
yield [new ChatMessage('Hello!'
)];
yield [new DummyMessage()];
} public function testSendThrowsWithoutRecipient() {