From faf33b7e959fd7b62a8c918b6a0e5466f3a0137a Mon Sep 17 00:00:00 2001 From: Dan Wallis Date: Mon, 18 Sep 2023 16:14:08 +0100 Subject: [PATCH] Mark test providers as static --- .../LocateDefinedSymbolsFromComposerRuntimeApiTest.php | 4 ++-- .../FileLocator/LocateAllFilesByExtensionTest.php | 2 +- .../FileLocator/LocateComposerPackageSourceFilesTest.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/ComposerRequireCheckerTest/DefinedSymbolsLocator/LocateDefinedSymbolsFromComposerRuntimeApiTest.php b/test/ComposerRequireCheckerTest/DefinedSymbolsLocator/LocateDefinedSymbolsFromComposerRuntimeApiTest.php index 310b22de..369fdfbe 100644 --- a/test/ComposerRequireCheckerTest/DefinedSymbolsLocator/LocateDefinedSymbolsFromComposerRuntimeApiTest.php +++ b/test/ComposerRequireCheckerTest/DefinedSymbolsLocator/LocateDefinedSymbolsFromComposerRuntimeApiTest.php @@ -37,7 +37,7 @@ 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" } }']; @@ -45,7 +45,7 @@ public function provideComposerJsonWithUnsuitableComposerRuntimeApi(): Generator 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" } }']; diff --git a/test/ComposerRequireCheckerTest/FileLocator/LocateAllFilesByExtensionTest.php b/test/ComposerRequireCheckerTest/FileLocator/LocateAllFilesByExtensionTest.php index 3e392b49..f6c64f63 100644 --- a/test/ComposerRequireCheckerTest/FileLocator/LocateAllFilesByExtensionTest.php +++ b/test/ComposerRequireCheckerTest/FileLocator/LocateAllFilesByExtensionTest.php @@ -107,7 +107,7 @@ public function testLocateWithBlackList(array $blacklist, array $expectedFiles): } /** @return array>> */ - public function provideBlacklists(): array + public static function provideBlacklists(): array { return [ 'No blacklist' => [ diff --git a/test/ComposerRequireCheckerTest/FileLocator/LocateComposerPackageSourceFilesTest.php b/test/ComposerRequireCheckerTest/FileLocator/LocateComposerPackageSourceFilesTest.php index 3cef6918..e85867c0 100644 --- a/test/ComposerRequireCheckerTest/FileLocator/LocateComposerPackageSourceFilesTest.php +++ b/test/ComposerRequireCheckerTest/FileLocator/LocateComposerPackageSourceFilesTest.php @@ -183,7 +183,7 @@ public function testFromPsr4WithExcludeFromClassmap(array $excludedPattern, arra } /** @return array>> */ - public function provideExcludePattern(): array + public static function provideExcludePattern(): array { return [ 'No exclude pattern' => [