Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
feat: use phpunit attributes
  • Loading branch information
simPod committed May 8, 2025
commit 49e5392a9d8c15e2c87988b92c45900af06923b8
8 changes: 3 additions & 5 deletions tests/GraphQLRequestFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,14 @@
namespace SimPod\GraphQLRequestFactory\Tests;

use Nyholm\Psr7\Factory\Psr17Factory;
use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\TestCase;
use SimPod\GraphQLRequestFactory\GraphQLRequestFactory;

final class GraphQLRequestFactoryTest extends TestCase
{
/**
* @param array{string} $arguments
*
* @dataProvider provideCreateRequestIsValid
*/
/** @param array{string} $arguments */
#[DataProvider('provideCreateRequestIsValid')]
public function testCreateRequestIsValid(string $expectedQuery, array $arguments): void
{
$psr17Factory = new Psr17Factory();
Expand Down
Loading