Skip to content

Commit 4ad9842

Browse files
Merge branch '7.4' into 8.0
* 7.4: replace PHPUnit annotations with attributes
2 parents 3e7a6f3 + 14aed40 commit 4ad9842

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

Tests/SmsmodeTransportTest.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
namespace Symfony\Component\Notifier\Bridge\Smsmode\Tests;
1313

14+
use PHPUnit\Framework\Attributes\DataProvider;
1415
use Symfony\Component\HttpClient\MockHttpClient;
1516
use Symfony\Component\Notifier\Bridge\Smsmode\SmsmodeOptions;
1617
use Symfony\Component\Notifier\Bridge\Smsmode\SmsmodeTransport;
@@ -40,9 +41,7 @@ public static function supportedMessagesProvider(): iterable
4041
yield [new SmsMessage('0611223344', 'Hello!', 'from', new SmsmodeOptions(['ref_client' => 'test_ref_client']))];
4142
}
4243

43-
/**
44-
* @dataProvider invalidFromProvider
45-
*/
44+
#[DataProvider('invalidFromProvider')]
4645
public function testInvalidArgumentExceptionIsThrownIfFromIsInvalid(string $from)
4746
{
4847
$transport = $this->createTransport(null, $from);
@@ -53,9 +52,7 @@ public function testInvalidArgumentExceptionIsThrownIfFromIsInvalid(string $from
5352
$transport->send(new SmsMessage('+33612345678', 'Hello!'));
5453
}
5554

56-
/**
57-
* @dataProvider validFromProvider
58-
*/
55+
#[DataProvider('validFromProvider')]
5956
public function testNoInvalidArgumentExceptionIsThrownIfFromIsValid(string $from)
6057
{
6158
$message = new SmsMessage('+33612345678', 'Hello!');

0 commit comments

Comments
 (0)