diff --git a/src/Symfony/Component/Notifier/Bridge/FreeMobile/Tests/FreeMobileTransportFactoryTest.php b/src/Symfony/Component/Notifier/Bridge/FreeMobile/Tests/FreeMobileTransportFactoryTest.php index 1bbe44398e..474bd131e8 100644 --- a/src/Symfony/Component/Notifier/Bridge/FreeMobile/Tests/FreeMobileTransportFactoryTest.php +++ b/src/Symfony/Component/Notifier/Bridge/FreeMobile/Tests/FreeMobileTransportFactoryTest.php @@ -19,7 +19,7 @@ use Symfony\Component\Notifier\Transport\Dsn; final class FreeMobileTransportFactoryTest extends TestCase { - public function testCreateWithDsn(): void + public function testCreateWithDsn() { $factory = $this->createFactory(); @@ -30,7 +30,7 @@ final class FreeMobileTransportFactoryTest extends TestCase $this->assertSame('freemobile://host.test?phone=0611223344', (string) $transport); } - public function testCreateWithNoPhoneThrowsMalformed(): void + public function testCreateWithNoPhoneThrowsMalformed() { $factory = $this->createFactory(); @@ -40,7 +40,7 @@ final class FreeMobileTransportFactoryTest extends TestCase $factory->create(Dsn::fromString($dsnIncomplete)); } - public function testSupportsFreeMobileScheme(): void + public function testSupportsFreeMobileScheme() { $factory = $this->createFactory(); @@ -51,7 +51,7 @@ final class FreeMobileTransportFactoryTest extends TestCase $this->assertFalse($factory->supports(Dsn::fromString($dsnUnsupported))); } - public function testNonFreeMobileSchemeThrows(): void + public function testNonFreeMobileSchemeThrows() { $factory = $this->createFactory(); diff --git a/src/Symfony/Component/Notifier/Bridge/FreeMobile/Tests/FreeMobileTransportTest.php b/src/Symfony/Component/Notifier/Bridge/FreeMobile/Tests/FreeMobileTransportTest.php index 88969304b1..c49a11c530 100644 --- a/src/Symfony/Component/Notifier/Bridge/FreeMobile/Tests/FreeMobileTransportTest.php +++ b/src/Symfony/Component/Notifier/Bridge/FreeMobile/Tests/FreeMobileTransportTest.php @@ -20,14 +20,14 @@ use Symfony\Contracts\HttpClient\HttpClientInterface; final class FreeMobileTransportTest extends TestCase { - public function testToStringContainsProperties(): void + public function testToStringContainsProperties() { $transport = $this->initTransport(); $this->assertSame('freemobile://host.test?phone=0611223344', (string) $transport); } - public function testSupportsMessageInterface(): void + public function testSupportsMessageInterface() { $transport = $this->initTransport(); @@ -36,7 +36,7 @@ final class FreeMobileTransportTest extends TestCase $this->assertFalse($transport->supports($this->createMock(MessageInterface::class))); } - public function testSendNonSmsMessageThrowsException(): void + public function testSendNonSmsMessageThrowsException() { $transport = $this->initTransport(); @@ -45,7 +45,7 @@ final class FreeMobileTransportTest extends TestCase $transport->send($this->createMock(MessageInterface::class)); } - public function testSendSmsMessageButInvalidPhoneThrowsException(): void + public function testSendSmsMessageButInvalidPhoneThrowsException() { $transport = $this->initTransport(); diff --git a/src/Symfony/Component/Notifier/Bridge/Slack/Tests/SlackTransportTest.php b/src/Symfony/Component/Notifier/Bridge/Slack/Tests/SlackTransportTest.php index 100832efdd..8e690206ff 100644 --- a/src/Symfony/Component/Notifier/Bridge/Slack/Tests/SlackTransportTest.php +++ b/src/Symfony/Component/Notifier/Bridge/Slack/Tests/SlackTransportTest.php @@ -26,7 +26,7 @@ use Symfony\Contracts\HttpClient\ResponseInterface; final class SlackTransportTest extends TestCase { - public function testToStringContainsProperties(): void + public function testToStringContainsProperties() { $host = 'testHost'; $path = 'testPath'; @@ -37,7 +37,7 @@ final class SlackTransportTest extends TestCase $this->assertSame(sprintf('slack://%s/%s', $host, $path), (string) $transport); } - public function testSupportsChatMessage(): void + public function testSupportsChatMessage() { $transport = new SlackTransport('testPath', $this->createMock(HttpClientInterface::class)); @@ -45,7 +45,7 @@ final class SlackTransportTest extends TestCase $this->assertFalse($transport->supports($this->createMock(MessageInterface::class))); } - public function testSendNonChatMessageThrows(): void + public function testSendNonChatMessageThrows() { $this->expectException(LogicException::class); @@ -54,7 +54,7 @@ final class SlackTransportTest extends TestCase $transport->send($this->createMock(MessageInterface::class)); } - public function testSendWithEmptyArrayResponseThrows(): void + public function testSendWithEmptyArrayResponseThrows() { $this->expectException(TransportException::class); @@ -75,7 +75,7 @@ final class SlackTransportTest extends TestCase $transport->send(new ChatMessage('testMessage')); } - public function testSendWithErrorResponseThrows(): void + public function testSendWithErrorResponseThrows() { $this->expectException(TransportException::class); $this->expectExceptionMessage('testErrorCode'); @@ -98,7 +98,7 @@ final class SlackTransportTest extends TestCase $transport->send(new ChatMessage('testMessage')); } - public function testSendWithOptions(): void + public function testSendWithOptions() { $path = 'testPath'; $message = 'testMessage'; @@ -126,7 +126,7 @@ final class SlackTransportTest extends TestCase $transport->send(new ChatMessage('testMessage')); } - public function testSendWithNotification(): void + public function testSendWithNotification() { $host = 'testHost'; $message = 'testMessage'; @@ -161,7 +161,7 @@ final class SlackTransportTest extends TestCase $transport->send($chatMessage); } - public function testSendWithInvalidOptions(): void + public function testSendWithInvalidOptions() { $this->expectException(LogicException::class); @@ -174,7 +174,7 @@ final class SlackTransportTest extends TestCase $transport->send(new ChatMessage('testMessage', $this->createMock(MessageOptionsInterface::class))); } - public function testSendWith200ResponseButNotOk(): void + public function testSendWith200ResponseButNotOk() { $host = 'testChannel'; $message = 'testMessage'; diff --git a/src/Symfony/Component/Notifier/Bridge/Telegram/Tests/TelegramTransportFactoryTest.php b/src/Symfony/Component/Notifier/Bridge/Telegram/Tests/TelegramTransportFactoryTest.php index c74d38f2f6..9299a283ef 100644 --- a/src/Symfony/Component/Notifier/Bridge/Telegram/Tests/TelegramTransportFactoryTest.php +++ b/src/Symfony/Component/Notifier/Bridge/Telegram/Tests/TelegramTransportFactoryTest.php @@ -19,7 +19,7 @@ use Symfony\Component\Notifier\Transport\Dsn; final class TelegramTransportFactoryTest extends TestCase { - public function testCreateWithDsn(): void + public function testCreateWithDsn() { $factory = new TelegramTransportFactory(); @@ -31,7 +31,7 @@ final class TelegramTransportFactoryTest extends TestCase $this->assertSame(sprintf('telegram://%s?channel=%s', $host, $channel), (string) $transport); } - public function testCreateWithNoPasswordThrowsMalformed(): void + public function testCreateWithNoPasswordThrowsMalformed() { $factory = new TelegramTransportFactory(); @@ -39,7 +39,7 @@ final class TelegramTransportFactoryTest extends TestCase $factory->create(Dsn::fromString(sprintf('telegram://%s@%s/?channel=%s', 'simpleToken', 'testHost', 'testChannel'))); } - public function testCreateWithNoTokenThrowsMalformed(): void + public function testCreateWithNoTokenThrowsMalformed() { $factory = new TelegramTransportFactory(); @@ -47,7 +47,7 @@ final class TelegramTransportFactoryTest extends TestCase $factory->create(Dsn::fromString(sprintf('telegram://%s/?channel=%s', 'testHost', 'testChannel'))); } - public function testSupportsTelegramScheme(): void + public function testSupportsTelegramScheme() { $factory = new TelegramTransportFactory(); @@ -55,7 +55,7 @@ final class TelegramTransportFactoryTest extends TestCase $this->assertFalse($factory->supports(Dsn::fromString('somethingElse://host/?channel=testChannel'))); } - public function testNonTelegramSchemeThrows(): void + public function testNonTelegramSchemeThrows() { $factory = new TelegramTransportFactory(); diff --git a/src/Symfony/Component/Notifier/Bridge/Telegram/Tests/TelegramTransportTest.php b/src/Symfony/Component/Notifier/Bridge/Telegram/Tests/TelegramTransportTest.php index ec5f345356..72c7d4d479 100644 --- a/src/Symfony/Component/Notifier/Bridge/Telegram/Tests/TelegramTransportTest.php +++ b/src/Symfony/Component/Notifier/Bridge/Telegram/Tests/TelegramTransportTest.php @@ -24,7 +24,7 @@ use Symfony\Contracts\HttpClient\ResponseInterface; final class TelegramTransportTest extends TestCase { - public function testToStringContainsProperties(): void + public function testToStringContainsProperties() { $channel = 'testChannel'; @@ -34,7 +34,7 @@ final class TelegramTransportTest extends TestCase $this->assertSame(sprintf('telegram://%s?channel=%s', 'testHost', $channel), (string) $transport); } - public function testSupportsChatMessage(): void + public function testSupportsChatMessage() { $transport = new TelegramTransport('testToken', 'testChannel', $this->createMock(HttpClientInterface::class)); @@ -42,7 +42,7 @@ final class TelegramTransportTest extends TestCase $this->assertFalse($transport->supports($this->createMock(MessageInterface::class))); } - public function testSendNonChatMessageThrows(): void + public function testSendNonChatMessageThrows() { $this->expectException(LogicException::class); $transport = new TelegramTransport('testToken', 'testChannel', $this->createMock(HttpClientInterface::class)); @@ -50,7 +50,7 @@ final class TelegramTransportTest extends TestCase $transport->send($this->createMock(MessageInterface::class)); } - public function testSendWithErrorResponseThrows(): void + public function testSendWithErrorResponseThrows() { $this->expectException(TransportException::class); $this->expectExceptionMessageMatches('/testDescription.+testErrorCode/'); @@ -72,7 +72,7 @@ final class TelegramTransportTest extends TestCase $transport->send(new ChatMessage('testMessage')); } - public function testSendWithOptions(): void + public function testSendWithOptions() { $channel = 'testChannel'; @@ -101,7 +101,7 @@ final class TelegramTransportTest extends TestCase $transport->send(new ChatMessage('testMessage')); } - public function testSendWithChannelOverride(): void + public function testSendWithChannelOverride() { $channelOverride = 'channelOverride'; diff --git a/src/Symfony/Component/Notifier/Bridge/Twilio/Tests/TwilioTransportFactoryTest.php b/src/Symfony/Component/Notifier/Bridge/Twilio/Tests/TwilioTransportFactoryTest.php index 9ff62a20fa..2b6f67eea5 100644 --- a/src/Symfony/Component/Notifier/Bridge/Twilio/Tests/TwilioTransportFactoryTest.php +++ b/src/Symfony/Component/Notifier/Bridge/Twilio/Tests/TwilioTransportFactoryTest.php @@ -19,7 +19,7 @@ use Symfony\Component\Notifier\Transport\Dsn; final class TwilioTransportFactoryTest extends TestCase { - public function testCreateWithDsn(): void + public function testCreateWithDsn() { $factory = $this->createFactory(); @@ -30,7 +30,7 @@ final class TwilioTransportFactoryTest extends TestCase $this->assertSame('twilio://host.test?from=0611223344', (string) $transport); } - public function testCreateWithNoFromThrowsMalformed(): void + public function testCreateWithNoFromThrowsMalformed() { $factory = $this->createFactory(); @@ -40,7 +40,7 @@ final class TwilioTransportFactoryTest extends TestCase $factory->create(Dsn::fromString($dsnIncomplete)); } - public function testSupportsTwilioScheme(): void + public function testSupportsTwilioScheme() { $factory = $this->createFactory(); @@ -51,7 +51,7 @@ final class TwilioTransportFactoryTest extends TestCase $this->assertFalse($factory->supports(Dsn::fromString($dsnUnsupported))); } - public function testNonTwilioSchemeThrows(): void + public function testNonTwilioSchemeThrows() { $factory = $this->createFactory(); diff --git a/src/Symfony/Component/Notifier/Bridge/Twilio/Tests/TwilioTransportTest.php b/src/Symfony/Component/Notifier/Bridge/Twilio/Tests/TwilioTransportTest.php index 1142c3e9cc..5520735eca 100644 --- a/src/Symfony/Component/Notifier/Bridge/Twilio/Tests/TwilioTransportTest.php +++ b/src/Symfony/Component/Notifier/Bridge/Twilio/Tests/TwilioTransportTest.php @@ -20,14 +20,14 @@ use Symfony\Contracts\HttpClient\HttpClientInterface; final class TwilioTransportTest extends TestCase { - public function testToStringContainsProperties(): void + public function testToStringContainsProperties() { $transport = $this->createTransport(); $this->assertSame('twilio://host.test?from=sender', (string) $transport); } - public function testSupportsMessageInterface(): void + public function testSupportsMessageInterface() { $transport = $this->createTransport(); @@ -35,7 +35,7 @@ final class TwilioTransportTest extends TestCase $this->assertFalse($transport->supports($this->createMock(MessageInterface::class))); } - public function testSendNonSmsMessageThrowsException(): void + public function testSendNonSmsMessageThrowsException() { $transport = $this->createTransport();