Skip to content

Commit 6222759

Browse files
authored
feat: use phpunit attributes (#49)
1 parent 334dd05 commit 6222759

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

tests/GraphQLRequestFactoryTest.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,14 @@
55
namespace SimPod\GraphQLRequestFactory\Tests;
66

77
use Nyholm\Psr7\Factory\Psr17Factory;
8+
use PHPUnit\Framework\Attributes\DataProvider;
89
use PHPUnit\Framework\TestCase;
910
use SimPod\GraphQLRequestFactory\GraphQLRequestFactory;
1011

1112
final class GraphQLRequestFactoryTest extends TestCase
1213
{
13-
/**
14-
* @param array{string} $arguments
15-
*
16-
* @dataProvider provideCreateRequestIsValid
17-
*/
14+
/** @param array{string} $arguments */
15+
#[DataProvider('provideCreateRequestIsValid')]
1816
public function testCreateRequestIsValid(string $expectedQuery, array $arguments): void
1917
{
2018
$psr17Factory = new Psr17Factory();

0 commit comments

Comments
 (0)