From 0db574f8e0bb92f4699b7e3f00a415b8e009a8a9 Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Mon, 2 Jun 2025 16:08:14 +0200 Subject: [PATCH 1/3] Allow Symfony ^8.0 --- composer.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 1676fea..5f264d6 100644 --- a/composer.json +++ b/composer.json @@ -20,11 +20,11 @@ ], "require": { "php": ">=8.2", - "symfony/http-client": "^6.4|^7.0", - "symfony/notifier": "^7.2" + "symfony/http-client": "^6.4|^7.0|^8.0", + "symfony/notifier": "^7.2|^8.0" }, "require-dev": { - "symfony/event-dispatcher": "^6.4|^7.0" + "symfony/event-dispatcher": "^6.4|^7.0|^8.0" }, "autoload": { "psr-4": { "Symfony\\Component\\Notifier\\Bridge\\ClickSend\\": "" }, From 89c6fa8a343ba1015a7f3dd8fa89fdcf34547248 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Wed, 9 Oct 2024 11:06:51 +0200 Subject: [PATCH 2/3] run tests using PHPUnit 11.5 --- phpunit.xml.dist | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 5f9287c..467e5f2 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -18,14 +19,18 @@ - - + + ./ - - ./Resources - ./Tests - ./vendor - - - + + + ./Resources + ./Tests + ./vendor + + + + + + From 9993ad32788afc10de0ab89ae351e9dc2e0526b4 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Thu, 31 Jul 2025 14:36:46 +0200 Subject: [PATCH 3/3] replace PHPUnit annotations with attributes --- Tests/ClickSendTransportTest.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Tests/ClickSendTransportTest.php b/Tests/ClickSendTransportTest.php index 532c5ac..5bc44d6 100644 --- a/Tests/ClickSendTransportTest.php +++ b/Tests/ClickSendTransportTest.php @@ -11,6 +11,7 @@ namespace Symfony\Component\Notifier\Bridge\ClickSend\Tests; +use PHPUnit\Framework\Attributes\DataProvider; use Symfony\Component\HttpClient\MockHttpClient; use Symfony\Component\Notifier\Bridge\ClickSend\ClickSendOptions; use Symfony\Component\Notifier\Bridge\ClickSend\ClickSendTransport; @@ -41,9 +42,7 @@ public static function supportedMessagesProvider(): iterable yield [new SmsMessage('0611223344', 'Hello!', 'from', new ClickSendOptions(['custom_string' => 'test_custom_string']))]; } - /** - * @dataProvider invalidFromProvider - */ + #[DataProvider('invalidFromProvider')] public function testInvalidArgumentExceptionIsThrownIfFromIsInvalid(string $from) { $transport = $this->createTransport(null, $from); @@ -54,9 +53,7 @@ public function testInvalidArgumentExceptionIsThrownIfFromIsInvalid(string $from $transport->send(new SmsMessage('+33612345678', 'Hello!')); } - /** - * @dataProvider validFromProvider - */ + #[DataProvider('validFromProvider')] public function testNoInvalidArgumentExceptionIsThrownIfFromIsValid(string $from) { $message = new SmsMessage('+33612345678', 'Hello!');