Skip to content

Commit 554dbc8

Browse files
Merge branch '7.4' into 8.0
* 7.4: replace PHPUnit annotations with attributes
2 parents 61d15db + ba1fbdb commit 554dbc8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Tests/SmsapiTransportTest.php

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

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

14+
use PHPUnit\Framework\Attributes\DataProvider;
1415
use Symfony\Component\HttpClient\MockHttpClient;
1516
use Symfony\Component\HttpClient\Response\MockResponse;
1617
use Symfony\Component\Notifier\Bridge\Smsapi\SmsapiTransport;
@@ -72,9 +73,7 @@ public static function responseProvider(): iterable
7273
}
7374
}
7475

75-
/**
76-
* @dataProvider responseProvider
77-
*/
76+
#[DataProvider('responseProvider')]
7877
public function testThrowExceptionWhenMessageWasNotSent(int $statusCode, string $content, string $errorMessage)
7978
{
8079
$client = $this->createClient($statusCode, $content);

0 commit comments

Comments
 (0)