Skip to content

Commit

Permalink
Make test data providers static
Browse files Browse the repository at this point in the history
  • Loading branch information
misantron committed Apr 28, 2023
1 parent ed47aa7 commit e41de25
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/build.yml
Expand Up @@ -53,8 +53,6 @@ jobs:
with:
php-version: 8.2
coverage: pcov
- name: Initialize tests
run: make initialize
- name: Install composer dependencies
uses: ramsey/composer-install@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion tests/RequestAssertsTestClientTraitTest.php
Expand Up @@ -30,7 +30,7 @@ public function testCreateRequestAssertsTestHttpClientConfig(
$assertion($actual);
}

public function clientConfigDataProvider(): array
public static function clientConfigDataProvider(): array
{
return [
'#1' => [
Expand Down
2 changes: 1 addition & 1 deletion tests/RequestHistoryTestClientTraitTest.php
Expand Up @@ -25,7 +25,7 @@ public function testCreateRequestHistoryTestHttpClientConfig(array $queue, array
$assertion($actual);
}

public function clientConfigDataProvider(): array
public static function clientConfigDataProvider(): array
{
return [
'#1' => [
Expand Down
2 changes: 1 addition & 1 deletion tests/TestClientTraitTest.php
Expand Up @@ -24,7 +24,7 @@ public function testCreateTestHttpClientConfig(array $queue, array $config, call
$assertion($actual);
}

public function clientConfigDataProvider(): array
public static function clientConfigDataProvider(): array
{
return [
'#1' => [
Expand Down

0 comments on commit e41de25

Please sign in to comment.