From 5fa7cd8b7852a62bdd4be18db02d9456165a2872 Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Tue, 4 Nov 2025 16:18:09 +0100 Subject: [PATCH 01/17] 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 8b5ec6f2703b0dec23b34b9a8e559d9864439ab5 Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Tue, 4 Nov 2025 16:27:22 +0100 Subject: [PATCH 02/17] 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 edb0d16acb90025c14e167487efb0d961ca7eb31 Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Tue, 4 Nov 2025 16:38:27 +0100 Subject: [PATCH 03/17] 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 615eb53a144c2f47e4e11b5e92dbb683daaaa849 Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Tue, 4 Nov 2025 16:41:53 +0100 Subject: [PATCH 04/17] 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 54789ae00b0b9ba7adb89037a42187e524f71bfe Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Tue, 4 Nov 2025 16:42:43 +0100 Subject: [PATCH 05/17] 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 ba71f243b86f85b8a1d3eca5ee581e791da7c6fa Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Tue, 4 Nov 2025 21:58:47 +0100 Subject: [PATCH 06/17] 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 f9bf010d40789c904699888c773298b277b97949 Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Wed, 5 Nov 2025 20:03:23 +0100 Subject: [PATCH 07/17] 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 2b71efa9ba..c33f7130b3 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 { From a4cc79cb1d979a34a0fab6609465ed3e37ba8761 Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Fri, 7 Nov 2025 16:32:59 +0100 Subject: [PATCH 08/17] Update Makefile --- Makefile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 70f6cf5118..87841b4aaa 100644 --- a/Makefile +++ b/Makefile @@ -169,18 +169,19 @@ 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 build-infection/bin/infection-config.php --source-directory='build/PHPStan/Build'> tmp/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 --no-clobber; - chmod +x infection.phar + wget -P tmp/ https://github.com/infection/infection/releases/download/$$version/infection.phar --no-clobber; + chmod +x tmp/infection.phar XDEBUG_MODE=coverage php tests/vendor/bin/paratest \ --coverage-xml=tmp/coverage/coverage-xml \ --log-junit=tmp/coverage/junit.xml + baseBranch=$(shell git symbolic-ref refs/remotes/${remote:-origin}/HEAD | sed 's,.*/,,') \ php infection.phar \ - --git-diff-base=origin/2.1.x \ + --configuration=tmp/infection.json5 + --git-diff-base=origin/$$baseBranch \ --git-diff-lines \ --coverage=tmp/coverage \ --skip-initial-tests \ --ignore-msi-with-no-mutations \ --logger-text=php://stdout - rm infection.json5 infection.phar From 33eb6efc19faaf41d7841d03a978f7f0be9cfc31 Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Fri, 7 Nov 2025 16:37:30 +0100 Subject: [PATCH 09/17] simplify --- Makefile | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 87841b4aaa..d96497a41b 100644 --- a/Makefile +++ b/Makefile @@ -170,14 +170,11 @@ 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'> tmp/infection.json5 - version=$(shell jq -r '.packages[] | select(.name == "infection/infection") | .version' build-infection/composer.lock); \ - wget -P tmp/ https://github.com/infection/infection/releases/download/$$version/infection.phar --no-clobber; - chmod +x tmp/infection.phar XDEBUG_MODE=coverage php tests/vendor/bin/paratest \ --coverage-xml=tmp/coverage/coverage-xml \ --log-junit=tmp/coverage/junit.xml baseBranch=$(shell git symbolic-ref refs/remotes/${remote:-origin}/HEAD | sed 's,.*/,,') \ - php infection.phar \ + php build-infection/vendor/bin/infection \ --configuration=tmp/infection.json5 --git-diff-base=origin/$$baseBranch \ --git-diff-lines \ From 83f0813621050fee9593b7bdeccf8769d5b0bdf5 Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Fri, 7 Nov 2025 16:44:37 +0100 Subject: [PATCH 10/17] simplify --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d96497a41b..b1bc8dab88 100644 --- a/Makefile +++ b/Makefile @@ -166,7 +166,7 @@ composer-dependency-analyser: .PHONY: infection infection: - git clone https://github.com/phpstan/build-infection.git || true + git -C build-infection pull || git clone https://github.com/phpstan/build-infection.git 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'> tmp/infection.json5 From 417b3f4430da663b3ab527b729a13becf8365be3 Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Fri, 7 Nov 2025 16:46:06 +0100 Subject: [PATCH 11/17] Revert "Added #[Covers*] attributes to tests" This reverts commit f9bf010d40789c904699888c773298b277b97949. --- 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 deletions(-) diff --git a/tests/PHPStan/Analyser/AnalyserIntegrationTest.php b/tests/PHPStan/Analyser/AnalyserIntegrationTest.php index 00b0ba1074..34daffc9ab 100644 --- a/tests/PHPStan/Analyser/AnalyserIntegrationTest.php +++ b/tests/PHPStan/Analyser/AnalyserIntegrationTest.php @@ -16,7 +16,6 @@ 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 1ef29816d8..8714dc736f 100644 --- a/tests/PHPStan/Analyser/AnalyserTest.php +++ b/tests/PHPStan/Analyser/AnalyserTest.php @@ -44,7 +44,6 @@ 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 5481658b6a..914064439f 100644 --- a/tests/PHPStan/Analyser/AnalyserTraitsIntegrationTest.php +++ b/tests/PHPStan/Analyser/AnalyserTraitsIntegrationTest.php @@ -12,7 +12,6 @@ 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 b3afa2121f..b6a160de93 100644 --- a/tests/PHPStan/Analyser/AnalyserWithCheckDynamicPropertiesTest.php +++ b/tests/PHPStan/Analyser/AnalyserWithCheckDynamicPropertiesTest.php @@ -6,7 +6,6 @@ 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 fd8542239e..06235a934e 100644 --- a/tests/PHPStan/Analyser/ArgumentsNormalizerLegacyTest.php +++ b/tests/PHPStan/Analyser/ArgumentsNormalizerLegacyTest.php @@ -13,10 +13,8 @@ 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 20459cbe46..b2cc10be5d 100644 --- a/tests/PHPStan/Analyser/ArgumentsNormalizerTest.php +++ b/tests/PHPStan/Analyser/ArgumentsNormalizerTest.php @@ -20,7 +20,6 @@ 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 4e6d84324a..e59abafff3 100644 --- a/tests/PHPStan/Analyser/ErrorTest.php +++ b/tests/PHPStan/Analyser/ErrorTest.php @@ -3,10 +3,8 @@ 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 0d31f88841..56b699f1fc 100644 --- a/tests/PHPStan/Analyser/ExpressionResultTest.php +++ b/tests/PHPStan/Analyser/ExpressionResultTest.php @@ -15,7 +15,6 @@ 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 51c850a62a..6e46630df6 100644 --- a/tests/PHPStan/Analyser/Ignore/IgnoreLexerTest.php +++ b/tests/PHPStan/Analyser/Ignore/IgnoreLexerTest.php @@ -3,13 +3,11 @@ 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 0380e51fb2..e83ed19354 100644 --- a/tests/PHPStan/Analyser/ScopeTest.php +++ b/tests/PHPStan/Analyser/ScopeTest.php @@ -18,7 +18,6 @@ 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 b7c0a763b5..680f528815 100644 --- a/tests/PHPStan/Analyser/StatementResultTest.php +++ b/tests/PHPStan/Analyser/StatementResultTest.php @@ -13,7 +13,6 @@ 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 c752e614ba..10c28510a5 100644 --- a/tests/PHPStan/Analyser/TypeSpecifierContextTest.php +++ b/tests/PHPStan/Analyser/TypeSpecifierContextTest.php @@ -4,10 +4,8 @@ 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 997da32228..dfcfae42dc 100644 --- a/tests/PHPStan/Analyser/TypeSpecifierTest.php +++ b/tests/PHPStan/Analyser/TypeSpecifierTest.php @@ -36,7 +36,6 @@ 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; @@ -44,7 +43,6 @@ 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 a08b65c5d3..ac7e0c2e9d 100644 --- a/tests/PHPStan/Collectors/RegistryTest.php +++ b/tests/PHPStan/Collectors/RegistryTest.php @@ -6,7 +6,6 @@ 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 8e60136c6c..b13cb49ef9 100644 --- a/tests/PHPStan/Command/AnalyseApplicationIntegrationTest.php +++ b/tests/PHPStan/Command/AnalyseApplicationIntegrationTest.php @@ -22,7 +22,6 @@ 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 f40173b1ce..f2c4f4d73a 100644 --- a/tests/PHPStan/Command/AnalyseCommandTest.php +++ b/tests/PHPStan/Command/AnalyseCommandTest.php @@ -17,7 +17,6 @@ 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 cb3c3df85b..2ea3344a9b 100644 --- a/tests/PHPStan/Command/AnalysisResultTest.php +++ b/tests/PHPStan/Command/AnalysisResultTest.php @@ -5,7 +5,6 @@ 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 44b75fe55b..2b64d9e534 100644 --- a/tests/PHPStan/Command/IgnoredRegexValidatorTest.php +++ b/tests/PHPStan/Command/IgnoredRegexValidatorTest.php @@ -6,10 +6,8 @@ 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 ad272a817c..c512a1720e 100644 --- a/tests/PHPStan/DependencyInjection/ConditionalTagsExtensionTest.php +++ b/tests/PHPStan/DependencyInjection/ConditionalTagsExtensionTest.php @@ -7,7 +7,6 @@ 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 4711641e39..f24e65abc2 100644 --- a/tests/PHPStan/DependencyInjection/IgnoreErrorsTest.php +++ b/tests/PHPStan/DependencyInjection/IgnoreErrorsTest.php @@ -4,7 +4,6 @@ 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 ef60f2a6b7..6d8ac35b8c 100644 --- a/tests/PHPStan/DependencyInjection/InvalidIgnoredErrorExceptionTest.php +++ b/tests/PHPStan/DependencyInjection/InvalidIgnoredErrorExceptionTest.php @@ -5,7 +5,6 @@ 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 dd5bea6032..e7629e4f83 100644 --- a/tests/PHPStan/DependencyInjection/Nette/NetteContainerTest.php +++ b/tests/PHPStan/DependencyInjection/Nette/NetteContainerTest.php @@ -7,7 +7,6 @@ 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 8eff71f1d4..02aff99453 100644 --- a/tests/PHPStan/File/FileExcluderTest.php +++ b/tests/PHPStan/File/FileExcluderTest.php @@ -3,10 +3,8 @@ 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 6604e51076..ac2cef5fd1 100644 --- a/tests/PHPStan/File/FileHelperTest.php +++ b/tests/PHPStan/File/FileHelperTest.php @@ -3,10 +3,8 @@ 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 1aca70120f..20be5000fc 100644 --- a/tests/PHPStan/Generics/TemplateTypeFactoryTest.php +++ b/tests/PHPStan/Generics/TemplateTypeFactoryTest.php @@ -18,7 +18,6 @@ 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 7fac4dbc92..a0df7a1b2a 100644 --- a/tests/PHPStan/Parser/CachedParserTest.php +++ b/tests/PHPStan/Parser/CachedParserTest.php @@ -8,11 +8,9 @@ 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 da5b1469a8..c94558ed89 100644 --- a/tests/PHPStan/Parser/CleaningParserTest.php +++ b/tests/PHPStan/Parser/CleaningParserTest.php @@ -9,11 +9,9 @@ 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 9b3b424dd3..7dd2e22a05 100644 --- a/tests/PHPStan/Parser/ParserTest.php +++ b/tests/PHPStan/Parser/ParserTest.php @@ -6,7 +6,6 @@ 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 e0d68b2938..a821dbdb5c 100644 --- a/tests/PHPStan/Parser/RichParserTest.php +++ b/tests/PHPStan/Parser/RichParserTest.php @@ -6,7 +6,6 @@ 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 2ba1d5413d..a1e0faf4a2 100644 --- a/tests/PHPStan/PhpDoc/DefaultStubFilesProviderTest.php +++ b/tests/PHPStan/PhpDoc/DefaultStubFilesProviderTest.php @@ -9,7 +9,6 @@ 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 e2a29a5b4e..ba59b49188 100644 --- a/tests/PHPStan/PhpDoc/PhpDocStringResolverTest.php +++ b/tests/PHPStan/PhpDoc/PhpDocStringResolverTest.php @@ -5,7 +5,6 @@ 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 d9ccd12aa8..e7147bb077 100644 --- a/tests/PHPStan/PhpDoc/TypeDescriptionTest.php +++ b/tests/PHPStan/PhpDoc/TypeDescriptionTest.php @@ -22,7 +22,6 @@ 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 c134b27ccf..ccfa42e0b2 100644 --- a/tests/PHPStan/PhpDoc/TypeStringResolverTest.php +++ b/tests/PHPStan/PhpDoc/TypeStringResolverTest.php @@ -5,7 +5,6 @@ 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 3e7ebf3728..2be55e8284 100644 --- a/tests/PHPStan/Reflection/Annotations/AnnotationsMethodsClassReflectionExtensionTest.php +++ b/tests/PHPStan/Reflection/Annotations/AnnotationsMethodsClassReflectionExtensionTest.php @@ -17,7 +17,6 @@ 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 daff1938c1..f654fdbb51 100644 --- a/tests/PHPStan/Reflection/Annotations/AnnotationsPropertiesClassReflectionExtensionTest.php +++ b/tests/PHPStan/Reflection/Annotations/AnnotationsPropertiesClassReflectionExtensionTest.php @@ -14,7 +14,6 @@ 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 da495a8591..936d56b4aa 100644 --- a/tests/PHPStan/Reflection/Annotations/DeprecatedAnnotationsTest.php +++ b/tests/PHPStan/Reflection/Annotations/DeprecatedAnnotationsTest.php @@ -20,7 +20,6 @@ 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 cd1f12b20a..b24c82fba9 100644 --- a/tests/PHPStan/Reflection/Annotations/FinalAnnotationsTest.php +++ b/tests/PHPStan/Reflection/Annotations/FinalAnnotationsTest.php @@ -8,7 +8,6 @@ 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 67a1d36417..9e4e36901f 100644 --- a/tests/PHPStan/Reflection/Annotations/InternalAnnotationsTest.php +++ b/tests/PHPStan/Reflection/Annotations/InternalAnnotationsTest.php @@ -13,7 +13,6 @@ 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 e29c6e108a..b58322ca01 100644 --- a/tests/PHPStan/Reflection/Annotations/ThrowsAnnotationsTest.php +++ b/tests/PHPStan/Reflection/Annotations/ThrowsAnnotationsTest.php @@ -14,7 +14,6 @@ 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 c33f7130b3..2b71efa9ba 100644 --- a/tests/PHPStan/Reflection/AttributeReflectionTest.php +++ b/tests/PHPStan/Reflection/AttributeReflectionTest.php @@ -12,7 +12,6 @@ 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 3f6f5186e3..6e4c91a783 100644 --- a/tests/PHPStan/Reflection/BetterReflection/SourceLocator/AutoloadSourceLocatorTest.php +++ b/tests/PHPStan/Reflection/BetterReflection/SourceLocator/AutoloadSourceLocatorTest.php @@ -17,7 +17,6 @@ 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 41fad479d8..06c9407908 100644 --- a/tests/PHPStan/Reflection/BetterReflection/SourceLocator/OptimizedDirectorySourceLocatorTest.php +++ b/tests/PHPStan/Reflection/BetterReflection/SourceLocator/OptimizedDirectorySourceLocatorTest.php @@ -15,7 +15,6 @@ 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 4b02c7da89..add5a684b7 100644 --- a/tests/PHPStan/Reflection/BetterReflection/SourceLocator/OptimizedSingleFileSourceLocatorTest.php +++ b/tests/PHPStan/Reflection/BetterReflection/SourceLocator/OptimizedSingleFileSourceLocatorTest.php @@ -16,7 +16,6 @@ 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 f87899a5aa..3003fad564 100644 --- a/tests/PHPStan/Reflection/ClassReflectionPropertyHooksTest.php +++ b/tests/PHPStan/Reflection/ClassReflectionPropertyHooksTest.php @@ -12,7 +12,6 @@ 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 29868879e7..78c0295b7b 100644 --- a/tests/PHPStan/Reflection/ClassReflectionTest.php +++ b/tests/PHPStan/Reflection/ClassReflectionTest.php @@ -38,7 +38,6 @@ 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 74a06b5d5b..925cb4350d 100644 --- a/tests/PHPStan/Reflection/Constant/RuntimeConstantReflectionTest.php +++ b/tests/PHPStan/Reflection/Constant/RuntimeConstantReflectionTest.php @@ -8,7 +8,6 @@ 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 9ca82913b4..2d177acc1e 100644 --- a/tests/PHPStan/Reflection/Deprecation/DeprecationProviderTest.php +++ b/tests/PHPStan/Reflection/Deprecation/DeprecationProviderTest.php @@ -17,7 +17,6 @@ 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 474073d122..12dd5ee438 100644 --- a/tests/PHPStan/Reflection/FunctionReflectionTest.php +++ b/tests/PHPStan/Reflection/FunctionReflectionTest.php @@ -9,7 +9,6 @@ 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 6d3fe04d01..ea627a029f 100644 --- a/tests/PHPStan/Reflection/GenericParametersAcceptorResolverTest.php +++ b/tests/PHPStan/Reflection/GenericParametersAcceptorResolverTest.php @@ -22,7 +22,6 @@ 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 c06c3c6962..6c3ba79cfb 100644 --- a/tests/PHPStan/Reflection/InitializerExprTypeResolverTest.php +++ b/tests/PHPStan/Reflection/InitializerExprTypeResolverTest.php @@ -12,7 +12,6 @@ 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 a34c6545a9..0d30fc39b8 100644 --- a/tests/PHPStan/Reflection/MixedTypeTest.php +++ b/tests/PHPStan/Reflection/MixedTypeTest.php @@ -8,7 +8,6 @@ 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 95e1e5125a..1926cb56e5 100644 --- a/tests/PHPStan/Reflection/ParametersAcceptorSelectorTest.php +++ b/tests/PHPStan/Reflection/ParametersAcceptorSelectorTest.php @@ -32,12 +32,10 @@ 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 474f272af6..9c2858aaea 100644 --- a/tests/PHPStan/Reflection/Php/UniversalObjectCratesClassReflectionExtensionTest.php +++ b/tests/PHPStan/Reflection/Php/UniversalObjectCratesClassReflectionExtensionTest.php @@ -8,7 +8,6 @@ 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 555f7aa3ba..c9f990d1cd 100644 --- a/tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php +++ b/tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php @@ -39,7 +39,6 @@ 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 c27e86c8fc..5bfd1978b6 100644 --- a/tests/PHPStan/Reflection/ReflectionProviderTest.php +++ b/tests/PHPStan/Reflection/ReflectionProviderTest.php @@ -13,7 +13,6 @@ 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 df96f1ed71..24ef8431ee 100644 --- a/tests/PHPStan/Reflection/SignatureMap/FunctionMetadataTest.php +++ b/tests/PHPStan/Reflection/SignatureMap/FunctionMetadataTest.php @@ -6,7 +6,6 @@ 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 d636b047de..8c422e1500 100644 --- a/tests/PHPStan/Reflection/SignatureMap/Php8SignatureMapProviderTest.php +++ b/tests/PHPStan/Reflection/SignatureMap/Php8SignatureMapProviderTest.php @@ -40,7 +40,6 @@ 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 f6e6eba652..98b47e6cb0 100644 --- a/tests/PHPStan/Reflection/SignatureMap/SignatureMapParserTest.php +++ b/tests/PHPStan/Reflection/SignatureMap/SignatureMapParserTest.php @@ -37,7 +37,6 @@ 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 da53727d8d..2d7d3ca357 100644 --- a/tests/PHPStan/Reflection/Type/IntersectionTypeMethodReflectionTest.php +++ b/tests/PHPStan/Reflection/Type/IntersectionTypeMethodReflectionTest.php @@ -6,7 +6,6 @@ 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 c55cbd6850..b41d8d9636 100644 --- a/tests/PHPStan/Reflection/Type/UnionTypeMethodReflectionTest.php +++ b/tests/PHPStan/Reflection/Type/UnionTypeMethodReflectionTest.php @@ -6,7 +6,6 @@ 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 92d05d963c..8b72103e33 100644 --- a/tests/PHPStan/Reflection/UnionTypesTest.php +++ b/tests/PHPStan/Reflection/UnionTypesTest.php @@ -8,7 +8,6 @@ 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 d80420f95e..c1ac9fc109 100644 --- a/tests/PHPStan/Rules/DirectRegistryTest.php +++ b/tests/PHPStan/Rules/DirectRegistryTest.php @@ -6,7 +6,6 @@ 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 519d832672..1ca947f5d6 100644 --- a/tests/PHPStan/Rules/Exceptions/DefaultExceptionTypeResolverTest.php +++ b/tests/PHPStan/Rules/Exceptions/DefaultExceptionTypeResolverTest.php @@ -10,7 +10,6 @@ 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 7c222899ef..906422f83a 100644 --- a/tests/PHPStan/TrinaryLogicTest.php +++ b/tests/PHPStan/TrinaryLogicTest.php @@ -3,10 +3,8 @@ 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 6d592ae2d4..057ae63a2f 100644 --- a/tests/PHPStan/Type/Accessory/HasMethodTypeTest.php +++ b/tests/PHPStan/Type/Accessory/HasMethodTypeTest.php @@ -20,7 +20,6 @@ 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 b060af62e5..087bd96910 100644 --- a/tests/PHPStan/Type/Accessory/HasPropertyTypeTest.php +++ b/tests/PHPStan/Type/Accessory/HasPropertyTypeTest.php @@ -20,7 +20,6 @@ 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 ce1682fad2..59ed255a09 100644 --- a/tests/PHPStan/Type/ArrayTypeTest.php +++ b/tests/PHPStan/Type/ArrayTypeTest.php @@ -12,12 +12,10 @@ 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 3a55765461..8749301bc7 100644 --- a/tests/PHPStan/Type/BenevolentUnionTypeTest.php +++ b/tests/PHPStan/Type/BenevolentUnionTypeTest.php @@ -17,7 +17,6 @@ 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 c1316f2863..e210842df7 100644 --- a/tests/PHPStan/Type/BitwiseFlagHelperTest.php +++ b/tests/PHPStan/Type/BitwiseFlagHelperTest.php @@ -16,7 +16,6 @@ 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 16d10a2f0c..c1d189683c 100644 --- a/tests/PHPStan/Type/BooleanTypeTest.php +++ b/tests/PHPStan/Type/BooleanTypeTest.php @@ -6,11 +6,9 @@ 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 0f7153bf50..7ea4c0f30e 100644 --- a/tests/PHPStan/Type/CallableTypeTest.php +++ b/tests/PHPStan/Type/CallableTypeTest.php @@ -20,7 +20,6 @@ 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 18125b388b..bfb87e2fa8 100644 --- a/tests/PHPStan/Type/ClassStringTypeTest.php +++ b/tests/PHPStan/Type/ClassStringTypeTest.php @@ -11,7 +11,6 @@ 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 e8a11e446f..e492febefc 100644 --- a/tests/PHPStan/Type/ClosureTypeFactoryTest.php +++ b/tests/PHPStan/Type/ClosureTypeFactoryTest.php @@ -10,7 +10,6 @@ /** * @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 ec88ce9620..f5ef07239e 100644 --- a/tests/PHPStan/Type/ClosureTypeTest.php +++ b/tests/PHPStan/Type/ClosureTypeTest.php @@ -8,7 +8,6 @@ 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 7102351ba3..8052c4f8ae 100644 --- a/tests/PHPStan/Type/Constant/ConstantArrayTypeBuilderTest.php +++ b/tests/PHPStan/Type/Constant/ConstantArrayTypeBuilderTest.php @@ -9,7 +9,6 @@ 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 c3a0c93d5d..1c2b6fc410 100644 --- a/tests/PHPStan/Type/Constant/ConstantArrayTypeTest.php +++ b/tests/PHPStan/Type/Constant/ConstantArrayTypeTest.php @@ -29,7 +29,6 @@ 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 d49069a4d9..83260d706c 100644 --- a/tests/PHPStan/Type/Constant/ConstantFloatTypeTest.php +++ b/tests/PHPStan/Type/Constant/ConstantFloatTypeTest.php @@ -6,7 +6,6 @@ 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 8f75a3b18a..6e4fa1ead7 100644 --- a/tests/PHPStan/Type/Constant/ConstantIntegerTypeTest.php +++ b/tests/PHPStan/Type/Constant/ConstantIntegerTypeTest.php @@ -10,7 +10,6 @@ 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 10e0933942..d07d72d48a 100644 --- a/tests/PHPStan/Type/Constant/ConstantStringTypeTest.php +++ b/tests/PHPStan/Type/Constant/ConstantStringTypeTest.php @@ -22,7 +22,6 @@ 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 922745d548..185127d984 100644 --- a/tests/PHPStan/Type/Constant/OversizedArrayBuilderTest.php +++ b/tests/PHPStan/Type/Constant/OversizedArrayBuilderTest.php @@ -12,7 +12,6 @@ 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 1462220d17..a4e8527c93 100644 --- a/tests/PHPStan/Type/Enum/EnumCaseObjectTypeTest.php +++ b/tests/PHPStan/Type/Enum/EnumCaseObjectTypeTest.php @@ -14,7 +14,6 @@ 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 f112cef023..d613047140 100644 --- a/tests/PHPStan/Type/FileTypeMapperTest.php +++ b/tests/PHPStan/Type/FileTypeMapperTest.php @@ -9,7 +9,6 @@ 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 44d667b4dc..878e1d49f4 100644 --- a/tests/PHPStan/Type/FloatTypeTest.php +++ b/tests/PHPStan/Type/FloatTypeTest.php @@ -10,7 +10,6 @@ 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 e708299834..9f5b836898 100644 --- a/tests/PHPStan/Type/Generic/GenericClassStringTypeTest.php +++ b/tests/PHPStan/Type/Generic/GenericClassStringTypeTest.php @@ -25,7 +25,6 @@ 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 3993b0de91..2f3733c363 100644 --- a/tests/PHPStan/Type/Generic/GenericObjectTypeTest.php +++ b/tests/PHPStan/Type/Generic/GenericObjectTypeTest.php @@ -29,7 +29,6 @@ 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 26a4530e2e..c54813969d 100644 --- a/tests/PHPStan/Type/Generic/TemplateTypeHelperTest.php +++ b/tests/PHPStan/Type/Generic/TemplateTypeHelperTest.php @@ -8,7 +8,6 @@ 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 84fb0ad40f..ed6907ac61 100644 --- a/tests/PHPStan/Type/Generic/TemplateTypeMapTest.php +++ b/tests/PHPStan/Type/Generic/TemplateTypeMapTest.php @@ -9,7 +9,6 @@ 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 d724122654..e65f1a963e 100644 --- a/tests/PHPStan/Type/Generic/TemplateTypeVarianceTest.php +++ b/tests/PHPStan/Type/Generic/TemplateTypeVarianceTest.php @@ -13,7 +13,6 @@ 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 8c62600ce9..e6512b6f8c 100644 --- a/tests/PHPStan/Type/IntegerTypeTest.php +++ b/tests/PHPStan/Type/IntegerTypeTest.php @@ -10,7 +10,6 @@ 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 dc22e9afab..7318ba9c65 100644 --- a/tests/PHPStan/Type/IntersectionTypeTest.php +++ b/tests/PHPStan/Type/IntersectionTypeTest.php @@ -25,7 +25,6 @@ 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 772491841d..557caeb1ad 100644 --- a/tests/PHPStan/Type/IterableTypeTest.php +++ b/tests/PHPStan/Type/IterableTypeTest.php @@ -15,7 +15,6 @@ 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 ec750fd1e1..c204153c3f 100644 --- a/tests/PHPStan/Type/MixedTypeTest.php +++ b/tests/PHPStan/Type/MixedTypeTest.php @@ -16,7 +16,6 @@ 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 0f20a42155..3371c28427 100644 --- a/tests/PHPStan/Type/ObjectTypeTest.php +++ b/tests/PHPStan/Type/ObjectTypeTest.php @@ -46,7 +46,6 @@ 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 9062a54bb8..69e33b253a 100644 --- a/tests/PHPStan/Type/ObjectWithoutClassTypeTest.php +++ b/tests/PHPStan/Type/ObjectWithoutClassTypeTest.php @@ -8,7 +8,6 @@ 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 3963b55bb6..872ba25586 100644 --- a/tests/PHPStan/Type/Regex/RegexExpressionHelperTest.php +++ b/tests/PHPStan/Type/Regex/RegexExpressionHelperTest.php @@ -5,7 +5,6 @@ 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 ddc5847906..3e6e4f9469 100644 --- a/tests/PHPStan/Type/SimultaneousTypeTraverserTest.php +++ b/tests/PHPStan/Type/SimultaneousTypeTraverserTest.php @@ -9,7 +9,6 @@ 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 89f9139da7..980b5f6004 100644 --- a/tests/PHPStan/Type/StaticTypeTest.php +++ b/tests/PHPStan/Type/StaticTypeTest.php @@ -26,7 +26,6 @@ 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 c0ff27a4df..3be9e03240 100644 --- a/tests/PHPStan/Type/StringTypeTest.php +++ b/tests/PHPStan/Type/StringTypeTest.php @@ -16,7 +16,6 @@ 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 5dc35d7335..61c8839f13 100644 --- a/tests/PHPStan/Type/TemplateTypeTest.php +++ b/tests/PHPStan/Type/TemplateTypeTest.php @@ -21,7 +21,6 @@ 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 7b1d456a6f..acb3b932cf 100644 --- a/tests/PHPStan/Type/TestDecimalOperatorTypeSpecifyingExtensionTest.php +++ b/tests/PHPStan/Type/TestDecimalOperatorTypeSpecifyingExtensionTest.php @@ -7,7 +7,6 @@ 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 dad4092923..95edb13b3d 100644 --- a/tests/PHPStan/Type/TypeCombinatorTest.php +++ b/tests/PHPStan/Type/TypeCombinatorTest.php @@ -63,7 +63,6 @@ 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 57277bcb4e..e7e0ae2de6 100644 --- a/tests/PHPStan/Type/TypeGetFiniteTypesTest.php +++ b/tests/PHPStan/Type/TypeGetFiniteTypesTest.php @@ -12,7 +12,6 @@ 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 dacc2a8e16..29bfe8f70a 100644 --- a/tests/PHPStan/Type/TypeToPhpDocNodeTest.php +++ b/tests/PHPStan/Type/TypeToPhpDocNodeTest.php @@ -26,7 +26,6 @@ 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 3952faf62c..a4940279a4 100644 --- a/tests/PHPStan/Type/UnionTypeTest.php +++ b/tests/PHPStan/Type/UnionTypeTest.php @@ -36,7 +36,6 @@ 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 a744499d09..5297e6505f 100644 --- a/tests/PHPStan/Type/VerbosityLevelTest.php +++ b/tests/PHPStan/Type/VerbosityLevelTest.php @@ -9,7 +9,6 @@ use PHPStan\Type\Generic\TemplateTypeVariance; use PHPUnit\Framework\Attributes\DataProvider; -#[\PHPUnit\Framework\Attributes\CoversNothing] class VerbosityLevelTest extends PHPStanTestCase { From bdbcf94382ce007f6f0ba292f398d7cc7258bea7 Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Fri, 7 Nov 2025 16:46:33 +0100 Subject: [PATCH 12/17] Update .gitignore --- .gitignore | 2 -- 1 file changed, 2 deletions(-) diff --git a/.gitignore b/.gitignore index 4ef98d85fc..ed26d51fc4 100644 --- a/.gitignore +++ b/.gitignore @@ -3,8 +3,6 @@ /compiler/vendor /conf/config.local.yml /build-cs -/infection.json5 -/infection.phar /build-infection /vendor /.idea/* From 0c451bca916081c5d4441c72b20f9f2deb484061 Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Fri, 7 Nov 2025 16:54:39 +0100 Subject: [PATCH 13/17] Update Makefile --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b1bc8dab88..4ac45f2afe 100644 --- a/Makefile +++ b/Makefile @@ -175,7 +175,7 @@ infection: --log-junit=tmp/coverage/junit.xml baseBranch=$(shell git symbolic-ref refs/remotes/${remote:-origin}/HEAD | sed 's,.*/,,') \ php build-infection/vendor/bin/infection \ - --configuration=tmp/infection.json5 + --configuration=tmp/infection.json5 \ --git-diff-base=origin/$$baseBranch \ --git-diff-lines \ --coverage=tmp/coverage \ From 39fe0e0d749dfc070da3a7a41bd82c5f204e7500 Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Sat, 8 Nov 2025 09:59:04 +0100 Subject: [PATCH 14/17] fix --- .gitignore | 2 ++ Makefile | 21 +++++++++++---------- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/.gitignore b/.gitignore index ed26d51fc4..be1ba83abe 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,8 @@ /conf/config.local.yml /build-cs /build-infection +/infection.json5 +/infection.phar /vendor /.idea/* !.idea/icon.png diff --git a/Makefile b/Makefile index 4ac45f2afe..62a73cd10f 100644 --- a/Makefile +++ b/Makefile @@ -169,16 +169,17 @@ infection: git -C build-infection pull || git clone https://github.com/phpstan/build-infection.git 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'> tmp/infection.json5 + php build-infection/bin/infection-config.php --source-directory='build/PHPStan/Build'> infection.json5 XDEBUG_MODE=coverage php tests/vendor/bin/paratest \ --coverage-xml=tmp/coverage/coverage-xml \ --log-junit=tmp/coverage/junit.xml - baseBranch=$(shell git symbolic-ref refs/remotes/${remote:-origin}/HEAD | sed 's,.*/,,') \ - php build-infection/vendor/bin/infection \ - --configuration=tmp/infection.json5 \ - --git-diff-base=origin/$$baseBranch \ - --git-diff-lines \ - --coverage=tmp/coverage \ - --skip-initial-tests \ - --ignore-msi-with-no-mutations \ - --logger-text=php://stdout + 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; + php infection.phar \ + --configuration=infection.json5 \ + --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; From a23987dc8d092f34c4fc19324eea8614d1612db9 Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Sat, 8 Nov 2025 09:59:52 +0100 Subject: [PATCH 15/17] Update Makefile --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 62a73cd10f..f9483bf525 100644 --- a/Makefile +++ b/Makefile @@ -171,8 +171,8 @@ 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 XDEBUG_MODE=coverage php tests/vendor/bin/paratest \ - --coverage-xml=tmp/coverage/coverage-xml \ - --log-junit=tmp/coverage/junit.xml + --coverage-xml=tmp/coverage/coverage-xml \ + --log-junit=tmp/coverage/junit.xml 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; php infection.phar \ From 3f7d9c297be9854252f5a00a179c7ceb7d70cbed Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Sat, 8 Nov 2025 10:02:20 +0100 Subject: [PATCH 16/17] Update Makefile --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f9483bf525..24f40f45d8 100644 --- a/Makefile +++ b/Makefile @@ -174,7 +174,7 @@ infection: --coverage-xml=tmp/coverage/coverage-xml \ --log-junit=tmp/coverage/junit.xml 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; + wget https://github.com/infection/infection/releases/download/$$version/infection.phar --no-clobber; php infection.phar \ --configuration=infection.json5 \ --git-diff-base=origin/2.1.x \ From 9ec22f7d74dd8a62349cb8a18014725447727d2c Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Sat, 8 Nov 2025 10:05:26 +0100 Subject: [PATCH 17/17] Update Makefile --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 24f40f45d8..6386b03efe 100644 --- a/Makefile +++ b/Makefile @@ -174,7 +174,7 @@ infection: --coverage-xml=tmp/coverage/coverage-xml \ --log-junit=tmp/coverage/junit.xml 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; + wget https://github.com/infection/infection/releases/download/$$version/infection.phar --timestamping; php infection.phar \ --configuration=infection.json5 \ --git-diff-base=origin/2.1.x \