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!'); diff --git a/composer.json b/composer.json index 1676fea..4bd5b75 100644 --- a/composer.json +++ b/composer.json @@ -19,12 +19,12 @@ } ], "require": { - "php": ">=8.2", - "symfony/http-client": "^6.4|^7.0", - "symfony/notifier": "^7.2" + "php": ">=8.4", + "symfony/http-client": "^7.4|^8.0", + "symfony/notifier": "^7.4|^8.0" }, "require-dev": { - "symfony/event-dispatcher": "^6.4|^7.0" + "symfony/event-dispatcher": "^7.4|^8.0" }, "autoload": { "psr-4": { "Symfony\\Component\\Notifier\\Bridge\\ClickSend\\": "" }, 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 + + + + + +