From 131314ee7b733146e5636ee2071a2a9149b05e9a Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Tue, 4 Nov 2025 16:18:09 +0100 Subject: [PATCH 1/7] Added `make infection` command to run it locally --- .gitignore | 2 ++ Makefile | 9 +++++++++ 2 files changed, 11 insertions(+) diff --git a/.gitignore b/.gitignore index c4d0656bfb..a1528dc276 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,8 @@ /compiler/vendor /conf/config.local.yml /build-cs +/infection.json5 +/build-infection /vendor /.idea/* !.idea/icon.png diff --git a/Makefile b/Makefile index f5476d6067..456187b94e 100644 --- a/Makefile +++ b/Makefile @@ -163,3 +163,12 @@ name-collision: composer-dependency-analyser: php vendor/bin/composer-dependency-analyser --config build/composer-dependency-analyser.php + +.PHONY: infection +infection: + git clone https://github.com/phpstan/build-infection.git || true + git -C build-infection fetch origin && git -C build-infection reset --hard origin/1.x + composer install --working-dir build-infection --no-interaction --no-progress + php build-infection/bin/infection-config.php --source-directory='build/PHPStan/Build'> infection.json5 + php vendor/bin/infection --ignore-msi-with-no-mutations --logger-text=php://stdout + rm infection.json5 From 374676afce5b4263a0f87f8e6908d8a16a9b8cd4 Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Tue, 4 Nov 2025 16:27:22 +0100 Subject: [PATCH 2/7] Update Makefile --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 456187b94e..21b1a90bd9 100644 --- a/Makefile +++ b/Makefile @@ -170,5 +170,7 @@ infection: git -C build-infection fetch origin && git -C build-infection reset --hard origin/1.x composer install --working-dir build-infection --no-interaction --no-progress php build-infection/bin/infection-config.php --source-directory='build/PHPStan/Build'> infection.json5 - php vendor/bin/infection --ignore-msi-with-no-mutations --logger-text=php://stdout + version=$(jq -r '.packages[] | select(.name == "infection/infection") | .version' build-infection/composer.lock) + composer require infection/infection:$version --dev + php build-infection/vendor/bin/infection --ignore-msi-with-no-mutations --logger-text=php://stdout rm infection.json5 From c600d8fd123afc37120a1de91037dbaa5899bd4d Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Tue, 4 Nov 2025 16:38:27 +0100 Subject: [PATCH 3/7] Update Makefile --- Makefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 21b1a90bd9..5046a734a4 100644 --- a/Makefile +++ b/Makefile @@ -170,7 +170,8 @@ infection: git -C build-infection fetch origin && git -C build-infection reset --hard origin/1.x composer install --working-dir build-infection --no-interaction --no-progress php build-infection/bin/infection-config.php --source-directory='build/PHPStan/Build'> infection.json5 - version=$(jq -r '.packages[] | select(.name == "infection/infection") | .version' build-infection/composer.lock) - composer require infection/infection:$version --dev - php build-infection/vendor/bin/infection --ignore-msi-with-no-mutations --logger-text=php://stdout - rm infection.json5 + version=$(shell jq -r '.packages[] | select(.name == "infection/infection") | .version' build-infection/composer.lock); \ + wget https://github.com/infection/infection/releases/download/$$version/infection.phar; + chmod +x infection.phar + php infection.phar --ignore-msi-with-no-mutations --logger-text=php://stdout + rm infection.json5 infection.phar From 110851f007107f60d638a091dced66e0c1ecf5ee Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Tue, 4 Nov 2025 16:41:53 +0100 Subject: [PATCH 4/7] Update .gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index a1528dc276..4ef98d85fc 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ /conf/config.local.yml /build-cs /infection.json5 +/infection.phar /build-infection /vendor /.idea/* From 108f77d5ed5e4149898e8f361d4a2a66490f3e8a Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Tue, 4 Nov 2025 16:42:43 +0100 Subject: [PATCH 5/7] Update Makefile --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5046a734a4..efb33e4c09 100644 --- a/Makefile +++ b/Makefile @@ -171,7 +171,7 @@ infection: composer install --working-dir build-infection --no-interaction --no-progress php build-infection/bin/infection-config.php --source-directory='build/PHPStan/Build'> infection.json5 version=$(shell jq -r '.packages[] | select(.name == "infection/infection") | .version' build-infection/composer.lock); \ - wget https://github.com/infection/infection/releases/download/$$version/infection.phar; + wget https://github.com/infection/infection/releases/download/$$version/infection.phar --no-clobber; chmod +x infection.phar php infection.phar --ignore-msi-with-no-mutations --logger-text=php://stdout rm infection.json5 infection.phar From 1d5946d467a1f60e87fe1c34a9aa23a137e7e417 Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Tue, 4 Nov 2025 21:58:47 +0100 Subject: [PATCH 6/7] Update Makefile --- Makefile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index efb33e4c09..70f6cf5118 100644 --- a/Makefile +++ b/Makefile @@ -173,5 +173,14 @@ infection: version=$(shell jq -r '.packages[] | select(.name == "infection/infection") | .version' build-infection/composer.lock); \ wget https://github.com/infection/infection/releases/download/$$version/infection.phar --no-clobber; chmod +x infection.phar - php infection.phar --ignore-msi-with-no-mutations --logger-text=php://stdout + XDEBUG_MODE=coverage php tests/vendor/bin/paratest \ + --coverage-xml=tmp/coverage/coverage-xml \ + --log-junit=tmp/coverage/junit.xml + php infection.phar \ + --git-diff-base=origin/2.1.x \ + --git-diff-lines \ + --coverage=tmp/coverage \ + --skip-initial-tests \ + --ignore-msi-with-no-mutations \ + --logger-text=php://stdout rm infection.json5 infection.phar From cabaa73d997a2a72f89df34092f4bb8663eb48cc Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Wed, 5 Nov 2025 20:03:23 +0100 Subject: [PATCH 7/7] Added #[Covers*] attributes to tests --- tests/PHPStan/Analyser/AnalyserIntegrationTest.php | 1 + tests/PHPStan/Analyser/AnalyserTest.php | 1 + tests/PHPStan/Analyser/AnalyserTraitsIntegrationTest.php | 1 + .../PHPStan/Analyser/AnalyserWithCheckDynamicPropertiesTest.php | 1 + tests/PHPStan/Analyser/ArgumentsNormalizerLegacyTest.php | 2 ++ tests/PHPStan/Analyser/ArgumentsNormalizerTest.php | 1 + tests/PHPStan/Analyser/ErrorTest.php | 2 ++ tests/PHPStan/Analyser/ExpressionResultTest.php | 1 + tests/PHPStan/Analyser/Ignore/IgnoreLexerTest.php | 2 ++ tests/PHPStan/Analyser/ScopeTest.php | 1 + tests/PHPStan/Analyser/StatementResultTest.php | 1 + tests/PHPStan/Analyser/TypeSpecifierContextTest.php | 2 ++ tests/PHPStan/Analyser/TypeSpecifierTest.php | 2 ++ tests/PHPStan/Collectors/RegistryTest.php | 1 + tests/PHPStan/Command/AnalyseApplicationIntegrationTest.php | 1 + tests/PHPStan/Command/AnalyseCommandTest.php | 1 + tests/PHPStan/Command/AnalysisResultTest.php | 1 + tests/PHPStan/Command/IgnoredRegexValidatorTest.php | 2 ++ .../DependencyInjection/ConditionalTagsExtensionTest.php | 1 + tests/PHPStan/DependencyInjection/IgnoreErrorsTest.php | 1 + .../DependencyInjection/InvalidIgnoredErrorExceptionTest.php | 1 + tests/PHPStan/DependencyInjection/Nette/NetteContainerTest.php | 1 + tests/PHPStan/File/FileExcluderTest.php | 2 ++ tests/PHPStan/File/FileHelperTest.php | 2 ++ tests/PHPStan/Generics/TemplateTypeFactoryTest.php | 1 + tests/PHPStan/Parser/CachedParserTest.php | 2 ++ tests/PHPStan/Parser/CleaningParserTest.php | 2 ++ tests/PHPStan/Parser/ParserTest.php | 1 + tests/PHPStan/Parser/RichParserTest.php | 1 + tests/PHPStan/PhpDoc/DefaultStubFilesProviderTest.php | 1 + tests/PHPStan/PhpDoc/PhpDocStringResolverTest.php | 1 + tests/PHPStan/PhpDoc/TypeDescriptionTest.php | 1 + tests/PHPStan/PhpDoc/TypeStringResolverTest.php | 1 + .../AnnotationsMethodsClassReflectionExtensionTest.php | 1 + .../AnnotationsPropertiesClassReflectionExtensionTest.php | 1 + .../Reflection/Annotations/DeprecatedAnnotationsTest.php | 1 + tests/PHPStan/Reflection/Annotations/FinalAnnotationsTest.php | 1 + .../PHPStan/Reflection/Annotations/InternalAnnotationsTest.php | 1 + tests/PHPStan/Reflection/Annotations/ThrowsAnnotationsTest.php | 1 + tests/PHPStan/Reflection/AttributeReflectionTest.php | 1 + .../SourceLocator/AutoloadSourceLocatorTest.php | 1 + .../SourceLocator/OptimizedDirectorySourceLocatorTest.php | 1 + .../SourceLocator/OptimizedSingleFileSourceLocatorTest.php | 1 + tests/PHPStan/Reflection/ClassReflectionPropertyHooksTest.php | 1 + tests/PHPStan/Reflection/ClassReflectionTest.php | 1 + .../Reflection/Constant/RuntimeConstantReflectionTest.php | 1 + .../PHPStan/Reflection/Deprecation/DeprecationProviderTest.php | 1 + tests/PHPStan/Reflection/FunctionReflectionTest.php | 1 + .../Reflection/GenericParametersAcceptorResolverTest.php | 1 + tests/PHPStan/Reflection/InitializerExprTypeResolverTest.php | 1 + tests/PHPStan/Reflection/MixedTypeTest.php | 1 + tests/PHPStan/Reflection/ParametersAcceptorSelectorTest.php | 2 ++ .../Php/UniversalObjectCratesClassReflectionExtensionTest.php | 1 + tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php | 1 + tests/PHPStan/Reflection/ReflectionProviderTest.php | 1 + tests/PHPStan/Reflection/SignatureMap/FunctionMetadataTest.php | 1 + .../Reflection/SignatureMap/Php8SignatureMapProviderTest.php | 1 + .../PHPStan/Reflection/SignatureMap/SignatureMapParserTest.php | 1 + .../Reflection/Type/IntersectionTypeMethodReflectionTest.php | 1 + tests/PHPStan/Reflection/Type/UnionTypeMethodReflectionTest.php | 1 + tests/PHPStan/Reflection/UnionTypesTest.php | 1 + tests/PHPStan/Rules/DirectRegistryTest.php | 1 + .../Rules/Exceptions/DefaultExceptionTypeResolverTest.php | 1 + tests/PHPStan/TrinaryLogicTest.php | 2 ++ tests/PHPStan/Type/Accessory/HasMethodTypeTest.php | 1 + tests/PHPStan/Type/Accessory/HasPropertyTypeTest.php | 1 + tests/PHPStan/Type/ArrayTypeTest.php | 2 ++ tests/PHPStan/Type/BenevolentUnionTypeTest.php | 1 + tests/PHPStan/Type/BitwiseFlagHelperTest.php | 1 + tests/PHPStan/Type/BooleanTypeTest.php | 2 ++ tests/PHPStan/Type/CallableTypeTest.php | 1 + tests/PHPStan/Type/ClassStringTypeTest.php | 1 + tests/PHPStan/Type/ClosureTypeFactoryTest.php | 1 + tests/PHPStan/Type/ClosureTypeTest.php | 1 + tests/PHPStan/Type/Constant/ConstantArrayTypeBuilderTest.php | 1 + tests/PHPStan/Type/Constant/ConstantArrayTypeTest.php | 1 + tests/PHPStan/Type/Constant/ConstantFloatTypeTest.php | 1 + tests/PHPStan/Type/Constant/ConstantIntegerTypeTest.php | 1 + tests/PHPStan/Type/Constant/ConstantStringTypeTest.php | 1 + tests/PHPStan/Type/Constant/OversizedArrayBuilderTest.php | 1 + tests/PHPStan/Type/Enum/EnumCaseObjectTypeTest.php | 1 + tests/PHPStan/Type/FileTypeMapperTest.php | 1 + tests/PHPStan/Type/FloatTypeTest.php | 1 + tests/PHPStan/Type/Generic/GenericClassStringTypeTest.php | 1 + tests/PHPStan/Type/Generic/GenericObjectTypeTest.php | 1 + tests/PHPStan/Type/Generic/TemplateTypeHelperTest.php | 1 + tests/PHPStan/Type/Generic/TemplateTypeMapTest.php | 1 + tests/PHPStan/Type/Generic/TemplateTypeVarianceTest.php | 1 + tests/PHPStan/Type/IntegerTypeTest.php | 1 + tests/PHPStan/Type/IntersectionTypeTest.php | 1 + tests/PHPStan/Type/IterableTypeTest.php | 1 + tests/PHPStan/Type/MixedTypeTest.php | 1 + tests/PHPStan/Type/ObjectTypeTest.php | 1 + tests/PHPStan/Type/ObjectWithoutClassTypeTest.php | 1 + tests/PHPStan/Type/Regex/RegexExpressionHelperTest.php | 1 + tests/PHPStan/Type/SimultaneousTypeTraverserTest.php | 1 + tests/PHPStan/Type/StaticTypeTest.php | 1 + tests/PHPStan/Type/StringTypeTest.php | 1 + tests/PHPStan/Type/TemplateTypeTest.php | 1 + .../Type/TestDecimalOperatorTypeSpecifyingExtensionTest.php | 1 + tests/PHPStan/Type/TypeCombinatorTest.php | 1 + tests/PHPStan/Type/TypeGetFiniteTypesTest.php | 1 + tests/PHPStan/Type/TypeToPhpDocNodeTest.php | 1 + tests/PHPStan/Type/UnionTypeTest.php | 1 + tests/PHPStan/Type/VerbosityLevelTest.php | 1 + 105 files changed, 119 insertions(+) diff --git a/tests/PHPStan/Analyser/AnalyserIntegrationTest.php b/tests/PHPStan/Analyser/AnalyserIntegrationTest.php index 34daffc9ab..00b0ba1074 100644 --- a/tests/PHPStan/Analyser/AnalyserIntegrationTest.php +++ b/tests/PHPStan/Analyser/AnalyserIntegrationTest.php @@ -16,6 +16,7 @@ use function sprintf; use const PHP_VERSION_ID; +#[\PHPUnit\Framework\Attributes\CoversNothing] class AnalyserIntegrationTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Analyser/AnalyserTest.php b/tests/PHPStan/Analyser/AnalyserTest.php index 8714dc736f..1ef29816d8 100644 --- a/tests/PHPStan/Analyser/AnalyserTest.php +++ b/tests/PHPStan/Analyser/AnalyserTest.php @@ -44,6 +44,7 @@ use function substr; use const PHP_OS; +#[\PHPUnit\Framework\Attributes\CoversNothing] class AnalyserTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Analyser/AnalyserTraitsIntegrationTest.php b/tests/PHPStan/Analyser/AnalyserTraitsIntegrationTest.php index 914064439f..5481658b6a 100644 --- a/tests/PHPStan/Analyser/AnalyserTraitsIntegrationTest.php +++ b/tests/PHPStan/Analyser/AnalyserTraitsIntegrationTest.php @@ -12,6 +12,7 @@ use function sprintf; use function usort; +#[\PHPUnit\Framework\Attributes\CoversNothing] class AnalyserTraitsIntegrationTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Analyser/AnalyserWithCheckDynamicPropertiesTest.php b/tests/PHPStan/Analyser/AnalyserWithCheckDynamicPropertiesTest.php index b6a160de93..b3afa2121f 100644 --- a/tests/PHPStan/Analyser/AnalyserWithCheckDynamicPropertiesTest.php +++ b/tests/PHPStan/Analyser/AnalyserWithCheckDynamicPropertiesTest.php @@ -6,6 +6,7 @@ use function array_merge; use function array_unique; +#[\PHPUnit\Framework\Attributes\CoversNothing] class AnalyserWithCheckDynamicPropertiesTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Analyser/ArgumentsNormalizerLegacyTest.php b/tests/PHPStan/Analyser/ArgumentsNormalizerLegacyTest.php index 06235a934e..fd8542239e 100644 --- a/tests/PHPStan/Analyser/ArgumentsNormalizerLegacyTest.php +++ b/tests/PHPStan/Analyser/ArgumentsNormalizerLegacyTest.php @@ -13,8 +13,10 @@ use PHPStan\ShouldNotHappenException; use PHPStan\Testing\PHPStanTestCase; use PHPStan\Type\Constant\ConstantIntegerType; +use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\Attributes\RequiresPhp; +#[CoversClass(ArgumentsNormalizer::class)] final class ArgumentsNormalizerLegacyTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Analyser/ArgumentsNormalizerTest.php b/tests/PHPStan/Analyser/ArgumentsNormalizerTest.php index b2cc10be5d..20459cbe46 100644 --- a/tests/PHPStan/Analyser/ArgumentsNormalizerTest.php +++ b/tests/PHPStan/Analyser/ArgumentsNormalizerTest.php @@ -20,6 +20,7 @@ use PHPUnit\Framework\Attributes\DataProvider; use function count; +#[CoversClass(ArgumentsNormalizer::class)] class ArgumentsNormalizerTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Analyser/ErrorTest.php b/tests/PHPStan/Analyser/ErrorTest.php index e59abafff3..4e6d84324a 100644 --- a/tests/PHPStan/Analyser/ErrorTest.php +++ b/tests/PHPStan/Analyser/ErrorTest.php @@ -3,8 +3,10 @@ namespace PHPStan\Analyser; use PHPStan\Testing\PHPStanTestCase; +use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\Attributes\DataProvider; +#[CoversClass(Error::class)] class ErrorTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Analyser/ExpressionResultTest.php b/tests/PHPStan/Analyser/ExpressionResultTest.php index 56b699f1fc..0d31f88841 100644 --- a/tests/PHPStan/Analyser/ExpressionResultTest.php +++ b/tests/PHPStan/Analyser/ExpressionResultTest.php @@ -15,6 +15,7 @@ use function get_class; use function sprintf; +#[\PHPUnit\Framework\Attributes\CoversNothing] class ExpressionResultTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Analyser/Ignore/IgnoreLexerTest.php b/tests/PHPStan/Analyser/Ignore/IgnoreLexerTest.php index 6e46630df6..51c850a62a 100644 --- a/tests/PHPStan/Analyser/Ignore/IgnoreLexerTest.php +++ b/tests/PHPStan/Analyser/Ignore/IgnoreLexerTest.php @@ -3,11 +3,13 @@ namespace PHPStan\Analyser\Ignore; use PHPStan\Testing\PHPStanTestCase; +use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\Attributes\DataProvider; use function array_pop; use function substr_count; use const PHP_EOL; +#[CoversClass(IgnoreLexer::class)] class IgnoreLexerTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Analyser/ScopeTest.php b/tests/PHPStan/Analyser/ScopeTest.php index e83ed19354..0380e51fb2 100644 --- a/tests/PHPStan/Analyser/ScopeTest.php +++ b/tests/PHPStan/Analyser/ScopeTest.php @@ -18,6 +18,7 @@ use PHPStan\Type\VerbosityLevel; use PHPUnit\Framework\Attributes\DataProvider; +#[\PHPUnit\Framework\Attributes\CoversNothing] class ScopeTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Analyser/StatementResultTest.php b/tests/PHPStan/Analyser/StatementResultTest.php index 680f528815..b7c0a763b5 100644 --- a/tests/PHPStan/Analyser/StatementResultTest.php +++ b/tests/PHPStan/Analyser/StatementResultTest.php @@ -13,6 +13,7 @@ use PHPUnit\Framework\Attributes\DataProvider; use function sprintf; +#[\PHPUnit\Framework\Attributes\CoversNothing] class StatementResultTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Analyser/TypeSpecifierContextTest.php b/tests/PHPStan/Analyser/TypeSpecifierContextTest.php index 10c28510a5..c752e614ba 100644 --- a/tests/PHPStan/Analyser/TypeSpecifierContextTest.php +++ b/tests/PHPStan/Analyser/TypeSpecifierContextTest.php @@ -4,8 +4,10 @@ use PHPStan\ShouldNotHappenException; use PHPStan\Testing\PHPStanTestCase; +use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\Attributes\DataProvider; +#[CoversClass(TypeSpecifierContext::class)] class TypeSpecifierContextTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Analyser/TypeSpecifierTest.php b/tests/PHPStan/Analyser/TypeSpecifierTest.php index dfcfae42dc..997da32228 100644 --- a/tests/PHPStan/Analyser/TypeSpecifierTest.php +++ b/tests/PHPStan/Analyser/TypeSpecifierTest.php @@ -36,6 +36,7 @@ use PHPStan\Type\StringType; use PHPStan\Type\UnionType; use PHPStan\Type\VerbosityLevel; +use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\Attributes\DataProvider; use function implode; use function sprintf; @@ -43,6 +44,7 @@ use const PHP_INT_MIN; use const PHP_VERSION_ID; +#[CoversClass(TypeSpecifierTest::class)] class TypeSpecifierTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Collectors/RegistryTest.php b/tests/PHPStan/Collectors/RegistryTest.php index ac7e0c2e9d..a08b65c5d3 100644 --- a/tests/PHPStan/Collectors/RegistryTest.php +++ b/tests/PHPStan/Collectors/RegistryTest.php @@ -6,6 +6,7 @@ use PHPStan\Analyser\Scope; use PHPStan\Testing\PHPStanTestCase; +#[\PHPUnit\Framework\Attributes\CoversNothing] class RegistryTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Command/AnalyseApplicationIntegrationTest.php b/tests/PHPStan/Command/AnalyseApplicationIntegrationTest.php index b13cb49ef9..8e60136c6c 100644 --- a/tests/PHPStan/Command/AnalyseApplicationIntegrationTest.php +++ b/tests/PHPStan/Command/AnalyseApplicationIntegrationTest.php @@ -22,6 +22,7 @@ use function stream_get_contents; use const DIRECTORY_SEPARATOR; +#[\PHPUnit\Framework\Attributes\CoversNothing] class AnalyseApplicationIntegrationTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Command/AnalyseCommandTest.php b/tests/PHPStan/Command/AnalyseCommandTest.php index f2c4f4d73a..f40173b1ce 100644 --- a/tests/PHPStan/Command/AnalyseCommandTest.php +++ b/tests/PHPStan/Command/AnalyseCommandTest.php @@ -17,6 +17,7 @@ use const PHP_EOL; #[Group('exec')] +#[\PHPUnit\Framework\Attributes\CoversNothing] class AnalyseCommandTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Command/AnalysisResultTest.php b/tests/PHPStan/Command/AnalysisResultTest.php index 2ea3344a9b..cb3c3df85b 100644 --- a/tests/PHPStan/Command/AnalysisResultTest.php +++ b/tests/PHPStan/Command/AnalysisResultTest.php @@ -5,6 +5,7 @@ use PHPStan\Analyser\Error; use PHPStan\Testing\PHPStanTestCase; +#[\PHPUnit\Framework\Attributes\CoversNothing] final class AnalysisResultTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Command/IgnoredRegexValidatorTest.php b/tests/PHPStan/Command/IgnoredRegexValidatorTest.php index 2b64d9e534..44b75fe55b 100644 --- a/tests/PHPStan/Command/IgnoredRegexValidatorTest.php +++ b/tests/PHPStan/Command/IgnoredRegexValidatorTest.php @@ -6,8 +6,10 @@ use Hoa\File\Read; use PHPStan\PhpDoc\TypeStringResolver; use PHPStan\Testing\PHPStanTestCase; +use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\Attributes\DataProvider; +#[CoversClass(IgnoredRegexValidator::class)] class IgnoredRegexValidatorTest extends PHPStanTestCase { diff --git a/tests/PHPStan/DependencyInjection/ConditionalTagsExtensionTest.php b/tests/PHPStan/DependencyInjection/ConditionalTagsExtensionTest.php index c512a1720e..ad272a817c 100644 --- a/tests/PHPStan/DependencyInjection/ConditionalTagsExtensionTest.php +++ b/tests/PHPStan/DependencyInjection/ConditionalTagsExtensionTest.php @@ -7,6 +7,7 @@ use function array_map; use function get_class; +#[\PHPUnit\Framework\Attributes\CoversNothing] class ConditionalTagsExtensionTest extends PHPStanTestCase { diff --git a/tests/PHPStan/DependencyInjection/IgnoreErrorsTest.php b/tests/PHPStan/DependencyInjection/IgnoreErrorsTest.php index f24e65abc2..4711641e39 100644 --- a/tests/PHPStan/DependencyInjection/IgnoreErrorsTest.php +++ b/tests/PHPStan/DependencyInjection/IgnoreErrorsTest.php @@ -4,6 +4,7 @@ use PHPStan\Testing\PHPStanTestCase; +#[\PHPUnit\Framework\Attributes\CoversNothing] class IgnoreErrorsTest extends PHPStanTestCase { diff --git a/tests/PHPStan/DependencyInjection/InvalidIgnoredErrorExceptionTest.php b/tests/PHPStan/DependencyInjection/InvalidIgnoredErrorExceptionTest.php index 6d8ac35b8c..ef60f2a6b7 100644 --- a/tests/PHPStan/DependencyInjection/InvalidIgnoredErrorExceptionTest.php +++ b/tests/PHPStan/DependencyInjection/InvalidIgnoredErrorExceptionTest.php @@ -5,6 +5,7 @@ use PHPStan\Testing\PHPStanTestCase; use PHPUnit\Framework\Attributes\DataProvider; +#[\PHPUnit\Framework\Attributes\CoversNothing] class InvalidIgnoredErrorExceptionTest extends PHPStanTestCase { diff --git a/tests/PHPStan/DependencyInjection/Nette/NetteContainerTest.php b/tests/PHPStan/DependencyInjection/Nette/NetteContainerTest.php index e7629e4f83..dd5bea6032 100644 --- a/tests/PHPStan/DependencyInjection/Nette/NetteContainerTest.php +++ b/tests/PHPStan/DependencyInjection/Nette/NetteContainerTest.php @@ -7,6 +7,7 @@ use PHPStan\TrinaryLogic; use PHPStan\Type\Php\ReflectionGetAttributesMethodReturnTypeExtension; +#[\PHPUnit\Framework\Attributes\CoversNothing] class NetteContainerTest extends PHPStanTestCase { diff --git a/tests/PHPStan/File/FileExcluderTest.php b/tests/PHPStan/File/FileExcluderTest.php index 02aff99453..8eff71f1d4 100644 --- a/tests/PHPStan/File/FileExcluderTest.php +++ b/tests/PHPStan/File/FileExcluderTest.php @@ -3,8 +3,10 @@ namespace PHPStan\File; use PHPStan\Testing\PHPStanTestCase; +use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\Attributes\DataProvider; +#[CoversClass(FileExcluder::class)] class FileExcluderTest extends PHPStanTestCase { diff --git a/tests/PHPStan/File/FileHelperTest.php b/tests/PHPStan/File/FileHelperTest.php index ac2cef5fd1..6604e51076 100644 --- a/tests/PHPStan/File/FileHelperTest.php +++ b/tests/PHPStan/File/FileHelperTest.php @@ -3,8 +3,10 @@ namespace PHPStan\File; use PHPStan\Testing\PHPStanTestCase; +use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\Attributes\DataProvider; +#[CoversClass(FileHelper::class)] class FileHelperTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Generics/TemplateTypeFactoryTest.php b/tests/PHPStan/Generics/TemplateTypeFactoryTest.php index 20be5000fc..1aca70120f 100644 --- a/tests/PHPStan/Generics/TemplateTypeFactoryTest.php +++ b/tests/PHPStan/Generics/TemplateTypeFactoryTest.php @@ -18,6 +18,7 @@ use PHPUnit\Framework\Attributes\DataProvider; use function sprintf; +#[\PHPUnit\Framework\Attributes\CoversNothing] class TemplateTypeFactoryTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Parser/CachedParserTest.php b/tests/PHPStan/Parser/CachedParserTest.php index a0df7a1b2a..7fac4dbc92 100644 --- a/tests/PHPStan/Parser/CachedParserTest.php +++ b/tests/PHPStan/Parser/CachedParserTest.php @@ -8,9 +8,11 @@ use PHPStan\File\FileHelper; use PHPStan\File\FileReader; use PHPStan\Testing\PHPStanTestCase; +use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\MockObject\MockObject; +#[CoversClass(CachedParser::class)] class CachedParserTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Parser/CleaningParserTest.php b/tests/PHPStan/Parser/CleaningParserTest.php index c94558ed89..da5b1469a8 100644 --- a/tests/PHPStan/Parser/CleaningParserTest.php +++ b/tests/PHPStan/Parser/CleaningParserTest.php @@ -9,9 +9,11 @@ use PHPStan\Node\Printer\Printer; use PHPStan\Php\PhpVersion; use PHPStan\Testing\PHPStanTestCase; +use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\Attributes\DataProvider; use const PHP_VERSION_ID; +#[CoversClass(CleaningParser::class)] class CleaningParserTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Parser/ParserTest.php b/tests/PHPStan/Parser/ParserTest.php index 7dd2e22a05..9b3b424dd3 100644 --- a/tests/PHPStan/Parser/ParserTest.php +++ b/tests/PHPStan/Parser/ParserTest.php @@ -6,6 +6,7 @@ use PHPUnit\Framework\Attributes\DataProvider; use function count; +#[\PHPUnit\Framework\Attributes\CoversNothing] class ParserTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Parser/RichParserTest.php b/tests/PHPStan/Parser/RichParserTest.php index a821dbdb5c..e0d68b2938 100644 --- a/tests/PHPStan/Parser/RichParserTest.php +++ b/tests/PHPStan/Parser/RichParserTest.php @@ -6,6 +6,7 @@ use PHPUnit\Framework\Attributes\DataProvider; use const PHP_EOL; +#[\PHPUnit\Framework\Attributes\CoversNothing] class RichParserTest extends PHPStanTestCase { diff --git a/tests/PHPStan/PhpDoc/DefaultStubFilesProviderTest.php b/tests/PHPStan/PhpDoc/DefaultStubFilesProviderTest.php index a1e0faf4a2..2ba1d5413d 100644 --- a/tests/PHPStan/PhpDoc/DefaultStubFilesProviderTest.php +++ b/tests/PHPStan/PhpDoc/DefaultStubFilesProviderTest.php @@ -9,6 +9,7 @@ use function sprintf; use const DIRECTORY_SEPARATOR; +#[\PHPUnit\Framework\Attributes\CoversNothing] class DefaultStubFilesProviderTest extends PHPStanTestCase { diff --git a/tests/PHPStan/PhpDoc/PhpDocStringResolverTest.php b/tests/PHPStan/PhpDoc/PhpDocStringResolverTest.php index ba59b49188..e2a29a5b4e 100644 --- a/tests/PHPStan/PhpDoc/PhpDocStringResolverTest.php +++ b/tests/PHPStan/PhpDoc/PhpDocStringResolverTest.php @@ -5,6 +5,7 @@ use PHPStan\PhpDocParser\Parser\ParserException; use PHPStan\Testing\PHPStanTestCase; +#[\PHPUnit\Framework\Attributes\CoversNothing] class PhpDocStringResolverTest extends PHPStanTestCase { diff --git a/tests/PHPStan/PhpDoc/TypeDescriptionTest.php b/tests/PHPStan/PhpDoc/TypeDescriptionTest.php index e7147bb077..d9ccd12aa8 100644 --- a/tests/PHPStan/PhpDoc/TypeDescriptionTest.php +++ b/tests/PHPStan/PhpDoc/TypeDescriptionTest.php @@ -22,6 +22,7 @@ use PHPUnit\Framework\Attributes\DataProvider; use function sprintf; +#[\PHPUnit\Framework\Attributes\CoversNothing] class TypeDescriptionTest extends PHPStanTestCase { diff --git a/tests/PHPStan/PhpDoc/TypeStringResolverTest.php b/tests/PHPStan/PhpDoc/TypeStringResolverTest.php index ccfa42e0b2..c134b27ccf 100644 --- a/tests/PHPStan/PhpDoc/TypeStringResolverTest.php +++ b/tests/PHPStan/PhpDoc/TypeStringResolverTest.php @@ -5,6 +5,7 @@ use PHPStan\PhpDocParser\Parser\ParserException; use PHPStan\Testing\PHPStanTestCase; +#[\PHPUnit\Framework\Attributes\CoversNothing] class TypeStringResolverTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Reflection/Annotations/AnnotationsMethodsClassReflectionExtensionTest.php b/tests/PHPStan/Reflection/Annotations/AnnotationsMethodsClassReflectionExtensionTest.php index 2be55e8284..3e7ebf3728 100644 --- a/tests/PHPStan/Reflection/Annotations/AnnotationsMethodsClassReflectionExtensionTest.php +++ b/tests/PHPStan/Reflection/Annotations/AnnotationsMethodsClassReflectionExtensionTest.php @@ -17,6 +17,7 @@ use function count; use function sprintf; +#[\PHPUnit\Framework\Attributes\CoversNothing] class AnnotationsMethodsClassReflectionExtensionTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Reflection/Annotations/AnnotationsPropertiesClassReflectionExtensionTest.php b/tests/PHPStan/Reflection/Annotations/AnnotationsPropertiesClassReflectionExtensionTest.php index f654fdbb51..daff1938c1 100644 --- a/tests/PHPStan/Reflection/Annotations/AnnotationsPropertiesClassReflectionExtensionTest.php +++ b/tests/PHPStan/Reflection/Annotations/AnnotationsPropertiesClassReflectionExtensionTest.php @@ -14,6 +14,7 @@ use PHPUnit\Framework\Attributes\DataProvider; use function sprintf; +#[\PHPUnit\Framework\Attributes\CoversNothing] class AnnotationsPropertiesClassReflectionExtensionTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Reflection/Annotations/DeprecatedAnnotationsTest.php b/tests/PHPStan/Reflection/Annotations/DeprecatedAnnotationsTest.php index 936d56b4aa..da495a8591 100644 --- a/tests/PHPStan/Reflection/Annotations/DeprecatedAnnotationsTest.php +++ b/tests/PHPStan/Reflection/Annotations/DeprecatedAnnotationsTest.php @@ -20,6 +20,7 @@ use PHPUnit\Framework\Attributes\RequiresPhp; use const PHP_VERSION_ID; +#[\PHPUnit\Framework\Attributes\CoversNothing] class DeprecatedAnnotationsTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Reflection/Annotations/FinalAnnotationsTest.php b/tests/PHPStan/Reflection/Annotations/FinalAnnotationsTest.php index b24c82fba9..cd1f12b20a 100644 --- a/tests/PHPStan/Reflection/Annotations/FinalAnnotationsTest.php +++ b/tests/PHPStan/Reflection/Annotations/FinalAnnotationsTest.php @@ -8,6 +8,7 @@ use PHPStan\Testing\PHPStanTestCase; use PHPUnit\Framework\Attributes\DataProvider; +#[\PHPUnit\Framework\Attributes\CoversNothing] class FinalAnnotationsTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Reflection/Annotations/InternalAnnotationsTest.php b/tests/PHPStan/Reflection/Annotations/InternalAnnotationsTest.php index 9e4e36901f..67a1d36417 100644 --- a/tests/PHPStan/Reflection/Annotations/InternalAnnotationsTest.php +++ b/tests/PHPStan/Reflection/Annotations/InternalAnnotationsTest.php @@ -13,6 +13,7 @@ use PHPStan\Testing\PHPStanTestCase; use PHPUnit\Framework\Attributes\DataProvider; +#[\PHPUnit\Framework\Attributes\CoversNothing] class InternalAnnotationsTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Reflection/Annotations/ThrowsAnnotationsTest.php b/tests/PHPStan/Reflection/Annotations/ThrowsAnnotationsTest.php index b58322ca01..e29c6e108a 100644 --- a/tests/PHPStan/Reflection/Annotations/ThrowsAnnotationsTest.php +++ b/tests/PHPStan/Reflection/Annotations/ThrowsAnnotationsTest.php @@ -14,6 +14,7 @@ use ThrowsAnnotations\FooTrait; use ThrowsAnnotations\PhpstanFoo; +#[\PHPUnit\Framework\Attributes\CoversNothing] class ThrowsAnnotationsTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Reflection/AttributeReflectionTest.php b/tests/PHPStan/Reflection/AttributeReflectionTest.php index ff46c44404..d3e19ee20a 100644 --- a/tests/PHPStan/Reflection/AttributeReflectionTest.php +++ b/tests/PHPStan/Reflection/AttributeReflectionTest.php @@ -12,6 +12,7 @@ use function count; use const PHP_VERSION_ID; +#[\PHPUnit\Framework\Attributes\CoversNothing] class AttributeReflectionTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Reflection/BetterReflection/SourceLocator/AutoloadSourceLocatorTest.php b/tests/PHPStan/Reflection/BetterReflection/SourceLocator/AutoloadSourceLocatorTest.php index 6e4c91a783..3f6f5186e3 100644 --- a/tests/PHPStan/Reflection/BetterReflection/SourceLocator/AutoloadSourceLocatorTest.php +++ b/tests/PHPStan/Reflection/BetterReflection/SourceLocator/AutoloadSourceLocatorTest.php @@ -17,6 +17,7 @@ function testFunctionForLocator(): void // phpcs:disable echo 'test'; } +#[\PHPUnit\Framework\Attributes\CoversNothing] class AutoloadSourceLocatorTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Reflection/BetterReflection/SourceLocator/OptimizedDirectorySourceLocatorTest.php b/tests/PHPStan/Reflection/BetterReflection/SourceLocator/OptimizedDirectorySourceLocatorTest.php index 06c9407908..41fad479d8 100644 --- a/tests/PHPStan/Reflection/BetterReflection/SourceLocator/OptimizedDirectorySourceLocatorTest.php +++ b/tests/PHPStan/Reflection/BetterReflection/SourceLocator/OptimizedDirectorySourceLocatorTest.php @@ -15,6 +15,7 @@ use function basename; use const PHP_VERSION_ID; +#[\PHPUnit\Framework\Attributes\CoversNothing] class OptimizedDirectorySourceLocatorTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Reflection/BetterReflection/SourceLocator/OptimizedSingleFileSourceLocatorTest.php b/tests/PHPStan/Reflection/BetterReflection/SourceLocator/OptimizedSingleFileSourceLocatorTest.php index add5a684b7..4b02c7da89 100644 --- a/tests/PHPStan/Reflection/BetterReflection/SourceLocator/OptimizedSingleFileSourceLocatorTest.php +++ b/tests/PHPStan/Reflection/BetterReflection/SourceLocator/OptimizedSingleFileSourceLocatorTest.php @@ -16,6 +16,7 @@ use function array_map; use const PHP_VERSION_ID; +#[\PHPUnit\Framework\Attributes\CoversNothing] class OptimizedSingleFileSourceLocatorTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Reflection/ClassReflectionPropertyHooksTest.php b/tests/PHPStan/Reflection/ClassReflectionPropertyHooksTest.php index 3003fad564..f87899a5aa 100644 --- a/tests/PHPStan/Reflection/ClassReflectionPropertyHooksTest.php +++ b/tests/PHPStan/Reflection/ClassReflectionPropertyHooksTest.php @@ -12,6 +12,7 @@ use function count; #[RequiresPhp('>= 8.4')] +#[\PHPUnit\Framework\Attributes\CoversNothing] class ClassReflectionPropertyHooksTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Reflection/ClassReflectionTest.php b/tests/PHPStan/Reflection/ClassReflectionTest.php index 78c0295b7b..29868879e7 100644 --- a/tests/PHPStan/Reflection/ClassReflectionTest.php +++ b/tests/PHPStan/Reflection/ClassReflectionTest.php @@ -38,6 +38,7 @@ use function array_map; use function array_values; +#[\PHPUnit\Framework\Attributes\CoversNothing] class ClassReflectionTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Reflection/Constant/RuntimeConstantReflectionTest.php b/tests/PHPStan/Reflection/Constant/RuntimeConstantReflectionTest.php index 925cb4350d..74a06b5d5b 100644 --- a/tests/PHPStan/Reflection/Constant/RuntimeConstantReflectionTest.php +++ b/tests/PHPStan/Reflection/Constant/RuntimeConstantReflectionTest.php @@ -8,6 +8,7 @@ use PHPUnit\Framework\Attributes\DataProvider; use const PHP_VERSION_ID; +#[\PHPUnit\Framework\Attributes\CoversNothing] class RuntimeConstantReflectionTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Reflection/Deprecation/DeprecationProviderTest.php b/tests/PHPStan/Reflection/Deprecation/DeprecationProviderTest.php index 2d177acc1e..9ca82913b4 100644 --- a/tests/PHPStan/Reflection/Deprecation/DeprecationProviderTest.php +++ b/tests/PHPStan/Reflection/Deprecation/DeprecationProviderTest.php @@ -17,6 +17,7 @@ use PHPStan\Testing\PHPStanTestCase; use PHPUnit\Framework\Attributes\RequiresPhp; +#[\PHPUnit\Framework\Attributes\CoversNothing] class DeprecationProviderTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Reflection/FunctionReflectionTest.php b/tests/PHPStan/Reflection/FunctionReflectionTest.php index 12dd5ee438..474073d122 100644 --- a/tests/PHPStan/Reflection/FunctionReflectionTest.php +++ b/tests/PHPStan/Reflection/FunctionReflectionTest.php @@ -9,6 +9,7 @@ use PHPUnit\Framework\Attributes\DataProvider; use const PHP_VERSION_ID; +#[\PHPUnit\Framework\Attributes\CoversNothing] class FunctionReflectionTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Reflection/GenericParametersAcceptorResolverTest.php b/tests/PHPStan/Reflection/GenericParametersAcceptorResolverTest.php index ea627a029f..6d3fe04d01 100644 --- a/tests/PHPStan/Reflection/GenericParametersAcceptorResolverTest.php +++ b/tests/PHPStan/Reflection/GenericParametersAcceptorResolverTest.php @@ -22,6 +22,7 @@ use function get_class; use function sprintf; +#[\PHPUnit\Framework\Attributes\CoversNothing] class GenericParametersAcceptorResolverTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Reflection/InitializerExprTypeResolverTest.php b/tests/PHPStan/Reflection/InitializerExprTypeResolverTest.php index 6c3ba79cfb..c06c3c6962 100644 --- a/tests/PHPStan/Reflection/InitializerExprTypeResolverTest.php +++ b/tests/PHPStan/Reflection/InitializerExprTypeResolverTest.php @@ -12,6 +12,7 @@ use PHPStan\Type\Type; use PHPUnit\Framework\Attributes\DataProvider; +#[\PHPUnit\Framework\Attributes\CoversNothing] class InitializerExprTypeResolverTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Reflection/MixedTypeTest.php b/tests/PHPStan/Reflection/MixedTypeTest.php index 0d30fc39b8..a34c6545a9 100644 --- a/tests/PHPStan/Reflection/MixedTypeTest.php +++ b/tests/PHPStan/Reflection/MixedTypeTest.php @@ -8,6 +8,7 @@ use PHPStan\Type\MixedType; use const PHP_VERSION_ID; +#[\PHPUnit\Framework\Attributes\CoversNothing] class MixedTypeTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Reflection/ParametersAcceptorSelectorTest.php b/tests/PHPStan/Reflection/ParametersAcceptorSelectorTest.php index 1926cb56e5..95e1e5125a 100644 --- a/tests/PHPStan/Reflection/ParametersAcceptorSelectorTest.php +++ b/tests/PHPStan/Reflection/ParametersAcceptorSelectorTest.php @@ -32,10 +32,12 @@ use PHPStan\Type\UnionType; use PHPStan\Type\VerbosityLevel; use PHPStan\Type\VoidType; +use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\Attributes\DataProvider; use function array_map; use function count; +#[CoversClass(ParametersAcceptorSelector::class)] class ParametersAcceptorSelectorTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Reflection/Php/UniversalObjectCratesClassReflectionExtensionTest.php b/tests/PHPStan/Reflection/Php/UniversalObjectCratesClassReflectionExtensionTest.php index 9c2858aaea..474f272af6 100644 --- a/tests/PHPStan/Reflection/Php/UniversalObjectCratesClassReflectionExtensionTest.php +++ b/tests/PHPStan/Reflection/Php/UniversalObjectCratesClassReflectionExtensionTest.php @@ -8,6 +8,7 @@ use PHPStan\Type\StringType; use stdClass; +#[\PHPUnit\Framework\Attributes\CoversNothing] class UniversalObjectCratesClassReflectionExtensionTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php b/tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php index c9f990d1cd..555f7aa3ba 100644 --- a/tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php +++ b/tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php @@ -39,6 +39,7 @@ use const PHP_INT_MAX; use const PHP_VERSION_ID; +#[\PHPUnit\Framework\Attributes\CoversNothing] class ReflectionProviderGoldenTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Reflection/ReflectionProviderTest.php b/tests/PHPStan/Reflection/ReflectionProviderTest.php index 5bfd1978b6..c27e86c8fc 100644 --- a/tests/PHPStan/Reflection/ReflectionProviderTest.php +++ b/tests/PHPStan/Reflection/ReflectionProviderTest.php @@ -13,6 +13,7 @@ use PHPUnit\Framework\Attributes\RequiresPhp; use const PHP_VERSION_ID; +#[\PHPUnit\Framework\Attributes\CoversNothing] class ReflectionProviderTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Reflection/SignatureMap/FunctionMetadataTest.php b/tests/PHPStan/Reflection/SignatureMap/FunctionMetadataTest.php index 24ef8431ee..df96f1ed71 100644 --- a/tests/PHPStan/Reflection/SignatureMap/FunctionMetadataTest.php +++ b/tests/PHPStan/Reflection/SignatureMap/FunctionMetadataTest.php @@ -6,6 +6,7 @@ use Nette\Schema\Processor; use PHPStan\Testing\PHPStanTestCase; +#[\PHPUnit\Framework\Attributes\CoversNothing] class FunctionMetadataTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Reflection/SignatureMap/Php8SignatureMapProviderTest.php b/tests/PHPStan/Reflection/SignatureMap/Php8SignatureMapProviderTest.php index 8c422e1500..d636b047de 100644 --- a/tests/PHPStan/Reflection/SignatureMap/Php8SignatureMapProviderTest.php +++ b/tests/PHPStan/Reflection/SignatureMap/Php8SignatureMapProviderTest.php @@ -40,6 +40,7 @@ use function count; use const PHP_VERSION_ID; +#[\PHPUnit\Framework\Attributes\CoversNothing] class Php8SignatureMapProviderTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Reflection/SignatureMap/SignatureMapParserTest.php b/tests/PHPStan/Reflection/SignatureMap/SignatureMapParserTest.php index 98b47e6cb0..f6e6eba652 100644 --- a/tests/PHPStan/Reflection/SignatureMap/SignatureMapParserTest.php +++ b/tests/PHPStan/Reflection/SignatureMap/SignatureMapParserTest.php @@ -37,6 +37,7 @@ use function sprintf; use function strpos; +#[\PHPUnit\Framework\Attributes\CoversNothing] class SignatureMapParserTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Reflection/Type/IntersectionTypeMethodReflectionTest.php b/tests/PHPStan/Reflection/Type/IntersectionTypeMethodReflectionTest.php index 2d7d3ca357..da53727d8d 100644 --- a/tests/PHPStan/Reflection/Type/IntersectionTypeMethodReflectionTest.php +++ b/tests/PHPStan/Reflection/Type/IntersectionTypeMethodReflectionTest.php @@ -6,6 +6,7 @@ use PHPStan\Testing\PHPStanTestCase; use PHPStan\TrinaryLogic; +#[\PHPUnit\Framework\Attributes\CoversNothing] class IntersectionTypeMethodReflectionTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Reflection/Type/UnionTypeMethodReflectionTest.php b/tests/PHPStan/Reflection/Type/UnionTypeMethodReflectionTest.php index b41d8d9636..c55cbd6850 100644 --- a/tests/PHPStan/Reflection/Type/UnionTypeMethodReflectionTest.php +++ b/tests/PHPStan/Reflection/Type/UnionTypeMethodReflectionTest.php @@ -6,6 +6,7 @@ use PHPStan\Testing\PHPStanTestCase; use PHPStan\TrinaryLogic; +#[\PHPUnit\Framework\Attributes\CoversNothing] class UnionTypeMethodReflectionTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Reflection/UnionTypesTest.php b/tests/PHPStan/Reflection/UnionTypesTest.php index 8b72103e33..92d05d963c 100644 --- a/tests/PHPStan/Reflection/UnionTypesTest.php +++ b/tests/PHPStan/Reflection/UnionTypesTest.php @@ -8,6 +8,7 @@ use PHPStan\Type\UnionType; use PHPStan\Type\VerbosityLevel; +#[\PHPUnit\Framework\Attributes\CoversNothing] class UnionTypesTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Rules/DirectRegistryTest.php b/tests/PHPStan/Rules/DirectRegistryTest.php index c1ac9fc109..d80420f95e 100644 --- a/tests/PHPStan/Rules/DirectRegistryTest.php +++ b/tests/PHPStan/Rules/DirectRegistryTest.php @@ -6,6 +6,7 @@ use PHPStan\Analyser\Scope; use PHPStan\Testing\PHPStanTestCase; +#[\PHPUnit\Framework\Attributes\CoversNothing] class DirectRegistryTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Rules/Exceptions/DefaultExceptionTypeResolverTest.php b/tests/PHPStan/Rules/Exceptions/DefaultExceptionTypeResolverTest.php index 1ca947f5d6..519d832672 100644 --- a/tests/PHPStan/Rules/Exceptions/DefaultExceptionTypeResolverTest.php +++ b/tests/PHPStan/Rules/Exceptions/DefaultExceptionTypeResolverTest.php @@ -10,6 +10,7 @@ use PHPStan\Testing\PHPStanTestCase; use PHPUnit\Framework\Attributes\DataProvider; +#[\PHPUnit\Framework\Attributes\CoversNothing] class DefaultExceptionTypeResolverTest extends PHPStanTestCase { diff --git a/tests/PHPStan/TrinaryLogicTest.php b/tests/PHPStan/TrinaryLogicTest.php index 906422f83a..7c222899ef 100644 --- a/tests/PHPStan/TrinaryLogicTest.php +++ b/tests/PHPStan/TrinaryLogicTest.php @@ -3,8 +3,10 @@ namespace PHPStan; use PHPStan\Testing\PHPStanTestCase; +use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\Attributes\DataProvider; +#[CoversClass(TrinaryLogic::class)] class TrinaryLogicTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/Accessory/HasMethodTypeTest.php b/tests/PHPStan/Type/Accessory/HasMethodTypeTest.php index 057ae63a2f..6d592ae2d4 100644 --- a/tests/PHPStan/Type/Accessory/HasMethodTypeTest.php +++ b/tests/PHPStan/Type/Accessory/HasMethodTypeTest.php @@ -20,6 +20,7 @@ use PHPUnit\Framework\Attributes\DataProvider; use function sprintf; +#[\PHPUnit\Framework\Attributes\CoversNothing] class HasMethodTypeTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/Accessory/HasPropertyTypeTest.php b/tests/PHPStan/Type/Accessory/HasPropertyTypeTest.php index 087bd96910..b060af62e5 100644 --- a/tests/PHPStan/Type/Accessory/HasPropertyTypeTest.php +++ b/tests/PHPStan/Type/Accessory/HasPropertyTypeTest.php @@ -20,6 +20,7 @@ use function sprintf; use const PHP_VERSION_ID; +#[\PHPUnit\Framework\Attributes\CoversNothing] class HasPropertyTypeTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/ArrayTypeTest.php b/tests/PHPStan/Type/ArrayTypeTest.php index 59ed255a09..ce1682fad2 100644 --- a/tests/PHPStan/Type/ArrayTypeTest.php +++ b/tests/PHPStan/Type/ArrayTypeTest.php @@ -12,10 +12,12 @@ use PHPStan\Type\Generic\TemplateTypeFactory; use PHPStan\Type\Generic\TemplateTypeScope; use PHPStan\Type\Generic\TemplateTypeVariance; +use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\Attributes\DataProvider; use function array_map; use function sprintf; +#[CoversClass(ArrayType::class)] class ArrayTypeTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/BenevolentUnionTypeTest.php b/tests/PHPStan/Type/BenevolentUnionTypeTest.php index 8749301bc7..3a55765461 100644 --- a/tests/PHPStan/Type/BenevolentUnionTypeTest.php +++ b/tests/PHPStan/Type/BenevolentUnionTypeTest.php @@ -17,6 +17,7 @@ use PHPUnit\Framework\Attributes\DataProvider; use function sprintf; +#[\PHPUnit\Framework\Attributes\CoversNothing] class BenevolentUnionTypeTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/BitwiseFlagHelperTest.php b/tests/PHPStan/Type/BitwiseFlagHelperTest.php index e210842df7..c1316f2863 100644 --- a/tests/PHPStan/Type/BitwiseFlagHelperTest.php +++ b/tests/PHPStan/Type/BitwiseFlagHelperTest.php @@ -16,6 +16,7 @@ use function defined; use function sprintf; +#[\PHPUnit\Framework\Attributes\CoversNothing] final class BitwiseFlagHelperTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/BooleanTypeTest.php b/tests/PHPStan/Type/BooleanTypeTest.php index c1d189683c..16d10a2f0c 100644 --- a/tests/PHPStan/Type/BooleanTypeTest.php +++ b/tests/PHPStan/Type/BooleanTypeTest.php @@ -6,9 +6,11 @@ use PHPStan\TrinaryLogic; use PHPStan\Type\Constant\ConstantBooleanType; use PHPStan\Type\Constant\ConstantIntegerType; +use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\Attributes\DataProvider; use function sprintf; +#[CoversClass(BooleanType::class)] class BooleanTypeTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/CallableTypeTest.php b/tests/PHPStan/Type/CallableTypeTest.php index 7ea4c0f30e..0f7153bf50 100644 --- a/tests/PHPStan/Type/CallableTypeTest.php +++ b/tests/PHPStan/Type/CallableTypeTest.php @@ -20,6 +20,7 @@ use function array_map; use function sprintf; +#[CoversClass(CallableType::class)] class CallableTypeTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/ClassStringTypeTest.php b/tests/PHPStan/Type/ClassStringTypeTest.php index bfb87e2fa8..18125b388b 100644 --- a/tests/PHPStan/Type/ClassStringTypeTest.php +++ b/tests/PHPStan/Type/ClassStringTypeTest.php @@ -11,6 +11,7 @@ use stdClass; use function sprintf; +#[\PHPUnit\Framework\Attributes\CoversNothing] class ClassStringTypeTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/ClosureTypeFactoryTest.php b/tests/PHPStan/Type/ClosureTypeFactoryTest.php index e492febefc..e8a11e446f 100644 --- a/tests/PHPStan/Type/ClosureTypeFactoryTest.php +++ b/tests/PHPStan/Type/ClosureTypeFactoryTest.php @@ -10,6 +10,7 @@ /** * @phpstan-consistent-constructor */ +#[\PHPUnit\Framework\Attributes\CoversNothing] class ClosureTypeFactoryTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/ClosureTypeTest.php b/tests/PHPStan/Type/ClosureTypeTest.php index f5ef07239e..ec88ce9620 100644 --- a/tests/PHPStan/Type/ClosureTypeTest.php +++ b/tests/PHPStan/Type/ClosureTypeTest.php @@ -8,6 +8,7 @@ use PHPUnit\Framework\Attributes\DataProvider; use function sprintf; +#[\PHPUnit\Framework\Attributes\CoversNothing] class ClosureTypeTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/Constant/ConstantArrayTypeBuilderTest.php b/tests/PHPStan/Type/Constant/ConstantArrayTypeBuilderTest.php index 8052c4f8ae..7102351ba3 100644 --- a/tests/PHPStan/Type/Constant/ConstantArrayTypeBuilderTest.php +++ b/tests/PHPStan/Type/Constant/ConstantArrayTypeBuilderTest.php @@ -9,6 +9,7 @@ use PHPStan\Type\TypeCombinator; use PHPStan\Type\VerbosityLevel; +#[\PHPUnit\Framework\Attributes\CoversNothing] class ConstantArrayTypeBuilderTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/Constant/ConstantArrayTypeTest.php b/tests/PHPStan/Type/Constant/ConstantArrayTypeTest.php index 1c2b6fc410..c3a0c93d5d 100644 --- a/tests/PHPStan/Type/Constant/ConstantArrayTypeTest.php +++ b/tests/PHPStan/Type/Constant/ConstantArrayTypeTest.php @@ -29,6 +29,7 @@ use function array_map; use function sprintf; +#[\PHPUnit\Framework\Attributes\CoversNothing] class ConstantArrayTypeTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/Constant/ConstantFloatTypeTest.php b/tests/PHPStan/Type/Constant/ConstantFloatTypeTest.php index 83260d706c..d49069a4d9 100644 --- a/tests/PHPStan/Type/Constant/ConstantFloatTypeTest.php +++ b/tests/PHPStan/Type/Constant/ConstantFloatTypeTest.php @@ -6,6 +6,7 @@ use PHPStan\Type\VerbosityLevel; use PHPUnit\Framework\Attributes\DataProvider; +#[\PHPUnit\Framework\Attributes\CoversNothing] class ConstantFloatTypeTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/Constant/ConstantIntegerTypeTest.php b/tests/PHPStan/Type/Constant/ConstantIntegerTypeTest.php index 6e4fa1ead7..8f75a3b18a 100644 --- a/tests/PHPStan/Type/Constant/ConstantIntegerTypeTest.php +++ b/tests/PHPStan/Type/Constant/ConstantIntegerTypeTest.php @@ -10,6 +10,7 @@ use PHPUnit\Framework\Attributes\DataProvider; use function sprintf; +#[\PHPUnit\Framework\Attributes\CoversNothing] class ConstantIntegerTypeTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/Constant/ConstantStringTypeTest.php b/tests/PHPStan/Type/Constant/ConstantStringTypeTest.php index d07d72d48a..10e0933942 100644 --- a/tests/PHPStan/Type/Constant/ConstantStringTypeTest.php +++ b/tests/PHPStan/Type/Constant/ConstantStringTypeTest.php @@ -22,6 +22,7 @@ use Throwable; use function sprintf; +#[\PHPUnit\Framework\Attributes\CoversNothing] class ConstantStringTypeTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/Constant/OversizedArrayBuilderTest.php b/tests/PHPStan/Type/Constant/OversizedArrayBuilderTest.php index 185127d984..922745d548 100644 --- a/tests/PHPStan/Type/Constant/OversizedArrayBuilderTest.php +++ b/tests/PHPStan/Type/Constant/OversizedArrayBuilderTest.php @@ -12,6 +12,7 @@ use PHPStan\Type\VerbosityLevel; use PHPUnit\Framework\Attributes\DataProvider; +#[\PHPUnit\Framework\Attributes\CoversNothing] class OversizedArrayBuilderTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/Enum/EnumCaseObjectTypeTest.php b/tests/PHPStan/Type/Enum/EnumCaseObjectTypeTest.php index a4e8527c93..1462220d17 100644 --- a/tests/PHPStan/Type/Enum/EnumCaseObjectTypeTest.php +++ b/tests/PHPStan/Type/Enum/EnumCaseObjectTypeTest.php @@ -14,6 +14,7 @@ use PHPUnit\Framework\Attributes\RequiresPhp; use function sprintf; +#[\PHPUnit\Framework\Attributes\CoversNothing] class EnumCaseObjectTypeTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/FileTypeMapperTest.php b/tests/PHPStan/Type/FileTypeMapperTest.php index d613047140..f112cef023 100644 --- a/tests/PHPStan/Type/FileTypeMapperTest.php +++ b/tests/PHPStan/Type/FileTypeMapperTest.php @@ -9,6 +9,7 @@ use RuntimeException; use function realpath; +#[\PHPUnit\Framework\Attributes\CoversNothing] class FileTypeMapperTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/FloatTypeTest.php b/tests/PHPStan/Type/FloatTypeTest.php index 878e1d49f4..44d667b4dc 100644 --- a/tests/PHPStan/Type/FloatTypeTest.php +++ b/tests/PHPStan/Type/FloatTypeTest.php @@ -10,6 +10,7 @@ use PHPUnit\Framework\Attributes\DataProvider; use function sprintf; +#[CoversClass(FloatType::class)] class FloatTypeTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/Generic/GenericClassStringTypeTest.php b/tests/PHPStan/Type/Generic/GenericClassStringTypeTest.php index 9f5b836898..e708299834 100644 --- a/tests/PHPStan/Type/Generic/GenericClassStringTypeTest.php +++ b/tests/PHPStan/Type/Generic/GenericClassStringTypeTest.php @@ -25,6 +25,7 @@ use Throwable; use function sprintf; +#[\PHPUnit\Framework\Attributes\CoversNothing] class GenericClassStringTypeTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/Generic/GenericObjectTypeTest.php b/tests/PHPStan/Type/Generic/GenericObjectTypeTest.php index 2f3733c363..3993b0de91 100644 --- a/tests/PHPStan/Type/Generic/GenericObjectTypeTest.php +++ b/tests/PHPStan/Type/Generic/GenericObjectTypeTest.php @@ -29,6 +29,7 @@ use function sprintf; use const PHP_VERSION_ID; +#[\PHPUnit\Framework\Attributes\CoversNothing] class GenericObjectTypeTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/Generic/TemplateTypeHelperTest.php b/tests/PHPStan/Type/Generic/TemplateTypeHelperTest.php index c54813969d..26a4530e2e 100644 --- a/tests/PHPStan/Type/Generic/TemplateTypeHelperTest.php +++ b/tests/PHPStan/Type/Generic/TemplateTypeHelperTest.php @@ -8,6 +8,7 @@ use PHPStan\Type\ObjectType; use PHPStan\Type\VerbosityLevel; +#[\PHPUnit\Framework\Attributes\CoversNothing] class TemplateTypeHelperTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/Generic/TemplateTypeMapTest.php b/tests/PHPStan/Type/Generic/TemplateTypeMapTest.php index ed6907ac61..84fb0ad40f 100644 --- a/tests/PHPStan/Type/Generic/TemplateTypeMapTest.php +++ b/tests/PHPStan/Type/Generic/TemplateTypeMapTest.php @@ -9,6 +9,7 @@ use PHPStan\Type\VerbosityLevel; use PHPUnit\Framework\Attributes\DataProvider; +#[\PHPUnit\Framework\Attributes\CoversNothing] class TemplateTypeMapTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/Generic/TemplateTypeVarianceTest.php b/tests/PHPStan/Type/Generic/TemplateTypeVarianceTest.php index e65f1a963e..d724122654 100644 --- a/tests/PHPStan/Type/Generic/TemplateTypeVarianceTest.php +++ b/tests/PHPStan/Type/Generic/TemplateTypeVarianceTest.php @@ -13,6 +13,7 @@ use PHPUnit\Framework\Attributes\DataProvider; use function sprintf; +#[\PHPUnit\Framework\Attributes\CoversNothing] class TemplateTypeVarianceTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/IntegerTypeTest.php b/tests/PHPStan/Type/IntegerTypeTest.php index e6512b6f8c..8c62600ce9 100644 --- a/tests/PHPStan/Type/IntegerTypeTest.php +++ b/tests/PHPStan/Type/IntegerTypeTest.php @@ -10,6 +10,7 @@ use PHPUnit\Framework\Attributes\DataProvider; use function sprintf; +#[CoversClass(IntegerType::class)] class IntegerTypeTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/IntersectionTypeTest.php b/tests/PHPStan/Type/IntersectionTypeTest.php index 7318ba9c65..dc22e9afab 100644 --- a/tests/PHPStan/Type/IntersectionTypeTest.php +++ b/tests/PHPStan/Type/IntersectionTypeTest.php @@ -25,6 +25,7 @@ use function sprintf; use const PHP_VERSION_ID; +#[\PHPUnit\Framework\Attributes\CoversNothing] class IntersectionTypeTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/IterableTypeTest.php b/tests/PHPStan/Type/IterableTypeTest.php index 557caeb1ad..772491841d 100644 --- a/tests/PHPStan/Type/IterableTypeTest.php +++ b/tests/PHPStan/Type/IterableTypeTest.php @@ -15,6 +15,7 @@ use function array_map; use function sprintf; +#[\PHPUnit\Framework\Attributes\CoversNothing] class IterableTypeTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/MixedTypeTest.php b/tests/PHPStan/Type/MixedTypeTest.php index c204153c3f..ec750fd1e1 100644 --- a/tests/PHPStan/Type/MixedTypeTest.php +++ b/tests/PHPStan/Type/MixedTypeTest.php @@ -16,6 +16,7 @@ use PHPUnit\Framework\Attributes\DataProvider; use function sprintf; +#[CoversClass(MixedType::class)] class MixedTypeTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/ObjectTypeTest.php b/tests/PHPStan/Type/ObjectTypeTest.php index 3371c28427..0f20a42155 100644 --- a/tests/PHPStan/Type/ObjectTypeTest.php +++ b/tests/PHPStan/Type/ObjectTypeTest.php @@ -46,6 +46,7 @@ use function sprintf; use const PHP_VERSION_ID; +#[\PHPUnit\Framework\Attributes\CoversNothing] class ObjectTypeTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/ObjectWithoutClassTypeTest.php b/tests/PHPStan/Type/ObjectWithoutClassTypeTest.php index 69e33b253a..9062a54bb8 100644 --- a/tests/PHPStan/Type/ObjectWithoutClassTypeTest.php +++ b/tests/PHPStan/Type/ObjectWithoutClassTypeTest.php @@ -8,6 +8,7 @@ use PHPUnit\Framework\Attributes\DataProvider; use function sprintf; +#[\PHPUnit\Framework\Attributes\CoversNothing] class ObjectWithoutClassTypeTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/Regex/RegexExpressionHelperTest.php b/tests/PHPStan/Type/Regex/RegexExpressionHelperTest.php index 872ba25586..3963b55bb6 100644 --- a/tests/PHPStan/Type/Regex/RegexExpressionHelperTest.php +++ b/tests/PHPStan/Type/Regex/RegexExpressionHelperTest.php @@ -5,6 +5,7 @@ use PHPStan\Testing\PHPStanTestCase; use PHPUnit\Framework\Attributes\DataProvider; +#[\PHPUnit\Framework\Attributes\CoversNothing] class RegexExpressionHelperTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/SimultaneousTypeTraverserTest.php b/tests/PHPStan/Type/SimultaneousTypeTraverserTest.php index 3e6e4f9469..ddc5847906 100644 --- a/tests/PHPStan/Type/SimultaneousTypeTraverserTest.php +++ b/tests/PHPStan/Type/SimultaneousTypeTraverserTest.php @@ -9,6 +9,7 @@ use PHPStan\Type\Constant\ConstantIntegerType; use PHPUnit\Framework\Attributes\DataProvider; +#[\PHPUnit\Framework\Attributes\CoversNothing] class SimultaneousTypeTraverserTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/StaticTypeTest.php b/tests/PHPStan/Type/StaticTypeTest.php index 980b5f6004..89f9139da7 100644 --- a/tests/PHPStan/Type/StaticTypeTest.php +++ b/tests/PHPStan/Type/StaticTypeTest.php @@ -26,6 +26,7 @@ use Traversable; use function sprintf; +#[\PHPUnit\Framework\Attributes\CoversNothing] class StaticTypeTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/StringTypeTest.php b/tests/PHPStan/Type/StringTypeTest.php index 3be9e03240..c0ff27a4df 100644 --- a/tests/PHPStan/Type/StringTypeTest.php +++ b/tests/PHPStan/Type/StringTypeTest.php @@ -16,6 +16,7 @@ use Test\ClassWithToString; use function sprintf; +#[CoversClass(StringType::class)] class StringTypeTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/TemplateTypeTest.php b/tests/PHPStan/Type/TemplateTypeTest.php index 61c8839f13..5dc35d7335 100644 --- a/tests/PHPStan/Type/TemplateTypeTest.php +++ b/tests/PHPStan/Type/TemplateTypeTest.php @@ -21,6 +21,7 @@ use function assert; use function sprintf; +#[\PHPUnit\Framework\Attributes\CoversNothing] class TemplateTypeTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/TestDecimalOperatorTypeSpecifyingExtensionTest.php b/tests/PHPStan/Type/TestDecimalOperatorTypeSpecifyingExtensionTest.php index acb3b932cf..7b1d456a6f 100644 --- a/tests/PHPStan/Type/TestDecimalOperatorTypeSpecifyingExtensionTest.php +++ b/tests/PHPStan/Type/TestDecimalOperatorTypeSpecifyingExtensionTest.php @@ -7,6 +7,7 @@ use PHPUnit\Framework\Attributes\DataProvider; use stdClass; +#[\PHPUnit\Framework\Attributes\CoversNothing] class TestDecimalOperatorTypeSpecifyingExtensionTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/TypeCombinatorTest.php b/tests/PHPStan/Type/TypeCombinatorTest.php index 95edb13b3d..dad4092923 100644 --- a/tests/PHPStan/Type/TypeCombinatorTest.php +++ b/tests/PHPStan/Type/TypeCombinatorTest.php @@ -63,6 +63,7 @@ use function sprintf; use const PHP_VERSION_ID; +#[\PHPUnit\Framework\Attributes\CoversNothing] class TypeCombinatorTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/TypeGetFiniteTypesTest.php b/tests/PHPStan/Type/TypeGetFiniteTypesTest.php index e7e0ae2de6..57277bcb4e 100644 --- a/tests/PHPStan/Type/TypeGetFiniteTypesTest.php +++ b/tests/PHPStan/Type/TypeGetFiniteTypesTest.php @@ -12,6 +12,7 @@ use PHPStan\Type\Generic\TemplateTypeVariance; use PHPUnit\Framework\Attributes\DataProvider; +#[\PHPUnit\Framework\Attributes\CoversNothing] class TypeGetFiniteTypesTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/TypeToPhpDocNodeTest.php b/tests/PHPStan/Type/TypeToPhpDocNodeTest.php index 29bfe8f70a..dacc2a8e16 100644 --- a/tests/PHPStan/Type/TypeToPhpDocNodeTest.php +++ b/tests/PHPStan/Type/TypeToPhpDocNodeTest.php @@ -26,6 +26,7 @@ use const PHP_INT_MAX; use const PHP_INT_MIN; +#[\PHPUnit\Framework\Attributes\CoversNothing] class TypeToPhpDocNodeTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/UnionTypeTest.php b/tests/PHPStan/Type/UnionTypeTest.php index a4940279a4..3952faf62c 100644 --- a/tests/PHPStan/Type/UnionTypeTest.php +++ b/tests/PHPStan/Type/UnionTypeTest.php @@ -36,6 +36,7 @@ use function sprintf; use const PHP_VERSION_ID; +#[CoversClass(UnionType::class)] class UnionTypeTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/VerbosityLevelTest.php b/tests/PHPStan/Type/VerbosityLevelTest.php index 5297e6505f..a744499d09 100644 --- a/tests/PHPStan/Type/VerbosityLevelTest.php +++ b/tests/PHPStan/Type/VerbosityLevelTest.php @@ -9,6 +9,7 @@ use PHPStan\Type\Generic\TemplateTypeVariance; use PHPUnit\Framework\Attributes\DataProvider; +#[\PHPUnit\Framework\Attributes\CoversNothing] class VerbosityLevelTest extends PHPStanTestCase {