Skip to content

Commit 87a6790

Browse files
committed
replace PHPUnit annotations with attributes
1 parent 7783a77 commit 87a6790

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Tests/FirebaseTransportTest.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\Firebase\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\Firebase\FirebaseOptions;
@@ -49,9 +50,7 @@ public static function unsupportedMessagesProvider(): iterable
4950
yield [new DummyMessage()];
5051
}
5152

52-
/**
53-
* @dataProvider sendWithErrorThrowsExceptionProvider
54-
*/
53+
#[DataProvider('sendWithErrorThrowsExceptionProvider')]
5554
public function testSendWithErrorThrowsTransportException(ResponseInterface $response)
5655
{
5756
$this->expectException(TransportException::class);

0 commit comments

Comments
 (0)