Skip to content

Commit 883a1b4

Browse files
Use phpunit attribute
1 parent 303a5ea commit 883a1b4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Symfony/Component/Scheduler/Tests/DependencyInjection/AddScheduleMessengerPassTest.php

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

1212
namespace Symfony\Component\Console\Tests\DependencyInjection;
1313

14+
use PHPUnit\Framework\Attributes\DataProvider;
1415
use PHPUnit\Framework\TestCase;
1516
use Symfony\Component\Console\Attribute\AsCommand;
1617
use Symfony\Component\DependencyInjection\ContainerBuilder;
@@ -19,9 +20,7 @@
1920

2021
class AddScheduleMessengerPassTest extends TestCase
2122
{
22-
/**
23-
* @dataProvider processSchedulerTaskCommandProvider
24-
*/
23+
#[DataProvider('processSchedulerTaskCommandProvider')]
2524
public function testProcessSchedulerTaskCommand(array $arguments, string $exceptedCommand)
2625
{
2726
$container = new ContainerBuilder();

0 commit comments

Comments
 (0)