diff --git a/tests/PHPStan/Analyser/AnalyserIntegrationTest.php b/tests/PHPStan/Analyser/AnalyserIntegrationTest.php index 34daffc9ab..abd16523bf 100644 --- a/tests/PHPStan/Analyser/AnalyserIntegrationTest.php +++ b/tests/PHPStan/Analyser/AnalyserIntegrationTest.php @@ -11,11 +11,13 @@ use PHPStan\Testing\PHPStanTestCase; use PHPStan\Type\Constant\ConstantIntegerType; use PHPStan\Type\Constant\ConstantStringType; +use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\RequiresPhp; use function extension_loaded; use function sprintf; use const PHP_VERSION_ID; +#[CoversNothing] class AnalyserIntegrationTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Analyser/AnalyserTest.php b/tests/PHPStan/Analyser/AnalyserTest.php index 8714dc736f..4a7c6f7d58 100644 --- a/tests/PHPStan/Analyser/AnalyserTest.php +++ b/tests/PHPStan/Analyser/AnalyserTest.php @@ -31,6 +31,7 @@ use PHPStan\Rules\Properties\ReadWritePropertiesExtensionProvider; use PHPStan\Testing\PHPStanTestCase; use PHPStan\Type\FileTypeMapper; +use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; use stdClass; use function array_map; @@ -44,6 +45,7 @@ use function substr; use const PHP_OS; +#[CoversNothing] class AnalyserTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Analyser/AnalyserTraitsIntegrationTest.php b/tests/PHPStan/Analyser/AnalyserTraitsIntegrationTest.php index 914064439f..327ddb46a4 100644 --- a/tests/PHPStan/Analyser/AnalyserTraitsIntegrationTest.php +++ b/tests/PHPStan/Analyser/AnalyserTraitsIntegrationTest.php @@ -5,6 +5,7 @@ use Override; use PHPStan\File\FileHelper; use PHPStan\Testing\PHPStanTestCase; +use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\RequiresPhp; use function array_map; use function array_merge; @@ -12,6 +13,7 @@ use function sprintf; use function usort; +#[CoversNothing] class AnalyserTraitsIntegrationTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Analyser/AnalyserWithCheckDynamicPropertiesTest.php b/tests/PHPStan/Analyser/AnalyserWithCheckDynamicPropertiesTest.php index b6a160de93..b7c552815a 100644 --- a/tests/PHPStan/Analyser/AnalyserWithCheckDynamicPropertiesTest.php +++ b/tests/PHPStan/Analyser/AnalyserWithCheckDynamicPropertiesTest.php @@ -3,9 +3,11 @@ namespace PHPStan\Analyser; use PHPStan\Testing\PHPStanTestCase; +use PHPUnit\Framework\Attributes\CoversNothing; use function array_merge; use function array_unique; +#[CoversNothing] class AnalyserWithCheckDynamicPropertiesTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Analyser/ArgumentsNormalizerLegacyTest.php b/tests/PHPStan/Analyser/ArgumentsNormalizerLegacyTest.php index 06235a934e..f768f63ded 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\CoversNothing; use PHPUnit\Framework\Attributes\RequiresPhp; +#[CoversNothing] final class ArgumentsNormalizerLegacyTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Analyser/ArgumentsNormalizerTest.php b/tests/PHPStan/Analyser/ArgumentsNormalizerTest.php index b2cc10be5d..3bf13abffd 100644 --- a/tests/PHPStan/Analyser/ArgumentsNormalizerTest.php +++ b/tests/PHPStan/Analyser/ArgumentsNormalizerTest.php @@ -17,9 +17,11 @@ use PHPStan\Type\StringType; use PHPStan\Type\Type; use PHPStan\Type\VerbosityLevel; +use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; use function count; +#[CoversNothing] class ArgumentsNormalizerTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Analyser/ErrorTest.php b/tests/PHPStan/Analyser/ErrorTest.php index e59abafff3..4d50eb6b60 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\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; +#[CoversNothing] class ErrorTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Analyser/ExpressionResultTest.php b/tests/PHPStan/Analyser/ExpressionResultTest.php index 56b699f1fc..7785526200 100644 --- a/tests/PHPStan/Analyser/ExpressionResultTest.php +++ b/tests/PHPStan/Analyser/ExpressionResultTest.php @@ -10,11 +10,13 @@ use PHPStan\Type\ArrayType; use PHPStan\Type\IntegerType; use PHPStan\Type\MixedType; +use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; use function count; use function get_class; use function sprintf; +#[CoversNothing] class ExpressionResultTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Analyser/Ignore/IgnoreLexerTest.php b/tests/PHPStan/Analyser/Ignore/IgnoreLexerTest.php index 6e46630df6..e6cf3a3bca 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\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; use function array_pop; use function substr_count; use const PHP_EOL; +#[CoversNothing] class IgnoreLexerTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Analyser/ScopeTest.php b/tests/PHPStan/Analyser/ScopeTest.php index e83ed19354..da15b8fe50 100644 --- a/tests/PHPStan/Analyser/ScopeTest.php +++ b/tests/PHPStan/Analyser/ScopeTest.php @@ -16,8 +16,10 @@ use PHPStan\Type\Type; use PHPStan\Type\UnionType; use PHPStan\Type\VerbosityLevel; +use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; +#[CoversNothing] class ScopeTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Analyser/StatementResultTest.php b/tests/PHPStan/Analyser/StatementResultTest.php index 680f528815..21972a3084 100644 --- a/tests/PHPStan/Analyser/StatementResultTest.php +++ b/tests/PHPStan/Analyser/StatementResultTest.php @@ -10,9 +10,11 @@ use PHPStan\Type\IntegerType; use PHPStan\Type\MixedType; use PHPStan\Type\StringType; +use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; use function sprintf; +#[CoversNothing] class StatementResultTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Analyser/TypeSpecifierContextTest.php b/tests/PHPStan/Analyser/TypeSpecifierContextTest.php index 10c28510a5..cf311b5e7a 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\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; +#[CoversNothing] class TypeSpecifierContextTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Analyser/TypeSpecifierTest.php b/tests/PHPStan/Analyser/TypeSpecifierTest.php index dfcfae42dc..7829bc9b49 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\CoversNothing; 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; +#[CoversNothing] class TypeSpecifierTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Collectors/RegistryTest.php b/tests/PHPStan/Collectors/RegistryTest.php index ac7e0c2e9d..7b5df58240 100644 --- a/tests/PHPStan/Collectors/RegistryTest.php +++ b/tests/PHPStan/Collectors/RegistryTest.php @@ -5,7 +5,9 @@ use PhpParser\Node; use PHPStan\Analyser\Scope; use PHPStan\Testing\PHPStanTestCase; +use PHPUnit\Framework\Attributes\CoversNothing; +#[CoversNothing] class RegistryTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Command/AnalyseApplicationIntegrationTest.php b/tests/PHPStan/Command/AnalyseApplicationIntegrationTest.php index b13cb49ef9..05962e07a6 100644 --- a/tests/PHPStan/Command/AnalyseApplicationIntegrationTest.php +++ b/tests/PHPStan/Command/AnalyseApplicationIntegrationTest.php @@ -13,6 +13,7 @@ use PHPStan\File\SimpleRelativePathHelper; use PHPStan\ShouldNotHappenException; use PHPStan\Testing\PHPStanTestCase; +use PHPUnit\Framework\Attributes\CoversNothing; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\StreamOutput; use Symfony\Component\Console\Style\SymfonyStyle; @@ -22,6 +23,7 @@ use function stream_get_contents; use const DIRECTORY_SEPARATOR; +#[CoversNothing] class AnalyseApplicationIntegrationTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Command/AnalyseCommandTest.php b/tests/PHPStan/Command/AnalyseCommandTest.php index f2c4f4d73a..4eb75fc45c 100644 --- a/tests/PHPStan/Command/AnalyseCommandTest.php +++ b/tests/PHPStan/Command/AnalyseCommandTest.php @@ -4,6 +4,7 @@ use PHPStan\ShouldNotHappenException; use PHPStan\Testing\PHPStanTestCase; +use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\Attributes\Group; use Symfony\Component\Console\Tester\CommandTester; @@ -17,6 +18,7 @@ use const PHP_EOL; #[Group('exec')] +#[CoversNothing] class AnalyseCommandTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Command/AnalysisResultTest.php b/tests/PHPStan/Command/AnalysisResultTest.php index 2ea3344a9b..3fb5ca7027 100644 --- a/tests/PHPStan/Command/AnalysisResultTest.php +++ b/tests/PHPStan/Command/AnalysisResultTest.php @@ -4,7 +4,9 @@ use PHPStan\Analyser\Error; use PHPStan\Testing\PHPStanTestCase; +use PHPUnit\Framework\Attributes\CoversNothing; +#[CoversNothing] final class AnalysisResultTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Command/IgnoredRegexValidatorTest.php b/tests/PHPStan/Command/IgnoredRegexValidatorTest.php index 2b64d9e534..029a9d91c8 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\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; +#[CoversNothing] class IgnoredRegexValidatorTest extends PHPStanTestCase { diff --git a/tests/PHPStan/DependencyInjection/ConditionalTagsExtensionTest.php b/tests/PHPStan/DependencyInjection/ConditionalTagsExtensionTest.php index c512a1720e..5bacb5e5d6 100644 --- a/tests/PHPStan/DependencyInjection/ConditionalTagsExtensionTest.php +++ b/tests/PHPStan/DependencyInjection/ConditionalTagsExtensionTest.php @@ -4,9 +4,11 @@ use PHPStan\Rules\LazyRegistry; use PHPStan\Testing\PHPStanTestCase; +use PHPUnit\Framework\Attributes\CoversNothing; use function array_map; use function get_class; +#[CoversNothing] class ConditionalTagsExtensionTest extends PHPStanTestCase { diff --git a/tests/PHPStan/DependencyInjection/IgnoreErrorsTest.php b/tests/PHPStan/DependencyInjection/IgnoreErrorsTest.php index f24e65abc2..05754a521f 100644 --- a/tests/PHPStan/DependencyInjection/IgnoreErrorsTest.php +++ b/tests/PHPStan/DependencyInjection/IgnoreErrorsTest.php @@ -3,7 +3,9 @@ namespace PHPStan\DependencyInjection; use PHPStan\Testing\PHPStanTestCase; +use PHPUnit\Framework\Attributes\CoversNothing; +#[CoversNothing] class IgnoreErrorsTest extends PHPStanTestCase { diff --git a/tests/PHPStan/DependencyInjection/InvalidIgnoredErrorExceptionTest.php b/tests/PHPStan/DependencyInjection/InvalidIgnoredErrorExceptionTest.php index 6d8ac35b8c..18cb9223a7 100644 --- a/tests/PHPStan/DependencyInjection/InvalidIgnoredErrorExceptionTest.php +++ b/tests/PHPStan/DependencyInjection/InvalidIgnoredErrorExceptionTest.php @@ -3,8 +3,10 @@ namespace PHPStan\DependencyInjection; use PHPStan\Testing\PHPStanTestCase; +use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; +#[CoversNothing] class InvalidIgnoredErrorExceptionTest extends PHPStanTestCase { diff --git a/tests/PHPStan/DependencyInjection/Nette/NetteContainerTest.php b/tests/PHPStan/DependencyInjection/Nette/NetteContainerTest.php index e7629e4f83..cd47304ea0 100644 --- a/tests/PHPStan/DependencyInjection/Nette/NetteContainerTest.php +++ b/tests/PHPStan/DependencyInjection/Nette/NetteContainerTest.php @@ -6,7 +6,9 @@ use PHPStan\Testing\PHPStanTestCase; use PHPStan\TrinaryLogic; use PHPStan\Type\Php\ReflectionGetAttributesMethodReturnTypeExtension; +use PHPUnit\Framework\Attributes\CoversNothing; +#[CoversNothing] class NetteContainerTest extends PHPStanTestCase { diff --git a/tests/PHPStan/File/FileExcluderTest.php b/tests/PHPStan/File/FileExcluderTest.php index 02aff99453..0ac1a9c2b3 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\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; +#[CoversNothing] class FileExcluderTest extends PHPStanTestCase { diff --git a/tests/PHPStan/File/FileHelperTest.php b/tests/PHPStan/File/FileHelperTest.php index ac2cef5fd1..ff101a01f2 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\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; +#[CoversNothing] class FileHelperTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Generics/TemplateTypeFactoryTest.php b/tests/PHPStan/Generics/TemplateTypeFactoryTest.php index 20be5000fc..bdbcac8c95 100644 --- a/tests/PHPStan/Generics/TemplateTypeFactoryTest.php +++ b/tests/PHPStan/Generics/TemplateTypeFactoryTest.php @@ -15,9 +15,11 @@ use PHPStan\Type\Type; use PHPStan\Type\UnionType; use PHPStan\Type\VerbosityLevel; +use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; use function sprintf; +#[CoversNothing] class TemplateTypeFactoryTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Parser/CachedParserTest.php b/tests/PHPStan/Parser/CachedParserTest.php index a0df7a1b2a..60bae43ff5 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\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\MockObject\MockObject; +#[CoversNothing] class CachedParserTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Parser/CleaningParserTest.php b/tests/PHPStan/Parser/CleaningParserTest.php index c94558ed89..7fcf8a7f1a 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\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; use const PHP_VERSION_ID; +#[CoversNothing] class CleaningParserTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Parser/ParserTest.php b/tests/PHPStan/Parser/ParserTest.php index 7dd2e22a05..0db63b49b7 100644 --- a/tests/PHPStan/Parser/ParserTest.php +++ b/tests/PHPStan/Parser/ParserTest.php @@ -3,9 +3,11 @@ namespace PHPStan\Parser; use PHPStan\Testing\PHPStanTestCase; +use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; use function count; +#[CoversNothing] class ParserTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Parser/RichParserTest.php b/tests/PHPStan/Parser/RichParserTest.php index a821dbdb5c..99eefdbb33 100644 --- a/tests/PHPStan/Parser/RichParserTest.php +++ b/tests/PHPStan/Parser/RichParserTest.php @@ -3,9 +3,11 @@ namespace PHPStan\Parser; use PHPStan\Testing\PHPStanTestCase; +use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; use const PHP_EOL; +#[CoversNothing] class RichParserTest extends PHPStanTestCase { diff --git a/tests/PHPStan/PhpDoc/DefaultStubFilesProviderTest.php b/tests/PHPStan/PhpDoc/DefaultStubFilesProviderTest.php index a1e0faf4a2..f78b95f1ed 100644 --- a/tests/PHPStan/PhpDoc/DefaultStubFilesProviderTest.php +++ b/tests/PHPStan/PhpDoc/DefaultStubFilesProviderTest.php @@ -5,10 +5,12 @@ use Override; use PHPStan\File\FileHelper; use PHPStan\Testing\PHPStanTestCase; +use PHPUnit\Framework\Attributes\CoversNothing; use function dirname; use function sprintf; use const DIRECTORY_SEPARATOR; +#[CoversNothing] class DefaultStubFilesProviderTest extends PHPStanTestCase { diff --git a/tests/PHPStan/PhpDoc/PhpDocStringResolverTest.php b/tests/PHPStan/PhpDoc/PhpDocStringResolverTest.php index ba59b49188..9bf422e312 100644 --- a/tests/PHPStan/PhpDoc/PhpDocStringResolverTest.php +++ b/tests/PHPStan/PhpDoc/PhpDocStringResolverTest.php @@ -4,7 +4,9 @@ use PHPStan\PhpDocParser\Parser\ParserException; use PHPStan\Testing\PHPStanTestCase; +use PHPUnit\Framework\Attributes\CoversNothing; +#[CoversNothing] class PhpDocStringResolverTest extends PHPStanTestCase { diff --git a/tests/PHPStan/PhpDoc/TypeDescriptionTest.php b/tests/PHPStan/PhpDoc/TypeDescriptionTest.php index e7147bb077..222d21561f 100644 --- a/tests/PHPStan/PhpDoc/TypeDescriptionTest.php +++ b/tests/PHPStan/PhpDoc/TypeDescriptionTest.php @@ -19,9 +19,11 @@ use PHPStan\Type\StringType; use PHPStan\Type\Type; use PHPStan\Type\VerbosityLevel; +use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; use function sprintf; +#[CoversNothing] class TypeDescriptionTest extends PHPStanTestCase { diff --git a/tests/PHPStan/PhpDoc/TypeStringResolverTest.php b/tests/PHPStan/PhpDoc/TypeStringResolverTest.php index ccfa42e0b2..51f658712d 100644 --- a/tests/PHPStan/PhpDoc/TypeStringResolverTest.php +++ b/tests/PHPStan/PhpDoc/TypeStringResolverTest.php @@ -4,7 +4,9 @@ use PHPStan\PhpDocParser\Parser\ParserException; use PHPStan\Testing\PHPStanTestCase; +use PHPUnit\Framework\Attributes\CoversNothing; +#[CoversNothing] class TypeStringResolverTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Reflection/Annotations/AnnotationsMethodsClassReflectionExtensionTest.php b/tests/PHPStan/Reflection/Annotations/AnnotationsMethodsClassReflectionExtensionTest.php index 2be55e8284..5ef89b0202 100644 --- a/tests/PHPStan/Reflection/Annotations/AnnotationsMethodsClassReflectionExtensionTest.php +++ b/tests/PHPStan/Reflection/Annotations/AnnotationsMethodsClassReflectionExtensionTest.php @@ -12,11 +12,13 @@ use PHPStan\Reflection\Php\PhpMethodReflection; use PHPStan\Testing\PHPStanTestCase; use PHPStan\Type\VerbosityLevel; +use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; use function array_merge; use function count; use function sprintf; +#[CoversNothing] class AnnotationsMethodsClassReflectionExtensionTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Reflection/Annotations/AnnotationsPropertiesClassReflectionExtensionTest.php b/tests/PHPStan/Reflection/Annotations/AnnotationsPropertiesClassReflectionExtensionTest.php index f654fdbb51..893e829aef 100644 --- a/tests/PHPStan/Reflection/Annotations/AnnotationsPropertiesClassReflectionExtensionTest.php +++ b/tests/PHPStan/Reflection/Annotations/AnnotationsPropertiesClassReflectionExtensionTest.php @@ -11,9 +11,11 @@ use PHPStan\Analyser\Scope; use PHPStan\Testing\PHPStanTestCase; use PHPStan\Type\VerbosityLevel; +use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; use function sprintf; +#[CoversNothing] class AnnotationsPropertiesClassReflectionExtensionTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Reflection/Annotations/DeprecatedAnnotationsTest.php b/tests/PHPStan/Reflection/Annotations/DeprecatedAnnotationsTest.php index 936d56b4aa..1288796785 100644 --- a/tests/PHPStan/Reflection/Annotations/DeprecatedAnnotationsTest.php +++ b/tests/PHPStan/Reflection/Annotations/DeprecatedAnnotationsTest.php @@ -16,10 +16,12 @@ use PHPStan\Analyser\Scope; use PHPStan\Testing\PHPStanTestCase; use PHPStan\TrinaryLogic; +use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\Attributes\RequiresPhp; use const PHP_VERSION_ID; +#[CoversNothing] class DeprecatedAnnotationsTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Reflection/Annotations/FinalAnnotationsTest.php b/tests/PHPStan/Reflection/Annotations/FinalAnnotationsTest.php index b24c82fba9..734fd67b8f 100644 --- a/tests/PHPStan/Reflection/Annotations/FinalAnnotationsTest.php +++ b/tests/PHPStan/Reflection/Annotations/FinalAnnotationsTest.php @@ -6,8 +6,10 @@ use FinalAnnotations\Foo; use PHPStan\Analyser\Scope; use PHPStan\Testing\PHPStanTestCase; +use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; +#[CoversNothing] class FinalAnnotationsTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Reflection/Annotations/InternalAnnotationsTest.php b/tests/PHPStan/Reflection/Annotations/InternalAnnotationsTest.php index 9e4e36901f..2e4f46346c 100644 --- a/tests/PHPStan/Reflection/Annotations/InternalAnnotationsTest.php +++ b/tests/PHPStan/Reflection/Annotations/InternalAnnotationsTest.php @@ -11,8 +11,10 @@ use PhpParser\Node\Name; use PHPStan\Analyser\Scope; use PHPStan\Testing\PHPStanTestCase; +use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; +#[CoversNothing] class InternalAnnotationsTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Reflection/Annotations/ThrowsAnnotationsTest.php b/tests/PHPStan/Reflection/Annotations/ThrowsAnnotationsTest.php index b58322ca01..4a8c49b342 100644 --- a/tests/PHPStan/Reflection/Annotations/ThrowsAnnotationsTest.php +++ b/tests/PHPStan/Reflection/Annotations/ThrowsAnnotationsTest.php @@ -6,6 +6,7 @@ use PHPStan\Analyser\Scope; use PHPStan\Testing\PHPStanTestCase; use PHPStan\Type\VerbosityLevel; +use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; use RuntimeException; use ThrowsAnnotations\BarTrait; @@ -14,6 +15,7 @@ use ThrowsAnnotations\FooTrait; use ThrowsAnnotations\PhpstanFoo; +#[CoversNothing] class ThrowsAnnotationsTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Reflection/AttributeReflectionTest.php b/tests/PHPStan/Reflection/AttributeReflectionTest.php index 2b71efa9ba..8991ede997 100644 --- a/tests/PHPStan/Reflection/AttributeReflectionTest.php +++ b/tests/PHPStan/Reflection/AttributeReflectionTest.php @@ -7,11 +7,13 @@ use PhpParser\Node\Name; use PHPStan\Testing\PHPStanTestCase; use PHPStan\Type\VerbosityLevel; +use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\Attributes\RequiresPhp; use function count; use const PHP_VERSION_ID; +#[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..89b14752cd 100644 --- a/tests/PHPStan/Reflection/BetterReflection/SourceLocator/OptimizedDirectorySourceLocatorTest.php +++ b/tests/PHPStan/Reflection/BetterReflection/SourceLocator/OptimizedDirectorySourceLocatorTest.php @@ -8,6 +8,7 @@ use PHPStan\BetterReflection\Reflector\DefaultReflector; use PHPStan\BetterReflection\Reflector\Exception\IdentifierNotFound; use PHPStan\Testing\PHPStanTestCase; +use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; use TestDirectorySourceLocator\AFoo; use TestDirectorySourceLocator\EmptyClass; @@ -15,6 +16,7 @@ use function basename; use const PHP_VERSION_ID; +#[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..904840358d 100644 --- a/tests/PHPStan/Reflection/BetterReflection/SourceLocator/OptimizedSingleFileSourceLocatorTest.php +++ b/tests/PHPStan/Reflection/BetterReflection/SourceLocator/OptimizedSingleFileSourceLocatorTest.php @@ -10,12 +10,14 @@ use PHPStan\Reflection\InitializerExprTypeResolver; use PHPStan\Testing\PHPStanTestCase; use PHPStan\Type\VerbosityLevel; +use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; use SingleFileSourceLocatorTestClass; use TestSingleFileSourceLocator\AFoo; use function array_map; use const PHP_VERSION_ID; +#[CoversNothing] class OptimizedSingleFileSourceLocatorTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Reflection/ClassReflectionPropertyHooksTest.php b/tests/PHPStan/Reflection/ClassReflectionPropertyHooksTest.php index 3003fad564..cf37ffa6c1 100644 --- a/tests/PHPStan/Reflection/ClassReflectionPropertyHooksTest.php +++ b/tests/PHPStan/Reflection/ClassReflectionPropertyHooksTest.php @@ -7,11 +7,13 @@ use PHPStan\Type\Generic\GenericObjectType; use PHPStan\Type\IntegerType; use PHPStan\Type\VerbosityLevel; +use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\Attributes\RequiresPhp; use function count; #[RequiresPhp('>= 8.4')] +#[CoversNothing] class ClassReflectionPropertyHooksTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Reflection/ClassReflectionTest.php b/tests/PHPStan/Reflection/ClassReflectionTest.php index 78c0295b7b..1003595b03 100644 --- a/tests/PHPStan/Reflection/ClassReflectionTest.php +++ b/tests/PHPStan/Reflection/ClassReflectionTest.php @@ -30,6 +30,7 @@ use PHPStan\Testing\PHPStanTestCase; use PHPStan\Testing\RuleTestCase; use PHPStan\Type\IntegerType; +use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\Attributes\RequiresPhp; use PHPUnit\Framework\TestCase; @@ -38,6 +39,7 @@ use function array_map; use function array_values; +#[CoversNothing] class ClassReflectionTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Reflection/Constant/RuntimeConstantReflectionTest.php b/tests/PHPStan/Reflection/Constant/RuntimeConstantReflectionTest.php index 925cb4350d..42e43ec185 100644 --- a/tests/PHPStan/Reflection/Constant/RuntimeConstantReflectionTest.php +++ b/tests/PHPStan/Reflection/Constant/RuntimeConstantReflectionTest.php @@ -5,9 +5,11 @@ use PhpParser\Node\Name; use PHPStan\Testing\PHPStanTestCase; use PHPStan\TrinaryLogic; +use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; use const PHP_VERSION_ID; +#[CoversNothing] class RuntimeConstantReflectionTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Reflection/Deprecation/DeprecationProviderTest.php b/tests/PHPStan/Reflection/Deprecation/DeprecationProviderTest.php index 2d177acc1e..f3c79df808 100644 --- a/tests/PHPStan/Reflection/Deprecation/DeprecationProviderTest.php +++ b/tests/PHPStan/Reflection/Deprecation/DeprecationProviderTest.php @@ -15,8 +15,10 @@ use PHPStan\Analyser\ScopeContext; use PHPStan\Analyser\ScopeFactory; use PHPStan\Testing\PHPStanTestCase; +use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\RequiresPhp; +#[CoversNothing] class DeprecationProviderTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Reflection/FunctionReflectionTest.php b/tests/PHPStan/Reflection/FunctionReflectionTest.php index 12dd5ee438..13bf57ba43 100644 --- a/tests/PHPStan/Reflection/FunctionReflectionTest.php +++ b/tests/PHPStan/Reflection/FunctionReflectionTest.php @@ -6,9 +6,11 @@ use PHPStan\Analyser\Scope; use PHPStan\Testing\PHPStanTestCase; use PHPStan\TrinaryLogic; +use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; use const PHP_VERSION_ID; +#[CoversNothing] class FunctionReflectionTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Reflection/GenericParametersAcceptorResolverTest.php b/tests/PHPStan/Reflection/GenericParametersAcceptorResolverTest.php index ea627a029f..2ff4355e84 100644 --- a/tests/PHPStan/Reflection/GenericParametersAcceptorResolverTest.php +++ b/tests/PHPStan/Reflection/GenericParametersAcceptorResolverTest.php @@ -17,11 +17,13 @@ use PHPStan\Type\Type; use PHPStan\Type\UnionType; use PHPStan\Type\VerbosityLevel; +use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; use function count; use function get_class; use function sprintf; +#[CoversNothing] class GenericParametersAcceptorResolverTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Reflection/InitializerExprTypeResolverTest.php b/tests/PHPStan/Reflection/InitializerExprTypeResolverTest.php index 6c3ba79cfb..73bca9bd77 100644 --- a/tests/PHPStan/Reflection/InitializerExprTypeResolverTest.php +++ b/tests/PHPStan/Reflection/InitializerExprTypeResolverTest.php @@ -10,8 +10,10 @@ use PHPStan\Type\Constant\ConstantIntegerType; use PHPStan\Type\NeverType; use PHPStan\Type\Type; +use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; +#[CoversNothing] class InitializerExprTypeResolverTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Reflection/MixedTypeTest.php b/tests/PHPStan/Reflection/MixedTypeTest.php index 0d30fc39b8..4830e205d4 100644 --- a/tests/PHPStan/Reflection/MixedTypeTest.php +++ b/tests/PHPStan/Reflection/MixedTypeTest.php @@ -6,8 +6,10 @@ use PhpParser\Node\Name; use PHPStan\Testing\PHPStanTestCase; use PHPStan\Type\MixedType; +use PHPUnit\Framework\Attributes\CoversNothing; use const PHP_VERSION_ID; +#[CoversNothing] class MixedTypeTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Reflection/ParametersAcceptorSelectorTest.php b/tests/PHPStan/Reflection/ParametersAcceptorSelectorTest.php index 1926cb56e5..06e2b1289d 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\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; use function array_map; use function count; +#[CoversNothing] class ParametersAcceptorSelectorTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Reflection/Php/UniversalObjectCratesClassReflectionExtensionTest.php b/tests/PHPStan/Reflection/Php/UniversalObjectCratesClassReflectionExtensionTest.php index 9c2858aaea..5b6c07454f 100644 --- a/tests/PHPStan/Reflection/Php/UniversalObjectCratesClassReflectionExtensionTest.php +++ b/tests/PHPStan/Reflection/Php/UniversalObjectCratesClassReflectionExtensionTest.php @@ -6,8 +6,10 @@ use PHPStan\Testing\PHPStanTestCase; use PHPStan\Type\ObjectType; use PHPStan\Type\StringType; +use PHPUnit\Framework\Attributes\CoversNothing; use stdClass; +#[CoversNothing] class UniversalObjectCratesClassReflectionExtensionTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php b/tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php index c9f990d1cd..1d798c64f4 100644 --- a/tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php +++ b/tests/PHPStan/Reflection/ReflectionProviderGoldenTest.php @@ -13,6 +13,7 @@ use PHPStan\ShouldNotHappenException; use PHPStan\Testing\PHPStanTestCase; use PHPStan\Type\VerbosityLevel; +use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; use ReflectionClass; use Symfony\Component\Finder\Finder; @@ -39,6 +40,7 @@ use const PHP_INT_MAX; use const PHP_VERSION_ID; +#[CoversNothing] class ReflectionProviderGoldenTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Reflection/ReflectionProviderTest.php b/tests/PHPStan/Reflection/ReflectionProviderTest.php index 5bfd1978b6..af37ffcfd8 100644 --- a/tests/PHPStan/Reflection/ReflectionProviderTest.php +++ b/tests/PHPStan/Reflection/ReflectionProviderTest.php @@ -9,10 +9,12 @@ use PHPStan\Type\ObjectType; use PHPStan\Type\Type; use PHPStan\Type\VerbosityLevel; +use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\Attributes\RequiresPhp; use const PHP_VERSION_ID; +#[CoversNothing] class ReflectionProviderTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Reflection/SignatureMap/FunctionMetadataTest.php b/tests/PHPStan/Reflection/SignatureMap/FunctionMetadataTest.php index 24ef8431ee..401730f9f0 100644 --- a/tests/PHPStan/Reflection/SignatureMap/FunctionMetadataTest.php +++ b/tests/PHPStan/Reflection/SignatureMap/FunctionMetadataTest.php @@ -5,7 +5,9 @@ use Nette\Schema\Expect; use Nette\Schema\Processor; use PHPStan\Testing\PHPStanTestCase; +use PHPUnit\Framework\Attributes\CoversNothing; +#[CoversNothing] class FunctionMetadataTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Reflection/SignatureMap/Php8SignatureMapProviderTest.php b/tests/PHPStan/Reflection/SignatureMap/Php8SignatureMapProviderTest.php index 8c422e1500..9e20cceac5 100644 --- a/tests/PHPStan/Reflection/SignatureMap/Php8SignatureMapProviderTest.php +++ b/tests/PHPStan/Reflection/SignatureMap/Php8SignatureMapProviderTest.php @@ -34,12 +34,14 @@ use PHPStan\Type\UnionType; use PHPStan\Type\VerbosityLevel; use PHPStan\Type\VoidType; +use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; use function array_map; use function array_merge; use function count; use const PHP_VERSION_ID; +#[CoversNothing] class Php8SignatureMapProviderTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Reflection/SignatureMap/SignatureMapParserTest.php b/tests/PHPStan/Reflection/SignatureMap/SignatureMapParserTest.php index 98b47e6cb0..8231efbf9a 100644 --- a/tests/PHPStan/Reflection/SignatureMap/SignatureMapParserTest.php +++ b/tests/PHPStan/Reflection/SignatureMap/SignatureMapParserTest.php @@ -28,6 +28,7 @@ use PHPStan\Type\StringType; use PHPStan\Type\UnionType; use PHPStan\Type\VerbosityLevel; +use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; use ReflectionParameter; use Throwable; @@ -37,6 +38,7 @@ use function sprintf; use function strpos; +#[CoversNothing] class SignatureMapParserTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Reflection/Type/IntersectionTypeMethodReflectionTest.php b/tests/PHPStan/Reflection/Type/IntersectionTypeMethodReflectionTest.php index 2d7d3ca357..5e09fe1eca 100644 --- a/tests/PHPStan/Reflection/Type/IntersectionTypeMethodReflectionTest.php +++ b/tests/PHPStan/Reflection/Type/IntersectionTypeMethodReflectionTest.php @@ -5,7 +5,9 @@ use PHPStan\Reflection\ExtendedMethodReflection; use PHPStan\Testing\PHPStanTestCase; use PHPStan\TrinaryLogic; +use PHPUnit\Framework\Attributes\CoversNothing; +#[CoversNothing] class IntersectionTypeMethodReflectionTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Reflection/Type/UnionTypeMethodReflectionTest.php b/tests/PHPStan/Reflection/Type/UnionTypeMethodReflectionTest.php index b41d8d9636..68b7647c02 100644 --- a/tests/PHPStan/Reflection/Type/UnionTypeMethodReflectionTest.php +++ b/tests/PHPStan/Reflection/Type/UnionTypeMethodReflectionTest.php @@ -5,7 +5,9 @@ use PHPStan\Reflection\ExtendedMethodReflection; use PHPStan\Testing\PHPStanTestCase; use PHPStan\TrinaryLogic; +use PHPUnit\Framework\Attributes\CoversNothing; +#[CoversNothing] class UnionTypeMethodReflectionTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Reflection/UnionTypesTest.php b/tests/PHPStan/Reflection/UnionTypesTest.php index 8b72103e33..1d4819bd5a 100644 --- a/tests/PHPStan/Reflection/UnionTypesTest.php +++ b/tests/PHPStan/Reflection/UnionTypesTest.php @@ -7,7 +7,9 @@ use PHPStan\Testing\PHPStanTestCase; use PHPStan\Type\UnionType; use PHPStan\Type\VerbosityLevel; +use PHPUnit\Framework\Attributes\CoversNothing; +#[CoversNothing] class UnionTypesTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Rules/DirectRegistryTest.php b/tests/PHPStan/Rules/DirectRegistryTest.php index c1ac9fc109..41dadad640 100644 --- a/tests/PHPStan/Rules/DirectRegistryTest.php +++ b/tests/PHPStan/Rules/DirectRegistryTest.php @@ -5,7 +5,9 @@ use PhpParser\Node; use PHPStan\Analyser\Scope; use PHPStan\Testing\PHPStanTestCase; +use PHPUnit\Framework\Attributes\CoversNothing; +#[CoversNothing] class DirectRegistryTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Rules/Exceptions/DefaultExceptionTypeResolverTest.php b/tests/PHPStan/Rules/Exceptions/DefaultExceptionTypeResolverTest.php index 1ca947f5d6..26750f7f9d 100644 --- a/tests/PHPStan/Rules/Exceptions/DefaultExceptionTypeResolverTest.php +++ b/tests/PHPStan/Rules/Exceptions/DefaultExceptionTypeResolverTest.php @@ -8,8 +8,10 @@ use PHPStan\Analyser\ScopeContext; use PHPStan\Analyser\ScopeFactory; use PHPStan\Testing\PHPStanTestCase; +use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; +#[CoversNothing] class DefaultExceptionTypeResolverTest extends PHPStanTestCase { diff --git a/tests/PHPStan/TrinaryLogicTest.php b/tests/PHPStan/TrinaryLogicTest.php index 906422f83a..6e41e58ad2 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\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; +#[CoversNothing] class TrinaryLogicTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/Accessory/HasMethodTypeTest.php b/tests/PHPStan/Type/Accessory/HasMethodTypeTest.php index 057ae63a2f..f4ec164a49 100644 --- a/tests/PHPStan/Type/Accessory/HasMethodTypeTest.php +++ b/tests/PHPStan/Type/Accessory/HasMethodTypeTest.php @@ -17,9 +17,11 @@ use PHPStan\Type\Type; use PHPStan\Type\UnionType; use PHPStan\Type\VerbosityLevel; +use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; use function sprintf; +#[CoversNothing] class HasMethodTypeTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/Accessory/HasPropertyTypeTest.php b/tests/PHPStan/Type/Accessory/HasPropertyTypeTest.php index 087bd96910..42ba4f8756 100644 --- a/tests/PHPStan/Type/Accessory/HasPropertyTypeTest.php +++ b/tests/PHPStan/Type/Accessory/HasPropertyTypeTest.php @@ -16,10 +16,12 @@ use PHPStan\Type\Type; use PHPStan\Type\UnionType; use PHPStan\Type\VerbosityLevel; +use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; use function sprintf; use const PHP_VERSION_ID; +#[CoversNothing] class HasPropertyTypeTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/ArrayTypeTest.php b/tests/PHPStan/Type/ArrayTypeTest.php index 59ed255a09..821754f8bb 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\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; use function array_map; use function sprintf; +#[CoversNothing] class ArrayTypeTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/BenevolentUnionTypeTest.php b/tests/PHPStan/Type/BenevolentUnionTypeTest.php index 8749301bc7..6fba8510af 100644 --- a/tests/PHPStan/Type/BenevolentUnionTypeTest.php +++ b/tests/PHPStan/Type/BenevolentUnionTypeTest.php @@ -14,9 +14,11 @@ use PHPStan\Type\Accessory\NonEmptyArrayType; use PHPStan\Type\Constant\ConstantArrayType; use PHPStan\Type\Constant\ConstantStringType; +use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; use function sprintf; +#[CoversNothing] class BenevolentUnionTypeTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/BitwiseFlagHelperTest.php b/tests/PHPStan/Type/BitwiseFlagHelperTest.php index e210842df7..ddb0036bfc 100644 --- a/tests/PHPStan/Type/BitwiseFlagHelperTest.php +++ b/tests/PHPStan/Type/BitwiseFlagHelperTest.php @@ -12,10 +12,12 @@ use PHPStan\Analyser\ScopeFactory; use PHPStan\Testing\PHPStanTestCase; use PHPStan\TrinaryLogic; +use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; use function defined; use function sprintf; +#[CoversNothing] final class BitwiseFlagHelperTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/BooleanTypeTest.php b/tests/PHPStan/Type/BooleanTypeTest.php index c1d189683c..b852a0f9da 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\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; use function sprintf; +#[CoversNothing] class BooleanTypeTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/CallableTypeTest.php b/tests/PHPStan/Type/CallableTypeTest.php index 7ea4c0f30e..cb48a6796e 100644 --- a/tests/PHPStan/Type/CallableTypeTest.php +++ b/tests/PHPStan/Type/CallableTypeTest.php @@ -16,10 +16,12 @@ use PHPStan\Type\Generic\TemplateTypeFactory; use PHPStan\Type\Generic\TemplateTypeScope; use PHPStan\Type\Generic\TemplateTypeVariance; +use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; use function array_map; use function sprintf; +#[CoversNothing] class CallableTypeTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/ClassStringTypeTest.php b/tests/PHPStan/Type/ClassStringTypeTest.php index bfb87e2fa8..7880465bc4 100644 --- a/tests/PHPStan/Type/ClassStringTypeTest.php +++ b/tests/PHPStan/Type/ClassStringTypeTest.php @@ -7,10 +7,12 @@ use PHPStan\TrinaryLogic; use PHPStan\Type\Constant\ConstantStringType; use PHPStan\Type\Generic\GenericClassStringType; +use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; use stdClass; use function sprintf; +#[CoversNothing] class ClassStringTypeTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/ClosureTypeFactoryTest.php b/tests/PHPStan/Type/ClosureTypeFactoryTest.php index e492febefc..42fcfa9033 100644 --- a/tests/PHPStan/Type/ClosureTypeFactoryTest.php +++ b/tests/PHPStan/Type/ClosureTypeFactoryTest.php @@ -4,12 +4,14 @@ use Closure; use PHPStan\Testing\PHPStanTestCase; +use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; use const PHP_VERSION_ID; /** * @phpstan-consistent-constructor */ +#[CoversNothing] class ClosureTypeFactoryTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/ClosureTypeTest.php b/tests/PHPStan/Type/ClosureTypeTest.php index f5ef07239e..161d5ceed6 100644 --- a/tests/PHPStan/Type/ClosureTypeTest.php +++ b/tests/PHPStan/Type/ClosureTypeTest.php @@ -5,9 +5,11 @@ use Closure; use PHPStan\Testing\PHPStanTestCase; use PHPStan\TrinaryLogic; +use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; use function sprintf; +#[CoversNothing] class ClosureTypeTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/Constant/ConstantArrayTypeBuilderTest.php b/tests/PHPStan/Type/Constant/ConstantArrayTypeBuilderTest.php index 8052c4f8ae..a3c751626a 100644 --- a/tests/PHPStan/Type/Constant/ConstantArrayTypeBuilderTest.php +++ b/tests/PHPStan/Type/Constant/ConstantArrayTypeBuilderTest.php @@ -8,7 +8,9 @@ use PHPStan\Type\StringType; use PHPStan\Type\TypeCombinator; use PHPStan\Type\VerbosityLevel; +use PHPUnit\Framework\Attributes\CoversNothing; +#[CoversNothing] class ConstantArrayTypeBuilderTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/Constant/ConstantArrayTypeTest.php b/tests/PHPStan/Type/Constant/ConstantArrayTypeTest.php index 1c2b6fc410..577675c2ea 100644 --- a/tests/PHPStan/Type/Constant/ConstantArrayTypeTest.php +++ b/tests/PHPStan/Type/Constant/ConstantArrayTypeTest.php @@ -25,10 +25,12 @@ use PHPStan\Type\TypeCombinator; use PHPStan\Type\UnionType; use PHPStan\Type\VerbosityLevel; +use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; use function array_map; use function sprintf; +#[CoversNothing] class ConstantArrayTypeTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/Constant/ConstantFloatTypeTest.php b/tests/PHPStan/Type/Constant/ConstantFloatTypeTest.php index 83260d706c..960dff8d5b 100644 --- a/tests/PHPStan/Type/Constant/ConstantFloatTypeTest.php +++ b/tests/PHPStan/Type/Constant/ConstantFloatTypeTest.php @@ -4,8 +4,10 @@ use PHPStan\Testing\PHPStanTestCase; use PHPStan\Type\VerbosityLevel; +use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; +#[CoversNothing] class ConstantFloatTypeTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/Constant/ConstantIntegerTypeTest.php b/tests/PHPStan/Type/Constant/ConstantIntegerTypeTest.php index 6e4fa1ead7..90872ca94f 100644 --- a/tests/PHPStan/Type/Constant/ConstantIntegerTypeTest.php +++ b/tests/PHPStan/Type/Constant/ConstantIntegerTypeTest.php @@ -7,9 +7,11 @@ use PHPStan\Type\IntegerType; use PHPStan\Type\Type; use PHPStan\Type\VerbosityLevel; +use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; use function sprintf; +#[CoversNothing] class ConstantIntegerTypeTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/Constant/ConstantStringTypeTest.php b/tests/PHPStan/Type/Constant/ConstantStringTypeTest.php index d07d72d48a..7f7442d294 100644 --- a/tests/PHPStan/Type/Constant/ConstantStringTypeTest.php +++ b/tests/PHPStan/Type/Constant/ConstantStringTypeTest.php @@ -17,11 +17,13 @@ use PHPStan\Type\StaticType; use PHPStan\Type\Type; use PHPStan\Type\VerbosityLevel; +use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; use stdClass; use Throwable; use function sprintf; +#[CoversNothing] class ConstantStringTypeTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/Constant/OversizedArrayBuilderTest.php b/tests/PHPStan/Type/Constant/OversizedArrayBuilderTest.php index 185127d984..3e73f8c54c 100644 --- a/tests/PHPStan/Type/Constant/OversizedArrayBuilderTest.php +++ b/tests/PHPStan/Type/Constant/OversizedArrayBuilderTest.php @@ -10,8 +10,10 @@ use PHPStan\Testing\PHPStanTestCase; use PHPStan\Type\Type; use PHPStan\Type\VerbosityLevel; +use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; +#[CoversNothing] class OversizedArrayBuilderTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/Enum/EnumCaseObjectTypeTest.php b/tests/PHPStan/Type/Enum/EnumCaseObjectTypeTest.php index a4e8527c93..3a37e9d429 100644 --- a/tests/PHPStan/Type/Enum/EnumCaseObjectTypeTest.php +++ b/tests/PHPStan/Type/Enum/EnumCaseObjectTypeTest.php @@ -10,10 +10,12 @@ use PHPStan\Type\Type; use PHPStan\Type\UnionType; use PHPStan\Type\VerbosityLevel; +use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\Attributes\RequiresPhp; use function sprintf; +#[CoversNothing] class EnumCaseObjectTypeTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/FileTypeMapperTest.php b/tests/PHPStan/Type/FileTypeMapperTest.php index d613047140..dd9ebe6e7e 100644 --- a/tests/PHPStan/Type/FileTypeMapperTest.php +++ b/tests/PHPStan/Type/FileTypeMapperTest.php @@ -6,9 +6,11 @@ use PHPStan\PhpDoc\Tag\ReturnTag; use PHPStan\ShouldNotHappenException; use PHPStan\Testing\PHPStanTestCase; +use PHPUnit\Framework\Attributes\CoversNothing; use RuntimeException; use function realpath; +#[CoversNothing] class FileTypeMapperTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/FloatTypeTest.php b/tests/PHPStan/Type/FloatTypeTest.php index 878e1d49f4..994d38824a 100644 --- a/tests/PHPStan/Type/FloatTypeTest.php +++ b/tests/PHPStan/Type/FloatTypeTest.php @@ -7,9 +7,11 @@ use PHPStan\Type\Constant\ConstantFloatType; use PHPStan\Type\Constant\ConstantIntegerType; use PHPStan\Type\Constant\ConstantStringType; +use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; use function sprintf; +#[CoversNothing] class FloatTypeTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/Generic/GenericClassStringTypeTest.php b/tests/PHPStan/Type/Generic/GenericClassStringTypeTest.php index 9f5b836898..e16778161b 100644 --- a/tests/PHPStan/Type/Generic/GenericClassStringTypeTest.php +++ b/tests/PHPStan/Type/Generic/GenericClassStringTypeTest.php @@ -20,11 +20,13 @@ use PHPStan\Type\Type; use PHPStan\Type\UnionType; use PHPStan\Type\VerbosityLevel; +use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; use stdClass; use Throwable; use function sprintf; +#[CoversNothing] class GenericClassStringTypeTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/Generic/GenericObjectTypeTest.php b/tests/PHPStan/Type/Generic/GenericObjectTypeTest.php index 2f3733c363..ac6429b52b 100644 --- a/tests/PHPStan/Type/Generic/GenericObjectTypeTest.php +++ b/tests/PHPStan/Type/Generic/GenericObjectTypeTest.php @@ -21,6 +21,7 @@ use PHPStan\Type\Type; use PHPStan\Type\UnionType; use PHPStan\Type\VerbosityLevel; +use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; use ReflectionClass; use stdClass; @@ -29,6 +30,7 @@ use function sprintf; use const PHP_VERSION_ID; +#[CoversNothing] class GenericObjectTypeTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/Generic/TemplateTypeHelperTest.php b/tests/PHPStan/Type/Generic/TemplateTypeHelperTest.php index c54813969d..d82e632c52 100644 --- a/tests/PHPStan/Type/Generic/TemplateTypeHelperTest.php +++ b/tests/PHPStan/Type/Generic/TemplateTypeHelperTest.php @@ -7,7 +7,9 @@ use PHPStan\Type\IntersectionType; use PHPStan\Type\ObjectType; use PHPStan\Type\VerbosityLevel; +use PHPUnit\Framework\Attributes\CoversNothing; +#[CoversNothing] class TemplateTypeHelperTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/Generic/TemplateTypeMapTest.php b/tests/PHPStan/Type/Generic/TemplateTypeMapTest.php index ed6907ac61..41200cf7c7 100644 --- a/tests/PHPStan/Type/Generic/TemplateTypeMapTest.php +++ b/tests/PHPStan/Type/Generic/TemplateTypeMapTest.php @@ -7,8 +7,10 @@ use PHPStan\Testing\PHPStanTestCase; use PHPStan\Type\ObjectType; use PHPStan\Type\VerbosityLevel; +use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; +#[CoversNothing] class TemplateTypeMapTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/Generic/TemplateTypeVarianceTest.php b/tests/PHPStan/Type/Generic/TemplateTypeVarianceTest.php index e65f1a963e..c02b2052ba 100644 --- a/tests/PHPStan/Type/Generic/TemplateTypeVarianceTest.php +++ b/tests/PHPStan/Type/Generic/TemplateTypeVarianceTest.php @@ -10,9 +10,11 @@ use PHPStan\Type\Type; use PHPStan\Type\UnionType; use PHPStan\Type\VerbosityLevel; +use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; use function sprintf; +#[CoversNothing] class TemplateTypeVarianceTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/IntegerTypeTest.php b/tests/PHPStan/Type/IntegerTypeTest.php index e6512b6f8c..3a72d9b2dc 100644 --- a/tests/PHPStan/Type/IntegerTypeTest.php +++ b/tests/PHPStan/Type/IntegerTypeTest.php @@ -7,9 +7,11 @@ use PHPStan\Type\Constant\ConstantFloatType; use PHPStan\Type\Constant\ConstantIntegerType; use PHPStan\Type\Constant\ConstantStringType; +use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; use function sprintf; +#[CoversNothing] class IntegerTypeTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/IntersectionTypeTest.php b/tests/PHPStan/Type/IntersectionTypeTest.php index 7318ba9c65..ddef53273d 100644 --- a/tests/PHPStan/Type/IntersectionTypeTest.php +++ b/tests/PHPStan/Type/IntersectionTypeTest.php @@ -17,6 +17,7 @@ use PHPStan\Type\Constant\ConstantIntegerType; use PHPStan\Type\Constant\ConstantStringType; use PHPStan\Type\Enum\EnumCaseObjectType; +use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; use stdClass; use Test\ClassWithToString; @@ -25,6 +26,7 @@ use function sprintf; use const PHP_VERSION_ID; +#[CoversNothing] class IntersectionTypeTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/IterableTypeTest.php b/tests/PHPStan/Type/IterableTypeTest.php index 557caeb1ad..47b50aa91e 100644 --- a/tests/PHPStan/Type/IterableTypeTest.php +++ b/tests/PHPStan/Type/IterableTypeTest.php @@ -11,10 +11,12 @@ use PHPStan\Type\Generic\TemplateTypeFactory; use PHPStan\Type\Generic\TemplateTypeScope; use PHPStan\Type\Generic\TemplateTypeVariance; +use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; use function array_map; use function sprintf; +#[CoversNothing] class IterableTypeTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/MixedTypeTest.php b/tests/PHPStan/Type/MixedTypeTest.php index c204153c3f..0e44ce6e8b 100644 --- a/tests/PHPStan/Type/MixedTypeTest.php +++ b/tests/PHPStan/Type/MixedTypeTest.php @@ -13,9 +13,11 @@ use PHPStan\Type\Constant\ConstantBooleanType; use PHPStan\Type\Constant\ConstantIntegerType; use PHPStan\Type\Constant\ConstantStringType; +use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; use function sprintf; +#[CoversNothing] class MixedTypeTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/ObjectTypeTest.php b/tests/PHPStan/Type/ObjectTypeTest.php index 3371c28427..19d1d33d5a 100644 --- a/tests/PHPStan/Type/ObjectTypeTest.php +++ b/tests/PHPStan/Type/ObjectTypeTest.php @@ -35,6 +35,7 @@ use PHPStan\Type\Generic\TemplateTypeScope; use PHPStan\Type\Generic\TemplateTypeVariance; use PHPStan\Type\Traits\ConstantNumericComparisonTypeTrait; +use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\Attributes\RequiresPhp; use SimpleXMLElement; @@ -46,6 +47,7 @@ use function sprintf; use const PHP_VERSION_ID; +#[CoversNothing] class ObjectTypeTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/ObjectWithoutClassTypeTest.php b/tests/PHPStan/Type/ObjectWithoutClassTypeTest.php index 69e33b253a..155f9075f5 100644 --- a/tests/PHPStan/Type/ObjectWithoutClassTypeTest.php +++ b/tests/PHPStan/Type/ObjectWithoutClassTypeTest.php @@ -5,9 +5,11 @@ use InvalidArgumentException; use PHPStan\Testing\PHPStanTestCase; use PHPStan\TrinaryLogic; +use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; use function sprintf; +#[CoversNothing] class ObjectWithoutClassTypeTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/Regex/RegexExpressionHelperTest.php b/tests/PHPStan/Type/Regex/RegexExpressionHelperTest.php index 872ba25586..328049028f 100644 --- a/tests/PHPStan/Type/Regex/RegexExpressionHelperTest.php +++ b/tests/PHPStan/Type/Regex/RegexExpressionHelperTest.php @@ -3,8 +3,10 @@ namespace PHPStan\Type\Regex; use PHPStan\Testing\PHPStanTestCase; +use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; +#[CoversNothing] class RegexExpressionHelperTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/SimultaneousTypeTraverserTest.php b/tests/PHPStan/Type/SimultaneousTypeTraverserTest.php index 3e6e4f9469..5560be23d5 100644 --- a/tests/PHPStan/Type/SimultaneousTypeTraverserTest.php +++ b/tests/PHPStan/Type/SimultaneousTypeTraverserTest.php @@ -7,8 +7,10 @@ use PHPStan\Type\Accessory\AccessoryNonEmptyStringType; use PHPStan\Type\Constant\ConstantArrayType; use PHPStan\Type\Constant\ConstantIntegerType; +use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; +#[CoversNothing] class SimultaneousTypeTraverserTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/StaticTypeTest.php b/tests/PHPStan/Type/StaticTypeTest.php index 980b5f6004..f26166a3af 100644 --- a/tests/PHPStan/Type/StaticTypeTest.php +++ b/tests/PHPStan/Type/StaticTypeTest.php @@ -18,6 +18,7 @@ use PHPStan\Type\Generic\TemplateTypeFactory; use PHPStan\Type\Generic\TemplateTypeScope; use PHPStan\Type\Generic\TemplateTypeVariance; +use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; use StaticTypeTest\Base; use StaticTypeTest\Child; @@ -26,6 +27,7 @@ use Traversable; use function sprintf; +#[CoversNothing] class StaticTypeTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/StringTypeTest.php b/tests/PHPStan/Type/StringTypeTest.php index 3be9e03240..ef0e16a283 100644 --- a/tests/PHPStan/Type/StringTypeTest.php +++ b/tests/PHPStan/Type/StringTypeTest.php @@ -11,11 +11,13 @@ use PHPStan\Type\Generic\TemplateTypeFactory; use PHPStan\Type\Generic\TemplateTypeScope; use PHPStan\Type\Generic\TemplateTypeVariance; +use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; use stdClass; use Test\ClassWithToString; use function sprintf; +#[CoversNothing] class StringTypeTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/TemplateTypeTest.php b/tests/PHPStan/Type/TemplateTypeTest.php index 61c8839f13..f8e385802e 100644 --- a/tests/PHPStan/Type/TemplateTypeTest.php +++ b/tests/PHPStan/Type/TemplateTypeTest.php @@ -13,6 +13,7 @@ use PHPStan\Type\Generic\TemplateTypeHelper; use PHPStan\Type\Generic\TemplateTypeScope; use PHPStan\Type\Generic\TemplateTypeVariance; +use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; use stdClass; use Throwable; @@ -21,6 +22,7 @@ use function assert; use function sprintf; +#[CoversNothing] class TemplateTypeTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/TestDecimalOperatorTypeSpecifyingExtensionTest.php b/tests/PHPStan/Type/TestDecimalOperatorTypeSpecifyingExtensionTest.php index acb3b932cf..5a97eed1a1 100644 --- a/tests/PHPStan/Type/TestDecimalOperatorTypeSpecifyingExtensionTest.php +++ b/tests/PHPStan/Type/TestDecimalOperatorTypeSpecifyingExtensionTest.php @@ -4,9 +4,11 @@ use PHPStan\Fixture\TestDecimal; use PHPStan\Testing\PHPStanTestCase; +use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; use stdClass; +#[CoversNothing] class TestDecimalOperatorTypeSpecifyingExtensionTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/TypeCombinatorTest.php b/tests/PHPStan/Type/TypeCombinatorTest.php index 95edb13b3d..7d861ed4fb 100644 --- a/tests/PHPStan/Type/TypeCombinatorTest.php +++ b/tests/PHPStan/Type/TypeCombinatorTest.php @@ -48,6 +48,7 @@ use PHPStan\Type\Generic\TemplateTypeFactory; use PHPStan\Type\Generic\TemplateTypeScope; use PHPStan\Type\Generic\TemplateTypeVariance; +use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; use RecursionCallable\Foo; use stdClass; @@ -63,6 +64,7 @@ use function sprintf; use const PHP_VERSION_ID; +#[CoversNothing] class TypeCombinatorTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/TypeGetFiniteTypesTest.php b/tests/PHPStan/Type/TypeGetFiniteTypesTest.php index e7e0ae2de6..8f7b9376e7 100644 --- a/tests/PHPStan/Type/TypeGetFiniteTypesTest.php +++ b/tests/PHPStan/Type/TypeGetFiniteTypesTest.php @@ -10,8 +10,10 @@ use PHPStan\Type\Generic\TemplateTypeFactory; use PHPStan\Type\Generic\TemplateTypeScope; use PHPStan\Type\Generic\TemplateTypeVariance; +use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; +#[CoversNothing] class TypeGetFiniteTypesTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/TypeToPhpDocNodeTest.php b/tests/PHPStan/Type/TypeToPhpDocNodeTest.php index 29bfe8f70a..874077ea87 100644 --- a/tests/PHPStan/Type/TypeToPhpDocNodeTest.php +++ b/tests/PHPStan/Type/TypeToPhpDocNodeTest.php @@ -20,12 +20,14 @@ use PHPStan\Type\Generic\GenericClassStringType; use PHPStan\Type\Generic\GenericObjectType; use PHPStan\Type\Generic\TemplateTypeVariance; +use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; use stdClass; use function sprintf; use const PHP_INT_MAX; use const PHP_INT_MIN; +#[CoversNothing] class TypeToPhpDocNodeTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/UnionTypeTest.php b/tests/PHPStan/Type/UnionTypeTest.php index a4940279a4..8efcf3dc07 100644 --- a/tests/PHPStan/Type/UnionTypeTest.php +++ b/tests/PHPStan/Type/UnionTypeTest.php @@ -27,6 +27,7 @@ use PHPStan\Type\Generic\TemplateTypeFactory; use PHPStan\Type\Generic\TemplateTypeScope; use PHPStan\Type\Generic\TemplateTypeVariance; +use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; use RecursionCallable\Foo; use stdClass; @@ -36,6 +37,7 @@ use function sprintf; use const PHP_VERSION_ID; +#[CoversNothing] class UnionTypeTest extends PHPStanTestCase { diff --git a/tests/PHPStan/Type/VerbosityLevelTest.php b/tests/PHPStan/Type/VerbosityLevelTest.php index 5297e6505f..845fe3c046 100644 --- a/tests/PHPStan/Type/VerbosityLevelTest.php +++ b/tests/PHPStan/Type/VerbosityLevelTest.php @@ -7,8 +7,10 @@ use PHPStan\Type\Accessory\AccessoryNonFalsyStringType; use PHPStan\Type\Generic\GenericObjectType; use PHPStan\Type\Generic\TemplateTypeVariance; +use PHPUnit\Framework\Attributes\CoversNothing; use PHPUnit\Framework\Attributes\DataProvider; +#[CoversNothing] class VerbosityLevelTest extends PHPStanTestCase {