Deprecate TransportFactoryTestCase, extend AbstractTransportFactoryTestCase instead
The testIncompleteDsnException() and testMissingRequiredOptionException() tests are no longer provided by default. If you make use of them (i.e. by implementing the
incompleteDsnProvider() or missingRequiredOptionProvider() data providers), you now need to use the IncompleteDsnTestTrait or MissingRequiredOptionTestTrait respectively.
Make TransportFactoryTestCase and TransportTestCase compatible with PHPUnit 10+
Desktop channelFromNotificationInterface for MessageInterface implementationsfrom property in SmsMessageTransportTestCase are now static: toStringProvider(), supportedMessagesProvider() and unsupportedMessagesProvider()TransportTestCase::createTransport() is now staticSentMessageEvent and FailedMessageEventpush channel@experimental anymoreDsn::__construct() method from:
public function __construct(string $scheme, string $host, ?string $user = null, ?string $password = null, ?int $port = null, array $options = [], ?string $path = null)
to:
public function __construct(string $dsn)Dsn::fromString() methodAbstractTransportFactory::getEndpoint() from ?string to stringDSN::getRequiredOption method which throws a new MissingRequiredOptionException.TransportInterface::send() and AbstractTransport::doSend() methods changed to return a ?SentMessage instance instead of void.EmailRecipientInterface and RecipientInterface were introduced.email and phone properties to Recipient.$recipient argument in the as*Message() method
of EmailNotificationInterface and SmsNotificationInterface to EmailRecipientInterface
and SmsRecipientInterface.AdminRecipient.EmailRecipientInterface and SmsRecipientInterface now extend the RecipientInterface.EmailRecipient and SmsRecipient were introduced.$recipient argument in NotifierInterface::send(),
Notifier::getChannels(), ChannelInterface::notifiy() and ChannelInterface::supports() to
RecipientInterface.EmailChannel to only support recipients which implement the EmailRecipientInterface.SmsChannel to only support recipients which implement the SmsRecipientInterface.ChatMessage::fromNotification() method’s $recipient and $transport
arguments were removed.EmailMessage::fromNotification() and SmsMessage::fromNotification()
methods' $transport argument was removed.