Skip to content

Commit

Permalink
Mark test providers as static
Browse files Browse the repository at this point in the history
  • Loading branch information
fredden committed Sep 18, 2023
1 parent b674aa9 commit faf33b7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ public function testInstalledVersionsSymbol(string $composerJson): void
self::assertContains('Composer\InstalledVersions', $symbols);
}

public function provideComposerJsonWithUnsuitableComposerRuntimeApi(): Generator
public static function provideComposerJsonWithUnsuitableComposerRuntimeApi(): Generator
{
yield ['{ "require": { "composer-runtime-api": "^1.0" } }'];
yield ['{ "require": { "composer-runtime-api": "^1" } }'];
yield ['{ "require": { "composer-runtime-api": "~1" } }'];
yield ['{ "require": { "composer-runtime-api": "=1" } }'];
}

public function provideComposerJsonWithSuitableComposerRuntimeApi(): Generator
public static function provideComposerJsonWithSuitableComposerRuntimeApi(): Generator
{
yield ['{ "require": { "composer-runtime-api": "^2.0" } }'];
yield ['{ "require": { "composer-runtime-api": "^2" } }'];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public function testLocateWithBlackList(array $blacklist, array $expectedFiles):
}

/** @return array<string, array<array<string>>> */
public function provideBlacklists(): array
public static function provideBlacklists(): array
{
return [
'No blacklist' => [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ public function testFromPsr4WithExcludeFromClassmap(array $excludedPattern, arra
}

/** @return array<string, array<array<string>>> */
public function provideExcludePattern(): array
public static function provideExcludePattern(): array
{
return [
'No exclude pattern' => [
Expand Down

0 comments on commit faf33b7

Please sign in to comment.