diff --git a/compiler/build/scoper.inc.php b/compiler/build/scoper.inc.php index 3c1509cebc..f097836c95 100644 --- a/compiler/build/scoper.inc.php +++ b/compiler/build/scoper.inc.php @@ -80,7 +80,7 @@ function (string $filePath, string $prefix, string $content): string { return $content; }, function (string $filePath, string $prefix, string $content): string { - if ($filePath !== 'src/Testing/TestCase.php') { + if ($filePath !== 'src/Testing/PHPStanTestCase.php') { return $content; } return str_replace(sprintf('\\%s\\PHPUnit\\Framework\\TestCase', $prefix), '\\PHPUnit\\Framework\\TestCase', $content); @@ -160,7 +160,7 @@ function (string $filePath, string $prefix, string $content): string { function (string $filePath, string $prefix, string $content): string { if (!in_array($filePath, [ 'src/Testing/TestCaseSourceLocatorFactory.php', - 'src/Testing/TestCase.php', + 'src/Testing/PHPStanTestCase.php', ], true)) { return $content; } diff --git a/phpcs.xml b/phpcs.xml index 03130b34b2..b3b5bb5651 100644 --- a/phpcs.xml +++ b/phpcs.xml @@ -52,7 +52,7 @@ src/Command/CommandHelper.php - src/Testing/TestCase.php + src/Testing/PHPStanTestCase.php tests diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index af1efadda4..f2cb4a97f4 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -243,7 +243,7 @@ parameters: - message: "#^Anonymous function has an unused use \\$container\\.$#" count: 1 - path: src/Testing/TestCase.php + path: src/Testing/PHPStanTestCase.php - message: "#^Unreachable statement \\- code above always terminates\\.$#" diff --git a/src/Testing/ErrorFormatterTestCase.php b/src/Testing/ErrorFormatterTestCase.php index 94cf71da56..8a3dbd8214 100644 --- a/src/Testing/ErrorFormatterTestCase.php +++ b/src/Testing/ErrorFormatterTestCase.php @@ -11,7 +11,7 @@ use Symfony\Component\Console\Input\StringInput; use Symfony\Component\Console\Output\StreamOutput; -abstract class ErrorFormatterTestCase extends \PHPStan\Testing\TestCase +abstract class ErrorFormatterTestCase extends \PHPStan\Testing\PHPStanTestCase { protected const DIRECTORY_PATH = '/data/folder/with space/and unicode 😃/project'; diff --git a/src/Testing/TestCase.php b/src/Testing/PHPStanTestCase.php similarity index 99% rename from src/Testing/TestCase.php rename to src/Testing/PHPStanTestCase.php index bac8ae96cf..22ab3fa362 100644 --- a/src/Testing/TestCase.php +++ b/src/Testing/PHPStanTestCase.php @@ -76,7 +76,7 @@ use PHPStan\Type\TypeAliasResolver; /** @api */ -abstract class TestCase extends \PHPUnit\Framework\TestCase +abstract class PHPStanTestCase extends \PHPUnit\Framework\TestCase { /** @var bool */ diff --git a/src/Testing/RuleTestCase.php b/src/Testing/RuleTestCase.php index 3d9f831cdf..3c10a0d4de 100644 --- a/src/Testing/RuleTestCase.php +++ b/src/Testing/RuleTestCase.php @@ -28,7 +28,7 @@ * @api * @template TRule of \PHPStan\Rules\Rule */ -abstract class RuleTestCase extends \PHPStan\Testing\TestCase +abstract class RuleTestCase extends \PHPStan\Testing\PHPStanTestCase { private ?\PHPStan\Analyser\Analyser $analyser = null; diff --git a/src/Testing/TypeInferenceTestCase.php b/src/Testing/TypeInferenceTestCase.php index 7095ad9773..8225650da6 100644 --- a/src/Testing/TypeInferenceTestCase.php +++ b/src/Testing/TypeInferenceTestCase.php @@ -28,7 +28,7 @@ use PHPStan\Type\VerbosityLevel; /** @api */ -abstract class TypeInferenceTestCase extends \PHPStan\Testing\TestCase +abstract class TypeInferenceTestCase extends \PHPStan\Testing\PHPStanTestCase { /** diff --git a/tests/PHPStan/Analyser/AnalyserIntegrationTest.php b/tests/PHPStan/Analyser/AnalyserIntegrationTest.php index d2eb33b39d..6ce746f5be 100644 --- a/tests/PHPStan/Analyser/AnalyserIntegrationTest.php +++ b/tests/PHPStan/Analyser/AnalyserIntegrationTest.php @@ -13,7 +13,7 @@ use const PHP_VERSION_ID; use function array_reverse; -class AnalyserIntegrationTest extends \PHPStan\Testing\TestCase +class AnalyserIntegrationTest extends \PHPStan\Testing\PHPStanTestCase { public function testUndefinedVariableFromAssignErrorHasLine(): void diff --git a/tests/PHPStan/Analyser/AnalyserTest.php b/tests/PHPStan/Analyser/AnalyserTest.php index b06373d234..e74fd612e2 100644 --- a/tests/PHPStan/Analyser/AnalyserTest.php +++ b/tests/PHPStan/Analyser/AnalyserTest.php @@ -23,7 +23,7 @@ use PHPStan\Rules\Registry; use PHPStan\Type\FileTypeMapper; -class AnalyserTest extends \PHPStan\Testing\TestCase +class AnalyserTest extends \PHPStan\Testing\PHPStanTestCase { public function testReturnErrorIfIgnoredMessagesDoesNotOccur(): void diff --git a/tests/PHPStan/Analyser/AnalyserTraitsIntegrationTest.php b/tests/PHPStan/Analyser/AnalyserTraitsIntegrationTest.php index dad3508986..7c908f6742 100644 --- a/tests/PHPStan/Analyser/AnalyserTraitsIntegrationTest.php +++ b/tests/PHPStan/Analyser/AnalyserTraitsIntegrationTest.php @@ -4,7 +4,7 @@ use PHPStan\File\FileHelper; -class AnalyserTraitsIntegrationTest extends \PHPStan\Testing\TestCase +class AnalyserTraitsIntegrationTest extends \PHPStan\Testing\PHPStanTestCase { /** @var \PHPStan\File\FileHelper */ diff --git a/tests/PHPStan/Analyser/ErrorTest.php b/tests/PHPStan/Analyser/ErrorTest.php index d2347ebbfc..ec7647c2f3 100644 --- a/tests/PHPStan/Analyser/ErrorTest.php +++ b/tests/PHPStan/Analyser/ErrorTest.php @@ -2,7 +2,7 @@ namespace PHPStan\Analyser; -class ErrorTest extends \PHPStan\Testing\TestCase +class ErrorTest extends \PHPStan\Testing\PHPStanTestCase { public function testError(): void diff --git a/tests/PHPStan/Analyser/ScopeTest.php b/tests/PHPStan/Analyser/ScopeTest.php index fd63c699de..c6509673e0 100644 --- a/tests/PHPStan/Analyser/ScopeTest.php +++ b/tests/PHPStan/Analyser/ScopeTest.php @@ -4,7 +4,7 @@ use PhpParser\Node\Expr\ConstFetch; use PhpParser\Node\Name\FullyQualified; -use PHPStan\Testing\TestCase; +use PHPStan\Testing\PHPStanTestCase; use PHPStan\Type\Constant\ConstantArrayType; use PHPStan\Type\Constant\ConstantBooleanType; use PHPStan\Type\Constant\ConstantIntegerType; @@ -14,7 +14,7 @@ use PHPStan\Type\UnionType; use PHPStan\Type\VerbosityLevel; -class ScopeTest extends TestCase +class ScopeTest extends PHPStanTestCase { public function dataGeneralize(): array diff --git a/tests/PHPStan/Analyser/StatementResultTest.php b/tests/PHPStan/Analyser/StatementResultTest.php index 966db5f6ab..a0f71eccde 100644 --- a/tests/PHPStan/Analyser/StatementResultTest.php +++ b/tests/PHPStan/Analyser/StatementResultTest.php @@ -9,7 +9,7 @@ use PHPStan\Type\MixedType; use PHPStan\Type\StringType; -class StatementResultTest extends \PHPStan\Testing\TestCase +class StatementResultTest extends \PHPStan\Testing\PHPStanTestCase { public function dataIsAlwaysTerminating(): array diff --git a/tests/PHPStan/Analyser/TypeSpecifierContextTest.php b/tests/PHPStan/Analyser/TypeSpecifierContextTest.php index ac18184fd0..d7931f98e6 100644 --- a/tests/PHPStan/Analyser/TypeSpecifierContextTest.php +++ b/tests/PHPStan/Analyser/TypeSpecifierContextTest.php @@ -2,7 +2,7 @@ namespace PHPStan\Analyser; -class TypeSpecifierContextTest extends \PHPStan\Testing\TestCase +class TypeSpecifierContextTest extends \PHPStan\Testing\PHPStanTestCase { public function dataContext(): array diff --git a/tests/PHPStan/Analyser/TypeSpecifierTest.php b/tests/PHPStan/Analyser/TypeSpecifierTest.php index a6e56b4461..9f2644b2b4 100644 --- a/tests/PHPStan/Analyser/TypeSpecifierTest.php +++ b/tests/PHPStan/Analyser/TypeSpecifierTest.php @@ -27,7 +27,7 @@ use PHPStan\Type\UnionType; use PHPStan\Type\VerbosityLevel; -class TypeSpecifierTest extends \PHPStan\Testing\TestCase +class TypeSpecifierTest extends \PHPStan\Testing\PHPStanTestCase { private const FALSEY_TYPE_DESCRIPTION = '0|0.0|\'\'|\'0\'|array()|false|null'; diff --git a/tests/PHPStan/Analyser/traitsCachingIssue/TraitsCachingIssueIntegrationTest.php b/tests/PHPStan/Analyser/traitsCachingIssue/TraitsCachingIssueIntegrationTest.php index 7b0fa2c07d..ee7dd1f215 100644 --- a/tests/PHPStan/Analyser/traitsCachingIssue/TraitsCachingIssueIntegrationTest.php +++ b/tests/PHPStan/Analyser/traitsCachingIssue/TraitsCachingIssueIntegrationTest.php @@ -4,7 +4,7 @@ use PHPStan\File\FileHelper; use PHPStan\File\FileReader; -use PHPStan\Testing\TestCase; +use PHPStan\Testing\PHPStanTestCase; use RecursiveDirectoryIterator; use RecursiveIteratorIterator; use function file_exists; @@ -12,7 +12,7 @@ /** * @group exec */ -class TraitsCachingIssueIntegrationTest extends TestCase +class TraitsCachingIssueIntegrationTest extends PHPStanTestCase { /** @var string|null */ diff --git a/tests/PHPStan/Broker/BrokerTest.php b/tests/PHPStan/Broker/BrokerTest.php index 637fc2de78..91bdc7ca13 100644 --- a/tests/PHPStan/Broker/BrokerTest.php +++ b/tests/PHPStan/Broker/BrokerTest.php @@ -22,7 +22,7 @@ use PHPStan\Reflection\SignatureMap\NativeFunctionReflectionProvider; use PHPStan\Type\FileTypeMapper; -class BrokerTest extends \PHPStan\Testing\TestCase +class BrokerTest extends \PHPStan\Testing\PHPStanTestCase { /** @var \PHPStan\Broker\Broker */ diff --git a/tests/PHPStan/Command/AnalyseApplicationIntegrationTest.php b/tests/PHPStan/Command/AnalyseApplicationIntegrationTest.php index 844dc62b09..c4605b5bcb 100644 --- a/tests/PHPStan/Command/AnalyseApplicationIntegrationTest.php +++ b/tests/PHPStan/Command/AnalyseApplicationIntegrationTest.php @@ -11,7 +11,7 @@ use Symfony\Component\Console\Output\StreamOutput; use Symfony\Component\Console\Style\SymfonyStyle; -class AnalyseApplicationIntegrationTest extends \PHPStan\Testing\TestCase +class AnalyseApplicationIntegrationTest extends \PHPStan\Testing\PHPStanTestCase { public function testExecuteOnAFile(): void diff --git a/tests/PHPStan/Command/AnalyseCommandTest.php b/tests/PHPStan/Command/AnalyseCommandTest.php index 6754544607..5fddff391f 100644 --- a/tests/PHPStan/Command/AnalyseCommandTest.php +++ b/tests/PHPStan/Command/AnalyseCommandTest.php @@ -8,7 +8,7 @@ /** * @group exec */ -class AnalyseCommandTest extends \PHPStan\Testing\TestCase +class AnalyseCommandTest extends \PHPStan\Testing\PHPStanTestCase { /** diff --git a/tests/PHPStan/Command/AnalysisResultTest.php b/tests/PHPStan/Command/AnalysisResultTest.php index d72143624f..7be232359a 100644 --- a/tests/PHPStan/Command/AnalysisResultTest.php +++ b/tests/PHPStan/Command/AnalysisResultTest.php @@ -3,9 +3,9 @@ namespace PHPStan\Command; use PHPStan\Analyser\Error; -use PHPStan\Testing\TestCase; +use PHPStan\Testing\PHPStanTestCase; -final class AnalysisResultTest extends TestCase +final class AnalysisResultTest extends PHPStanTestCase { public function testErrorsAreSortedByFileNameAndLine(): void diff --git a/tests/PHPStan/Command/IgnoredRegexValidatorTest.php b/tests/PHPStan/Command/IgnoredRegexValidatorTest.php index 0220251751..7646267702 100644 --- a/tests/PHPStan/Command/IgnoredRegexValidatorTest.php +++ b/tests/PHPStan/Command/IgnoredRegexValidatorTest.php @@ -3,9 +3,9 @@ namespace PHPStan\Command; use PHPStan\PhpDoc\TypeStringResolver; -use PHPStan\Testing\TestCase; +use PHPStan\Testing\PHPStanTestCase; -class IgnoredRegexValidatorTest extends TestCase +class IgnoredRegexValidatorTest extends PHPStanTestCase { public function dataValidate(): array diff --git a/tests/PHPStan/File/FileExcluderTest.php b/tests/PHPStan/File/FileExcluderTest.php index 808b36395c..ae415683c4 100644 --- a/tests/PHPStan/File/FileExcluderTest.php +++ b/tests/PHPStan/File/FileExcluderTest.php @@ -2,7 +2,7 @@ namespace PHPStan\File; -class FileExcluderTest extends \PHPStan\Testing\TestCase +class FileExcluderTest extends \PHPStan\Testing\PHPStanTestCase { /** diff --git a/tests/PHPStan/File/FileHelperTest.php b/tests/PHPStan/File/FileHelperTest.php index 9e2d88ec8d..4082896b25 100644 --- a/tests/PHPStan/File/FileHelperTest.php +++ b/tests/PHPStan/File/FileHelperTest.php @@ -2,7 +2,7 @@ namespace PHPStan\File; -class FileHelperTest extends \PHPStan\Testing\TestCase +class FileHelperTest extends \PHPStan\Testing\PHPStanTestCase { /** diff --git a/tests/PHPStan/Generics/TemplateTypeFactoryTest.php b/tests/PHPStan/Generics/TemplateTypeFactoryTest.php index cea4dd2da3..e2b36d0a05 100644 --- a/tests/PHPStan/Generics/TemplateTypeFactoryTest.php +++ b/tests/PHPStan/Generics/TemplateTypeFactoryTest.php @@ -14,7 +14,7 @@ use PHPStan\Type\UnionType; use PHPStan\Type\VerbosityLevel; -class TemplateTypeFactoryTest extends \PHPStan\Testing\TestCase +class TemplateTypeFactoryTest extends \PHPStan\Testing\PHPStanTestCase { /** @return array */ diff --git a/tests/PHPStan/Parser/CachedParserTest.php b/tests/PHPStan/Parser/CachedParserTest.php index a76dd3f97c..3624cc798d 100644 --- a/tests/PHPStan/Parser/CachedParserTest.php +++ b/tests/PHPStan/Parser/CachedParserTest.php @@ -4,9 +4,9 @@ use PhpParser\Node\Stmt\Namespace_; use PHPStan\File\FileReader; -use PHPStan\Testing\TestCase; +use PHPStan\Testing\PHPStanTestCase; -class CachedParserTest extends TestCase +class CachedParserTest extends PHPStanTestCase { /** diff --git a/tests/PHPStan/Reflection/Annotations/AnnotationsMethodsClassReflectionExtensionTest.php b/tests/PHPStan/Reflection/Annotations/AnnotationsMethodsClassReflectionExtensionTest.php index d585540774..ddda1e195d 100644 --- a/tests/PHPStan/Reflection/Annotations/AnnotationsMethodsClassReflectionExtensionTest.php +++ b/tests/PHPStan/Reflection/Annotations/AnnotationsMethodsClassReflectionExtensionTest.php @@ -9,7 +9,7 @@ use PHPStan\Reflection\Php\PhpMethodReflection; use PHPStan\Type\VerbosityLevel; -class AnnotationsMethodsClassReflectionExtensionTest extends \PHPStan\Testing\TestCase +class AnnotationsMethodsClassReflectionExtensionTest extends \PHPStan\Testing\PHPStanTestCase { public function dataMethods(): array diff --git a/tests/PHPStan/Reflection/Annotations/AnnotationsPropertiesClassReflectionExtensionTest.php b/tests/PHPStan/Reflection/Annotations/AnnotationsPropertiesClassReflectionExtensionTest.php index 0291842501..67a9fc47d8 100644 --- a/tests/PHPStan/Reflection/Annotations/AnnotationsPropertiesClassReflectionExtensionTest.php +++ b/tests/PHPStan/Reflection/Annotations/AnnotationsPropertiesClassReflectionExtensionTest.php @@ -6,7 +6,7 @@ use PHPStan\Broker\Broker; use PHPStan\Type\VerbosityLevel; -class AnnotationsPropertiesClassReflectionExtensionTest extends \PHPStan\Testing\TestCase +class AnnotationsPropertiesClassReflectionExtensionTest extends \PHPStan\Testing\PHPStanTestCase { public function dataProperties(): array diff --git a/tests/PHPStan/Reflection/Annotations/DeprecatedAnnotationsTest.php b/tests/PHPStan/Reflection/Annotations/DeprecatedAnnotationsTest.php index 6ffdc2fee1..2da095b58e 100644 --- a/tests/PHPStan/Reflection/Annotations/DeprecatedAnnotationsTest.php +++ b/tests/PHPStan/Reflection/Annotations/DeprecatedAnnotationsTest.php @@ -6,7 +6,7 @@ use PHPStan\Analyser\Scope; use PHPStan\Broker\Broker; -class DeprecatedAnnotationsTest extends \PHPStan\Testing\TestCase +class DeprecatedAnnotationsTest extends \PHPStan\Testing\PHPStanTestCase { public function dataDeprecatedAnnotations(): array diff --git a/tests/PHPStan/Reflection/Annotations/FinalAnnotationsTest.php b/tests/PHPStan/Reflection/Annotations/FinalAnnotationsTest.php index d876b4765f..c14a273b2d 100644 --- a/tests/PHPStan/Reflection/Annotations/FinalAnnotationsTest.php +++ b/tests/PHPStan/Reflection/Annotations/FinalAnnotationsTest.php @@ -6,7 +6,7 @@ use PHPStan\Analyser\Scope; use PHPStan\Broker\Broker; -class FinalAnnotationsTest extends \PHPStan\Testing\TestCase +class FinalAnnotationsTest extends \PHPStan\Testing\PHPStanTestCase { public function dataFinalAnnotations(): array diff --git a/tests/PHPStan/Reflection/Annotations/InternalAnnotationsTest.php b/tests/PHPStan/Reflection/Annotations/InternalAnnotationsTest.php index 095001f84b..24eac4c81d 100644 --- a/tests/PHPStan/Reflection/Annotations/InternalAnnotationsTest.php +++ b/tests/PHPStan/Reflection/Annotations/InternalAnnotationsTest.php @@ -6,7 +6,7 @@ use PHPStan\Analyser\Scope; use PHPStan\Broker\Broker; -class InternalAnnotationsTest extends \PHPStan\Testing\TestCase +class InternalAnnotationsTest extends \PHPStan\Testing\PHPStanTestCase { public function dataInternalAnnotations(): array diff --git a/tests/PHPStan/Reflection/Annotations/ThrowsAnnotationsTest.php b/tests/PHPStan/Reflection/Annotations/ThrowsAnnotationsTest.php index 4e1de7a891..5cc633832c 100644 --- a/tests/PHPStan/Reflection/Annotations/ThrowsAnnotationsTest.php +++ b/tests/PHPStan/Reflection/Annotations/ThrowsAnnotationsTest.php @@ -7,7 +7,7 @@ use PHPStan\Broker\Broker; use PHPStan\Type\VerbosityLevel; -class ThrowsAnnotationsTest extends \PHPStan\Testing\TestCase +class ThrowsAnnotationsTest extends \PHPStan\Testing\PHPStanTestCase { public function dataThrowsAnnotations(): array diff --git a/tests/PHPStan/Reflection/BetterReflection/SourceLocator/AutoloadSourceLocatorTest.php b/tests/PHPStan/Reflection/BetterReflection/SourceLocator/AutoloadSourceLocatorTest.php index 6d37cd64fd..4196986d48 100644 --- a/tests/PHPStan/Reflection/BetterReflection/SourceLocator/AutoloadSourceLocatorTest.php +++ b/tests/PHPStan/Reflection/BetterReflection/SourceLocator/AutoloadSourceLocatorTest.php @@ -6,7 +6,7 @@ use PHPStan\BetterReflection\Reflector\ClassReflector; use PHPStan\BetterReflection\Reflector\ConstantReflector; use PHPStan\BetterReflection\Reflector\FunctionReflector; -use PHPStan\Testing\TestCase; +use PHPStan\Testing\PHPStanTestCase; use TestSingleFileSourceLocator\AFoo; use TestSingleFileSourceLocator\InCondition; @@ -15,7 +15,7 @@ function testFunctionForLocator(): void // phpcs:disable } -class AutoloadSourceLocatorTest extends TestCase +class AutoloadSourceLocatorTest extends PHPStanTestCase { public function testAutoloadEverythingInFile(): void diff --git a/tests/PHPStan/Reflection/BetterReflection/SourceLocator/OptimizedDirectorySourceLocatorTest.php b/tests/PHPStan/Reflection/BetterReflection/SourceLocator/OptimizedDirectorySourceLocatorTest.php index 2399a64366..616e2617a2 100644 --- a/tests/PHPStan/Reflection/BetterReflection/SourceLocator/OptimizedDirectorySourceLocatorTest.php +++ b/tests/PHPStan/Reflection/BetterReflection/SourceLocator/OptimizedDirectorySourceLocatorTest.php @@ -5,10 +5,10 @@ use PHPStan\BetterReflection\Reflector\ClassReflector; use PHPStan\BetterReflection\Reflector\Exception\IdentifierNotFound; use PHPStan\BetterReflection\Reflector\FunctionReflector; -use PHPStan\Testing\TestCase; +use PHPStan\Testing\PHPStanTestCase; use TestDirectorySourceLocator\AFoo; -class OptimizedDirectorySourceLocatorTest extends TestCase +class OptimizedDirectorySourceLocatorTest extends PHPStanTestCase { public function dataClass(): array diff --git a/tests/PHPStan/Reflection/BetterReflection/SourceLocator/OptimizedSingleFileSourceLocatorTest.php b/tests/PHPStan/Reflection/BetterReflection/SourceLocator/OptimizedSingleFileSourceLocatorTest.php index 38185ccfc8..c28ab59464 100644 --- a/tests/PHPStan/Reflection/BetterReflection/SourceLocator/OptimizedSingleFileSourceLocatorTest.php +++ b/tests/PHPStan/Reflection/BetterReflection/SourceLocator/OptimizedSingleFileSourceLocatorTest.php @@ -6,10 +6,10 @@ use PHPStan\BetterReflection\Reflector\ConstantReflector; use PHPStan\BetterReflection\Reflector\Exception\IdentifierNotFound; use PHPStan\BetterReflection\Reflector\FunctionReflector; -use PHPStan\Testing\TestCase; +use PHPStan\Testing\PHPStanTestCase; use TestSingleFileSourceLocator\AFoo; -class OptimizedSingleFileSourceLocatorTest extends TestCase +class OptimizedSingleFileSourceLocatorTest extends PHPStanTestCase { public function dataClass(): array diff --git a/tests/PHPStan/Reflection/ClassReflectionTest.php b/tests/PHPStan/Reflection/ClassReflectionTest.php index 48cce715eb..63d810a67a 100644 --- a/tests/PHPStan/Reflection/ClassReflectionTest.php +++ b/tests/PHPStan/Reflection/ClassReflectionTest.php @@ -13,7 +13,7 @@ use PHPStan\Type\FileTypeMapper; use WrongClassConstantFile\SecuredRouter; -class ClassReflectionTest extends \PHPStan\Testing\TestCase +class ClassReflectionTest extends \PHPStan\Testing\PHPStanTestCase { public function dataHasTraitUse(): array diff --git a/tests/PHPStan/Reflection/GenericParametersAcceptorResolverTest.php b/tests/PHPStan/Reflection/GenericParametersAcceptorResolverTest.php index 909057cfb5..7168dfc167 100644 --- a/tests/PHPStan/Reflection/GenericParametersAcceptorResolverTest.php +++ b/tests/PHPStan/Reflection/GenericParametersAcceptorResolverTest.php @@ -18,7 +18,7 @@ use PHPStan\Type\UnionType; use PHPStan\Type\VerbosityLevel; -class GenericParametersAcceptorResolverTest extends \PHPStan\Testing\TestCase +class GenericParametersAcceptorResolverTest extends \PHPStan\Testing\PHPStanTestCase { /** diff --git a/tests/PHPStan/Reflection/MixedTypeTest.php b/tests/PHPStan/Reflection/MixedTypeTest.php index edc0370428..c9b5b7eb66 100644 --- a/tests/PHPStan/Reflection/MixedTypeTest.php +++ b/tests/PHPStan/Reflection/MixedTypeTest.php @@ -4,10 +4,10 @@ use NativeMixedType\Foo; use PhpParser\Node\Name; -use PHPStan\Testing\TestCase; +use PHPStan\Testing\PHPStanTestCase; use PHPStan\Type\MixedType; -class MixedTypeTest extends TestCase +class MixedTypeTest extends PHPStanTestCase { public function testMixedType(): void diff --git a/tests/PHPStan/Reflection/ParametersAcceptorSelectorTest.php b/tests/PHPStan/Reflection/ParametersAcceptorSelectorTest.php index ecf59410e3..60f2746c0a 100644 --- a/tests/PHPStan/Reflection/ParametersAcceptorSelectorTest.php +++ b/tests/PHPStan/Reflection/ParametersAcceptorSelectorTest.php @@ -22,7 +22,7 @@ use PHPStan\Type\UnionType; use PHPStan\Type\VerbosityLevel; -class ParametersAcceptorSelectorTest extends \PHPStan\Testing\TestCase +class ParametersAcceptorSelectorTest extends \PHPStan\Testing\PHPStanTestCase { public function dataSelectFromTypes(): \Generator diff --git a/tests/PHPStan/Reflection/Php/UniversalObjectCratesClassReflectionExtensionTest.php b/tests/PHPStan/Reflection/Php/UniversalObjectCratesClassReflectionExtensionTest.php index 0c5c5d812b..db97736a8b 100644 --- a/tests/PHPStan/Reflection/Php/UniversalObjectCratesClassReflectionExtensionTest.php +++ b/tests/PHPStan/Reflection/Php/UniversalObjectCratesClassReflectionExtensionTest.php @@ -6,7 +6,7 @@ use PHPStan\Type\ObjectType; use PHPStan\Type\StringType; -class UniversalObjectCratesClassReflectionExtensionTest extends \PHPStan\Testing\TestCase +class UniversalObjectCratesClassReflectionExtensionTest extends \PHPStan\Testing\PHPStanTestCase { public function testNonexistentClass(): void diff --git a/tests/PHPStan/Reflection/ReflectionProviderTest.php b/tests/PHPStan/Reflection/ReflectionProviderTest.php index 431214c141..8690fd0160 100644 --- a/tests/PHPStan/Reflection/ReflectionProviderTest.php +++ b/tests/PHPStan/Reflection/ReflectionProviderTest.php @@ -3,12 +3,12 @@ namespace PHPStan\Reflection; use PhpParser\Node\Name; -use PHPStan\Testing\TestCase; +use PHPStan\Testing\PHPStanTestCase; use PHPStan\Type\ObjectType; use PHPStan\Type\Type; use PHPStan\Type\VerbosityLevel; -class ReflectionProviderTest extends TestCase +class ReflectionProviderTest extends PHPStanTestCase { public function dataFunctionThrowType(): iterable diff --git a/tests/PHPStan/Reflection/SignatureMap/FunctionMetadataTest.php b/tests/PHPStan/Reflection/SignatureMap/FunctionMetadataTest.php index ac5feca510..891505b8db 100644 --- a/tests/PHPStan/Reflection/SignatureMap/FunctionMetadataTest.php +++ b/tests/PHPStan/Reflection/SignatureMap/FunctionMetadataTest.php @@ -4,9 +4,9 @@ use Nette\Schema\Expect; use Nette\Schema\Processor; -use PHPStan\Testing\TestCase; +use PHPStan\Testing\PHPStanTestCase; -class FunctionMetadataTest extends TestCase +class FunctionMetadataTest extends PHPStanTestCase { public function testSchema(): void diff --git a/tests/PHPStan/Reflection/SignatureMap/Php8SignatureMapProviderTest.php b/tests/PHPStan/Reflection/SignatureMap/Php8SignatureMapProviderTest.php index 8684859503..390ad5a955 100644 --- a/tests/PHPStan/Reflection/SignatureMap/Php8SignatureMapProviderTest.php +++ b/tests/PHPStan/Reflection/SignatureMap/Php8SignatureMapProviderTest.php @@ -7,7 +7,7 @@ use PHPStan\Reflection\BetterReflection\SourceLocator\FileNodesFetcher; use PHPStan\Reflection\Native\NativeParameterReflection; use PHPStan\Reflection\PassedByReference; -use PHPStan\Testing\TestCase; +use PHPStan\Testing\PHPStanTestCase; use PHPStan\Type\ArrayType; use PHPStan\Type\BooleanType; use PHPStan\Type\CallableType; @@ -26,7 +26,7 @@ use PHPStan\Type\VerbosityLevel; use PHPStan\Type\VoidType; -class Php8SignatureMapProviderTest extends TestCase +class Php8SignatureMapProviderTest extends PHPStanTestCase { public function dataFunctions(): array diff --git a/tests/PHPStan/Reflection/SignatureMap/SignatureMapParserTest.php b/tests/PHPStan/Reflection/SignatureMap/SignatureMapParserTest.php index a0b85a89ce..d191e7c11a 100644 --- a/tests/PHPStan/Reflection/SignatureMap/SignatureMapParserTest.php +++ b/tests/PHPStan/Reflection/SignatureMap/SignatureMapParserTest.php @@ -18,7 +18,7 @@ use PHPStan\Type\UnionType; use PHPStan\Type\VerbosityLevel; -class SignatureMapParserTest extends \PHPStan\Testing\TestCase +class SignatureMapParserTest extends \PHPStan\Testing\PHPStanTestCase { public function dataGetFunctions(): array diff --git a/tests/PHPStan/Reflection/Type/IntersectionTypeMethodReflectionTest.php b/tests/PHPStan/Reflection/Type/IntersectionTypeMethodReflectionTest.php index cbd42d5f9c..191aa71e2d 100644 --- a/tests/PHPStan/Reflection/Type/IntersectionTypeMethodReflectionTest.php +++ b/tests/PHPStan/Reflection/Type/IntersectionTypeMethodReflectionTest.php @@ -5,7 +5,7 @@ use PHPStan\Reflection\MethodReflection; use PHPStan\TrinaryLogic; -class IntersectionTypeMethodReflectionTest extends \PHPStan\Testing\TestCase +class IntersectionTypeMethodReflectionTest extends \PHPStan\Testing\PHPStanTestCase { public function testCollectsDeprecatedMessages(): void diff --git a/tests/PHPStan/Reflection/Type/UnionTypeMethodReflectionTest.php b/tests/PHPStan/Reflection/Type/UnionTypeMethodReflectionTest.php index 93a168e43e..b17b962fb0 100644 --- a/tests/PHPStan/Reflection/Type/UnionTypeMethodReflectionTest.php +++ b/tests/PHPStan/Reflection/Type/UnionTypeMethodReflectionTest.php @@ -5,7 +5,7 @@ use PHPStan\Reflection\MethodReflection; use PHPStan\TrinaryLogic; -class UnionTypeMethodReflectionTest extends \PHPStan\Testing\TestCase +class UnionTypeMethodReflectionTest extends \PHPStan\Testing\PHPStanTestCase { public function testCollectsDeprecatedMessages(): void diff --git a/tests/PHPStan/Reflection/UnionTypesTest.php b/tests/PHPStan/Reflection/UnionTypesTest.php index 692b4f31e1..8ef3e7ef6a 100644 --- a/tests/PHPStan/Reflection/UnionTypesTest.php +++ b/tests/PHPStan/Reflection/UnionTypesTest.php @@ -4,11 +4,11 @@ use NativeUnionTypes\Foo; use PhpParser\Node\Name; -use PHPStan\Testing\TestCase; +use PHPStan\Testing\PHPStanTestCase; use PHPStan\Type\UnionType; use PHPStan\Type\VerbosityLevel; -class UnionTypesTest extends TestCase +class UnionTypesTest extends PHPStanTestCase { public function testUnionTypes(): void diff --git a/tests/PHPStan/Rules/Exceptions/DefaultExceptionTypeResolverTest.php b/tests/PHPStan/Rules/Exceptions/DefaultExceptionTypeResolverTest.php index bfcaf40aea..4b56182cb1 100644 --- a/tests/PHPStan/Rules/Exceptions/DefaultExceptionTypeResolverTest.php +++ b/tests/PHPStan/Rules/Exceptions/DefaultExceptionTypeResolverTest.php @@ -4,9 +4,9 @@ use PHPStan\Analyser\ScopeContext; use PHPStan\Analyser\ScopeFactory; -use PHPStan\Testing\TestCase; +use PHPStan\Testing\PHPStanTestCase; -class DefaultExceptionTypeResolverTest extends TestCase +class DefaultExceptionTypeResolverTest extends PHPStanTestCase { public function dataIsCheckedException(): array diff --git a/tests/PHPStan/Rules/RegistryTest.php b/tests/PHPStan/Rules/RegistryTest.php index 77469e4362..3544f01136 100644 --- a/tests/PHPStan/Rules/RegistryTest.php +++ b/tests/PHPStan/Rules/RegistryTest.php @@ -4,7 +4,7 @@ use PHPStan\Analyser\Scope; -class RegistryTest extends \PHPStan\Testing\TestCase +class RegistryTest extends \PHPStan\Testing\PHPStanTestCase { public function testGetRules(): void diff --git a/tests/PHPStan/TrinaryLogicTest.php b/tests/PHPStan/TrinaryLogicTest.php index def1e3522e..a532a71836 100644 --- a/tests/PHPStan/TrinaryLogicTest.php +++ b/tests/PHPStan/TrinaryLogicTest.php @@ -2,7 +2,7 @@ namespace PHPStan; -class TrinaryLogicTest extends \PHPStan\Testing\TestCase +class TrinaryLogicTest extends \PHPStan\Testing\PHPStanTestCase { public function dataAnd(): array diff --git a/tests/PHPStan/Type/Accessory/HasMethodTypeTest.php b/tests/PHPStan/Type/Accessory/HasMethodTypeTest.php index 525b1f6f16..787f73de19 100644 --- a/tests/PHPStan/Type/Accessory/HasMethodTypeTest.php +++ b/tests/PHPStan/Type/Accessory/HasMethodTypeTest.php @@ -14,7 +14,7 @@ use PHPStan\Type\UnionType; use PHPStan\Type\VerbosityLevel; -class HasMethodTypeTest extends \PHPStan\Testing\TestCase +class HasMethodTypeTest extends \PHPStan\Testing\PHPStanTestCase { public function dataIsSuperTypeOf(): array diff --git a/tests/PHPStan/Type/Accessory/HasPropertyTypeTest.php b/tests/PHPStan/Type/Accessory/HasPropertyTypeTest.php index 9e0012051a..a863a3cd17 100644 --- a/tests/PHPStan/Type/Accessory/HasPropertyTypeTest.php +++ b/tests/PHPStan/Type/Accessory/HasPropertyTypeTest.php @@ -14,7 +14,7 @@ use PHPStan\Type\UnionType; use PHPStan\Type\VerbosityLevel; -class HasPropertyTypeTest extends \PHPStan\Testing\TestCase +class HasPropertyTypeTest extends \PHPStan\Testing\PHPStanTestCase { public function dataIsSuperTypeOf(): array diff --git a/tests/PHPStan/Type/ArrayTypeTest.php b/tests/PHPStan/Type/ArrayTypeTest.php index 1ec0a20c9c..df1211e805 100644 --- a/tests/PHPStan/Type/ArrayTypeTest.php +++ b/tests/PHPStan/Type/ArrayTypeTest.php @@ -11,7 +11,7 @@ use PHPStan\Type\Generic\TemplateTypeScope; use PHPStan\Type\Generic\TemplateTypeVariance; -class ArrayTypeTest extends \PHPStan\Testing\TestCase +class ArrayTypeTest extends \PHPStan\Testing\PHPStanTestCase { public function dataIsSuperTypeOf(): array diff --git a/tests/PHPStan/Type/BooleanTypeTest.php b/tests/PHPStan/Type/BooleanTypeTest.php index 0d52f3f64c..1d67a1a641 100644 --- a/tests/PHPStan/Type/BooleanTypeTest.php +++ b/tests/PHPStan/Type/BooleanTypeTest.php @@ -6,7 +6,7 @@ use PHPStan\Type\Constant\ConstantBooleanType; use PHPStan\Type\Constant\ConstantIntegerType; -class BooleanTypeTest extends \PHPStan\Testing\TestCase +class BooleanTypeTest extends \PHPStan\Testing\PHPStanTestCase { public function dataAccepts(): array diff --git a/tests/PHPStan/Type/CallableTypeTest.php b/tests/PHPStan/Type/CallableTypeTest.php index 166b499817..9695e032ee 100644 --- a/tests/PHPStan/Type/CallableTypeTest.php +++ b/tests/PHPStan/Type/CallableTypeTest.php @@ -14,7 +14,7 @@ use PHPStan\Type\Generic\TemplateTypeScope; use PHPStan\Type\Generic\TemplateTypeVariance; -class CallableTypeTest extends \PHPStan\Testing\TestCase +class CallableTypeTest extends \PHPStan\Testing\PHPStanTestCase { public function dataIsSuperTypeOf(): array diff --git a/tests/PHPStan/Type/ClassStringTypeTest.php b/tests/PHPStan/Type/ClassStringTypeTest.php index 5d715a948c..12d3106ca9 100644 --- a/tests/PHPStan/Type/ClassStringTypeTest.php +++ b/tests/PHPStan/Type/ClassStringTypeTest.php @@ -2,12 +2,12 @@ namespace PHPStan\Type; -use PHPStan\Testing\TestCase; +use PHPStan\Testing\PHPStanTestCase; use PHPStan\TrinaryLogic; use PHPStan\Type\Constant\ConstantStringType; use PHPStan\Type\Generic\GenericClassStringType; -class ClassStringTypeTest extends TestCase +class ClassStringTypeTest extends PHPStanTestCase { public function dataIsSuperTypeOf(): array diff --git a/tests/PHPStan/Type/ClosureTypeTest.php b/tests/PHPStan/Type/ClosureTypeTest.php index c788121178..7f4298dd7d 100644 --- a/tests/PHPStan/Type/ClosureTypeTest.php +++ b/tests/PHPStan/Type/ClosureTypeTest.php @@ -4,7 +4,7 @@ use PHPStan\TrinaryLogic; -class ClosureTypeTest extends \PHPStan\Testing\TestCase +class ClosureTypeTest extends \PHPStan\Testing\PHPStanTestCase { public function dataIsSuperTypeOf(): array diff --git a/tests/PHPStan/Type/Constant/ConstantArrayTypeTest.php b/tests/PHPStan/Type/Constant/ConstantArrayTypeTest.php index 8ffce8f7ad..f15c2eaf79 100644 --- a/tests/PHPStan/Type/Constant/ConstantArrayTypeTest.php +++ b/tests/PHPStan/Type/Constant/ConstantArrayTypeTest.php @@ -18,7 +18,7 @@ use PHPStan\Type\TypeCombinator; use PHPStan\Type\VerbosityLevel; -class ConstantArrayTypeTest extends \PHPStan\Testing\TestCase +class ConstantArrayTypeTest extends \PHPStan\Testing\PHPStanTestCase { public function dataAccepts(): iterable diff --git a/tests/PHPStan/Type/Constant/ConstantFloatTypeTest.php b/tests/PHPStan/Type/Constant/ConstantFloatTypeTest.php index b8261bbea7..1cc80e95a5 100644 --- a/tests/PHPStan/Type/Constant/ConstantFloatTypeTest.php +++ b/tests/PHPStan/Type/Constant/ConstantFloatTypeTest.php @@ -4,7 +4,7 @@ use PHPStan\Type\VerbosityLevel; -class ConstantFloatTypeTest extends \PHPStan\Testing\TestCase +class ConstantFloatTypeTest extends \PHPStan\Testing\PHPStanTestCase { public function dataDescribe(): array diff --git a/tests/PHPStan/Type/Constant/ConstantIntegerTypeTest.php b/tests/PHPStan/Type/Constant/ConstantIntegerTypeTest.php index 5a23289569..23fc7a5d63 100644 --- a/tests/PHPStan/Type/Constant/ConstantIntegerTypeTest.php +++ b/tests/PHPStan/Type/Constant/ConstantIntegerTypeTest.php @@ -7,7 +7,7 @@ use PHPStan\Type\Type; use PHPStan\Type\VerbosityLevel; -class ConstantIntegerTypeTest extends \PHPStan\Testing\TestCase +class ConstantIntegerTypeTest extends \PHPStan\Testing\PHPStanTestCase { public function dataAccepts(): iterable diff --git a/tests/PHPStan/Type/Constant/ConstantStringTypeTest.php b/tests/PHPStan/Type/Constant/ConstantStringTypeTest.php index 3f5360f072..806148573c 100644 --- a/tests/PHPStan/Type/Constant/ConstantStringTypeTest.php +++ b/tests/PHPStan/Type/Constant/ConstantStringTypeTest.php @@ -2,7 +2,7 @@ namespace PHPStan\Type\Constant; -use PHPStan\Testing\TestCase; +use PHPStan\Testing\PHPStanTestCase; use PHPStan\TrinaryLogic; use PHPStan\Type\GeneralizePrecision; use PHPStan\Type\Generic\GenericClassStringType; @@ -14,7 +14,7 @@ use PHPStan\Type\Type; use PHPStan\Type\VerbosityLevel; -class ConstantStringTypeTest extends TestCase +class ConstantStringTypeTest extends PHPStanTestCase { public function dataIsSuperTypeOf(): array diff --git a/tests/PHPStan/Type/FileTypeMapperTest.php b/tests/PHPStan/Type/FileTypeMapperTest.php index a9b34cf944..82ec2ff7eb 100644 --- a/tests/PHPStan/Type/FileTypeMapperTest.php +++ b/tests/PHPStan/Type/FileTypeMapperTest.php @@ -2,7 +2,7 @@ namespace PHPStan\Type; -class FileTypeMapperTest extends \PHPStan\Testing\TestCase +class FileTypeMapperTest extends \PHPStan\Testing\PHPStanTestCase { public function testGetResolvedPhpDoc(): void diff --git a/tests/PHPStan/Type/FloatTypeTest.php b/tests/PHPStan/Type/FloatTypeTest.php index 903beaf221..f99c0afefd 100644 --- a/tests/PHPStan/Type/FloatTypeTest.php +++ b/tests/PHPStan/Type/FloatTypeTest.php @@ -7,7 +7,7 @@ use PHPStan\Type\Constant\ConstantIntegerType; use PHPStan\Type\Constant\ConstantStringType; -class FloatTypeTest extends \PHPStan\Testing\TestCase +class FloatTypeTest extends \PHPStan\Testing\PHPStanTestCase { public function dataAccepts(): array diff --git a/tests/PHPStan/Type/Generic/GenericClassStringTypeTest.php b/tests/PHPStan/Type/Generic/GenericClassStringTypeTest.php index 277a3875f5..a281a78c70 100644 --- a/tests/PHPStan/Type/Generic/GenericClassStringTypeTest.php +++ b/tests/PHPStan/Type/Generic/GenericClassStringTypeTest.php @@ -15,7 +15,7 @@ use PHPStan\Type\UnionType; use PHPStan\Type\VerbosityLevel; -class GenericClassStringTypeTest extends \PHPStan\Testing\TestCase +class GenericClassStringTypeTest extends \PHPStan\Testing\PHPStanTestCase { public function dataIsSuperTypeOf(): array diff --git a/tests/PHPStan/Type/Generic/GenericObjectTypeTest.php b/tests/PHPStan/Type/Generic/GenericObjectTypeTest.php index fe412c6971..72d721b310 100644 --- a/tests/PHPStan/Type/Generic/GenericObjectTypeTest.php +++ b/tests/PHPStan/Type/Generic/GenericObjectTypeTest.php @@ -16,7 +16,7 @@ use PHPStan\Type\UnionType; use PHPStan\Type\VerbosityLevel; -class GenericObjectTypeTest extends \PHPStan\Testing\TestCase +class GenericObjectTypeTest extends \PHPStan\Testing\PHPStanTestCase { public function dataIsSuperTypeOf(): array diff --git a/tests/PHPStan/Type/Generic/TemplateTypeHelperTest.php b/tests/PHPStan/Type/Generic/TemplateTypeHelperTest.php index 279617324e..91bfcae0e2 100644 --- a/tests/PHPStan/Type/Generic/TemplateTypeHelperTest.php +++ b/tests/PHPStan/Type/Generic/TemplateTypeHelperTest.php @@ -6,7 +6,7 @@ use PHPStan\Type\ObjectType; use PHPStan\Type\VerbosityLevel; -class TemplateTypeHelperTest extends \PHPStan\Testing\TestCase +class TemplateTypeHelperTest extends \PHPStan\Testing\PHPStanTestCase { public function testIssue2512(): void diff --git a/tests/PHPStan/Type/IntegerTypeTest.php b/tests/PHPStan/Type/IntegerTypeTest.php index 7b98244725..8400b2df8a 100644 --- a/tests/PHPStan/Type/IntegerTypeTest.php +++ b/tests/PHPStan/Type/IntegerTypeTest.php @@ -7,7 +7,7 @@ use PHPStan\Type\Constant\ConstantIntegerType; use PHPStan\Type\Constant\ConstantStringType; -class IntegerTypeTest extends \PHPStan\Testing\TestCase +class IntegerTypeTest extends \PHPStan\Testing\PHPStanTestCase { public function dataAccepts(): array diff --git a/tests/PHPStan/Type/IntersectionTypeTest.php b/tests/PHPStan/Type/IntersectionTypeTest.php index 634c11b0b4..03434722b1 100644 --- a/tests/PHPStan/Type/IntersectionTypeTest.php +++ b/tests/PHPStan/Type/IntersectionTypeTest.php @@ -11,7 +11,7 @@ use PHPStan\Type\Constant\ConstantStringType; use Test\ClassWithToString; -class IntersectionTypeTest extends \PHPStan\Testing\TestCase +class IntersectionTypeTest extends \PHPStan\Testing\PHPStanTestCase { public function dataAccepts(): \Iterator diff --git a/tests/PHPStan/Type/IterableTypeTest.php b/tests/PHPStan/Type/IterableTypeTest.php index 7aaf86149c..0ac3b7ab07 100644 --- a/tests/PHPStan/Type/IterableTypeTest.php +++ b/tests/PHPStan/Type/IterableTypeTest.php @@ -11,7 +11,7 @@ use PHPStan\Type\Generic\TemplateTypeScope; use PHPStan\Type\Generic\TemplateTypeVariance; -class IterableTypeTest extends \PHPStan\Testing\TestCase +class IterableTypeTest extends \PHPStan\Testing\PHPStanTestCase { public function dataIsSuperTypeOf(): array diff --git a/tests/PHPStan/Type/MixedTypeTest.php b/tests/PHPStan/Type/MixedTypeTest.php index acd24ecad6..a0cda10b5f 100644 --- a/tests/PHPStan/Type/MixedTypeTest.php +++ b/tests/PHPStan/Type/MixedTypeTest.php @@ -5,7 +5,7 @@ use PHPStan\TrinaryLogic; use PHPStan\Type\Constant\ConstantIntegerType; -class MixedTypeTest extends \PHPStan\Testing\TestCase +class MixedTypeTest extends \PHPStan\Testing\PHPStanTestCase { public function dataIsSuperTypeOf(): array diff --git a/tests/PHPStan/Type/ObjectTypeTest.php b/tests/PHPStan/Type/ObjectTypeTest.php index 848e97b029..7ce6f37a13 100644 --- a/tests/PHPStan/Type/ObjectTypeTest.php +++ b/tests/PHPStan/Type/ObjectTypeTest.php @@ -11,7 +11,7 @@ use PHPStan\Type\Generic\TemplateTypeScope; use PHPStan\Type\Generic\TemplateTypeVariance; -class ObjectTypeTest extends \PHPStan\Testing\TestCase +class ObjectTypeTest extends \PHPStan\Testing\PHPStanTestCase { public function dataIsIterable(): array diff --git a/tests/PHPStan/Type/ObjectWithoutClassTypeTest.php b/tests/PHPStan/Type/ObjectWithoutClassTypeTest.php index 12a2c179ae..b1692bc73e 100644 --- a/tests/PHPStan/Type/ObjectWithoutClassTypeTest.php +++ b/tests/PHPStan/Type/ObjectWithoutClassTypeTest.php @@ -4,7 +4,7 @@ use PHPStan\TrinaryLogic; -class ObjectWithoutClassTypeTest extends \PHPStan\Testing\TestCase +class ObjectWithoutClassTypeTest extends \PHPStan\Testing\PHPStanTestCase { public function dataIsSuperTypeOf(): array diff --git a/tests/PHPStan/Type/StaticTypeTest.php b/tests/PHPStan/Type/StaticTypeTest.php index 993b9c74c2..bf64cf800b 100644 --- a/tests/PHPStan/Type/StaticTypeTest.php +++ b/tests/PHPStan/Type/StaticTypeTest.php @@ -8,7 +8,7 @@ use StaticTypeTest\Child; use StaticTypeTest\FinalChild; -class StaticTypeTest extends \PHPStan\Testing\TestCase +class StaticTypeTest extends \PHPStan\Testing\PHPStanTestCase { public function dataIsIterable(): array diff --git a/tests/PHPStan/Type/StringTypeTest.php b/tests/PHPStan/Type/StringTypeTest.php index 2aabdb976a..c6fd99b935 100644 --- a/tests/PHPStan/Type/StringTypeTest.php +++ b/tests/PHPStan/Type/StringTypeTest.php @@ -2,7 +2,7 @@ namespace PHPStan\Type; -use PHPStan\Testing\TestCase; +use PHPStan\Testing\PHPStanTestCase; use PHPStan\TrinaryLogic; use PHPStan\Type\Accessory\HasPropertyType; use PHPStan\Type\Constant\ConstantStringType; @@ -12,7 +12,7 @@ use PHPStan\Type\Generic\TemplateTypeVariance; use Test\ClassWithToString; -class StringTypeTest extends TestCase +class StringTypeTest extends PHPStanTestCase { public function dataIsSuperTypeOf(): array diff --git a/tests/PHPStan/Type/TemplateTypeTest.php b/tests/PHPStan/Type/TemplateTypeTest.php index f52ad4b3b0..73cbbad976 100644 --- a/tests/PHPStan/Type/TemplateTypeTest.php +++ b/tests/PHPStan/Type/TemplateTypeTest.php @@ -9,7 +9,7 @@ use PHPStan\Type\Generic\TemplateTypeScope; use PHPStan\Type\Generic\TemplateTypeVariance; -class TemplateTypeTest extends \PHPStan\Testing\TestCase +class TemplateTypeTest extends \PHPStan\Testing\PHPStanTestCase { public function dataAccepts(): array diff --git a/tests/PHPStan/Type/TypeCombinatorTest.php b/tests/PHPStan/Type/TypeCombinatorTest.php index 54f20414d4..f6c4160113 100644 --- a/tests/PHPStan/Type/TypeCombinatorTest.php +++ b/tests/PHPStan/Type/TypeCombinatorTest.php @@ -24,7 +24,7 @@ use PHPStan\Type\Generic\TemplateTypeScope; use PHPStan\Type\Generic\TemplateTypeVariance; -class TypeCombinatorTest extends \PHPStan\Testing\TestCase +class TypeCombinatorTest extends \PHPStan\Testing\PHPStanTestCase { public function dataAddNull(): array diff --git a/tests/PHPStan/Type/UnionTypeTest.php b/tests/PHPStan/Type/UnionTypeTest.php index 1d8894733e..78233edb32 100644 --- a/tests/PHPStan/Type/UnionTypeTest.php +++ b/tests/PHPStan/Type/UnionTypeTest.php @@ -21,7 +21,7 @@ use PHPStan\Type\Generic\TemplateTypeScope; use PHPStan\Type\Generic\TemplateTypeVariance; -class UnionTypeTest extends \PHPStan\Testing\TestCase +class UnionTypeTest extends \PHPStan\Testing\PHPStanTestCase { public function dataIsCallable(): array diff --git a/tests/bootstrap-runtime-reflection.php b/tests/bootstrap-runtime-reflection.php index 7598e4fa5f..7e5193d45f 100644 --- a/tests/bootstrap-runtime-reflection.php +++ b/tests/bootstrap-runtime-reflection.php @@ -2,4 +2,4 @@ require_once __DIR__ . '/bootstrap.php'; -\PHPStan\Testing\TestCase::getContainer(); +\PHPStan\Testing\PHPStanTestCase::getContainer(); diff --git a/tests/bootstrap-static-reflection.php b/tests/bootstrap-static-reflection.php index 6f62631c68..ea0e3dfad6 100644 --- a/tests/bootstrap-static-reflection.php +++ b/tests/bootstrap-static-reflection.php @@ -2,6 +2,6 @@ require_once __DIR__ . '/bootstrap.php'; -\PHPStan\Testing\TestCase::$useStaticReflectionProvider = true; +\PHPStan\Testing\PHPStanTestCase::$useStaticReflectionProvider = true; -\PHPStan\Testing\TestCase::getContainer(); +\PHPStan\Testing\PHPStanTestCase::getContainer();