MessageBirdOptions example

return new MessageBirdTransport('token', 'from', $client ?? new MockHttpClient());
    }

    public static function toStringProvider(): iterable
    {
        yield ['messagebird://rest.messagebird.com?from=from', self::createTransport()];
    }

    public static function supportedMessagesProvider(): iterable
    {
        yield [new SmsMessage('0611223344', 'Hello!')];
        yield [new SmsMessage('0611223344', 'Hello!', 'from', new MessageBirdOptions(['from' => 'foo']))];
    }

    public static function unsupportedMessagesProvider(): iterable
    {
        yield [new ChatMessage('Hello!')];
        yield [new DummyMessage()];
    }
}


namespace Symfony\Component\Notifier\Bridge\MessageBird\Tests;

use PHPUnit\Framework\TestCase;
use Symfony\Component\Notifier\Bridge\MessageBird\MessageBirdOptions;

class MessageBirdOptionsTest extends TestCase
{
    public function testMessageBirdOptions()
    {
        $messageBirdOptions = (new MessageBirdOptions())
            ->type('test_type')
            ->scheduledDatetime('test_scheduled_datetime')
            ->createdDatetime('test_created_datetime')
            ->dataCoding('test_data_coding')
            ->gateway(999)
            ->groupIds(['test_group_ids'])
            ->mClass(888)
            ->reference('test_reference')
            ->reportUrl('test_report_url')
            ->shortenUrls(true)
            ->typeDetails('test_type_details')
            
Home | Imprint | This part of the site doesn't use cookies.