From bd8ccf9419b192d5cbb528a4cafd4056e4464def Mon Sep 17 00:00:00 2001 From: jrfnl Date: Fri, 16 Feb 2024 23:14:14 +0100 Subject: [PATCH 1/4] Tests/Core: rename `AbstractMethodUnitTest` to `AbstractMethodTestCase` ... to comply with PHPUnit naming conventions, which are more strictly enforced as of PHPUnit 10. Ref: sebastianbergmann/phpunit 5132 --- ...tractMethodUnitTest.php => AbstractMethodTestCase.php} | 2 +- tests/Core/File/FindEndOfStatementTest.php | 4 ++-- tests/Core/File/FindExtendedClassNameTest.php | 4 ++-- tests/Core/File/FindImplementedInterfaceNamesTest.php | 4 ++-- tests/Core/File/FindStartOfStatementTest.php | 4 ++-- tests/Core/File/GetClassPropertiesTest.php | 4 ++-- tests/Core/File/GetConditionTest.php | 4 ++-- tests/Core/File/GetDeclarationNameParseError1Test.php | 4 ++-- tests/Core/File/GetDeclarationNameParseError2Test.php | 4 ++-- tests/Core/File/GetDeclarationNameTest.php | 4 ++-- tests/Core/File/GetMemberPropertiesTest.php | 4 ++-- tests/Core/File/GetMethodParametersParseError1Test.php | 4 ++-- tests/Core/File/GetMethodParametersParseError2Test.php | 4 ++-- tests/Core/File/GetMethodParametersTest.php | 4 ++-- tests/Core/File/GetMethodPropertiesTest.php | 4 ++-- tests/Core/File/GetTokensAsStringTest.php | 4 ++-- tests/Core/File/IsReferenceTest.php | 4 ++-- tests/Core/Sniffs/AbstractArraySniffTest.php | 4 ++-- tests/Core/Tokenizers/AbstractTokenizerTestCase.php | 8 ++++---- 19 files changed, 39 insertions(+), 39 deletions(-) rename tests/Core/{AbstractMethodUnitTest.php => AbstractMethodTestCase.php} (99%) diff --git a/tests/Core/AbstractMethodUnitTest.php b/tests/Core/AbstractMethodTestCase.php similarity index 99% rename from tests/Core/AbstractMethodUnitTest.php rename to tests/Core/AbstractMethodTestCase.php index e806a07622..4e76eb0fd8 100644 --- a/tests/Core/AbstractMethodUnitTest.php +++ b/tests/Core/AbstractMethodTestCase.php @@ -16,7 +16,7 @@ use PHP_CodeSniffer\Tests\ConfigDouble; use PHPUnit\Framework\TestCase; -abstract class AbstractMethodUnitTest extends TestCase +abstract class AbstractMethodTestCase extends TestCase { /** diff --git a/tests/Core/File/FindEndOfStatementTest.php b/tests/Core/File/FindEndOfStatementTest.php index be8f458ae0..5475287934 100644 --- a/tests/Core/File/FindEndOfStatementTest.php +++ b/tests/Core/File/FindEndOfStatementTest.php @@ -9,7 +9,7 @@ namespace PHP_CodeSniffer\Tests\Core\File; -use PHP_CodeSniffer\Tests\Core\AbstractMethodUnitTest; +use PHP_CodeSniffer\Tests\Core\AbstractMethodTestCase; use PHP_CodeSniffer\Util\Tokens; /** @@ -17,7 +17,7 @@ * * @covers \PHP_CodeSniffer\Files\File::findEndOfStatement */ -final class FindEndOfStatementTest extends AbstractMethodUnitTest +final class FindEndOfStatementTest extends AbstractMethodTestCase { diff --git a/tests/Core/File/FindExtendedClassNameTest.php b/tests/Core/File/FindExtendedClassNameTest.php index bb69f25680..273fa2c305 100644 --- a/tests/Core/File/FindExtendedClassNameTest.php +++ b/tests/Core/File/FindExtendedClassNameTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Tests\Core\File; -use PHP_CodeSniffer\Tests\Core\AbstractMethodUnitTest; +use PHP_CodeSniffer\Tests\Core\AbstractMethodTestCase; /** * Tests for the \PHP_CodeSniffer\Files\File::findExtendedClassName method. * * @covers \PHP_CodeSniffer\Files\File::findExtendedClassName */ -final class FindExtendedClassNameTest extends AbstractMethodUnitTest +final class FindExtendedClassNameTest extends AbstractMethodTestCase { diff --git a/tests/Core/File/FindImplementedInterfaceNamesTest.php b/tests/Core/File/FindImplementedInterfaceNamesTest.php index c0540301b0..7dfbf4044a 100644 --- a/tests/Core/File/FindImplementedInterfaceNamesTest.php +++ b/tests/Core/File/FindImplementedInterfaceNamesTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Tests\Core\File; -use PHP_CodeSniffer\Tests\Core\AbstractMethodUnitTest; +use PHP_CodeSniffer\Tests\Core\AbstractMethodTestCase; /** * Tests for the \PHP_CodeSniffer\Files\File::findImplementedInterfaceNames method. * * @covers \PHP_CodeSniffer\Files\File::findImplementedInterfaceNames */ -final class FindImplementedInterfaceNamesTest extends AbstractMethodUnitTest +final class FindImplementedInterfaceNamesTest extends AbstractMethodTestCase { diff --git a/tests/Core/File/FindStartOfStatementTest.php b/tests/Core/File/FindStartOfStatementTest.php index aa0646c6d4..41f2086b81 100644 --- a/tests/Core/File/FindStartOfStatementTest.php +++ b/tests/Core/File/FindStartOfStatementTest.php @@ -11,7 +11,7 @@ namespace PHP_CodeSniffer\Tests\Core\File; -use PHP_CodeSniffer\Tests\Core\AbstractMethodUnitTest; +use PHP_CodeSniffer\Tests\Core\AbstractMethodTestCase; use PHP_CodeSniffer\Util\Tokens; /** @@ -19,7 +19,7 @@ * * @covers \PHP_CodeSniffer\Files\File::findStartOfStatement */ -final class FindStartOfStatementTest extends AbstractMethodUnitTest +final class FindStartOfStatementTest extends AbstractMethodTestCase { diff --git a/tests/Core/File/GetClassPropertiesTest.php b/tests/Core/File/GetClassPropertiesTest.php index 4841b50b6b..c1d8f515d8 100644 --- a/tests/Core/File/GetClassPropertiesTest.php +++ b/tests/Core/File/GetClassPropertiesTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Tests\Core\File; -use PHP_CodeSniffer\Tests\Core\AbstractMethodUnitTest; +use PHP_CodeSniffer\Tests\Core\AbstractMethodTestCase; /** * Tests for the \PHP_CodeSniffer\Files\File:getClassProperties method. * * @covers \PHP_CodeSniffer\Files\File::getClassProperties */ -final class GetClassPropertiesTest extends AbstractMethodUnitTest +final class GetClassPropertiesTest extends AbstractMethodTestCase { diff --git a/tests/Core/File/GetConditionTest.php b/tests/Core/File/GetConditionTest.php index c53a280b3a..b38a7213d1 100644 --- a/tests/Core/File/GetConditionTest.php +++ b/tests/Core/File/GetConditionTest.php @@ -9,7 +9,7 @@ namespace PHP_CodeSniffer\Tests\Core\File; -use PHP_CodeSniffer\Tests\Core\AbstractMethodUnitTest; +use PHP_CodeSniffer\Tests\Core\AbstractMethodTestCase; use PHP_CodeSniffer\Util\Tokens; /** @@ -18,7 +18,7 @@ * @covers \PHP_CodeSniffer\Files\File::getCondition * @covers \PHP_CodeSniffer\Files\File::hasCondition */ -final class GetConditionTest extends AbstractMethodUnitTest +final class GetConditionTest extends AbstractMethodTestCase { /** diff --git a/tests/Core/File/GetDeclarationNameParseError1Test.php b/tests/Core/File/GetDeclarationNameParseError1Test.php index f684cebb54..ee70c4b0f3 100644 --- a/tests/Core/File/GetDeclarationNameParseError1Test.php +++ b/tests/Core/File/GetDeclarationNameParseError1Test.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Tests\Core\File; -use PHP_CodeSniffer\Tests\Core\AbstractMethodUnitTest; +use PHP_CodeSniffer\Tests\Core\AbstractMethodTestCase; /** * Tests for the \PHP_CodeSniffer\Files\File:getDeclarationName method. * * @covers \PHP_CodeSniffer\Files\File::getDeclarationName */ -final class GetDeclarationNameParseError1Test extends AbstractMethodUnitTest +final class GetDeclarationNameParseError1Test extends AbstractMethodTestCase { diff --git a/tests/Core/File/GetDeclarationNameParseError2Test.php b/tests/Core/File/GetDeclarationNameParseError2Test.php index 6c48349c4b..ad036a8d0d 100644 --- a/tests/Core/File/GetDeclarationNameParseError2Test.php +++ b/tests/Core/File/GetDeclarationNameParseError2Test.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Tests\Core\File; -use PHP_CodeSniffer\Tests\Core\AbstractMethodUnitTest; +use PHP_CodeSniffer\Tests\Core\AbstractMethodTestCase; /** * Tests for the \PHP_CodeSniffer\Files\File:getDeclarationName method. * * @covers \PHP_CodeSniffer\Files\File::getDeclarationName */ -final class GetDeclarationNameParseError2Test extends AbstractMethodUnitTest +final class GetDeclarationNameParseError2Test extends AbstractMethodTestCase { diff --git a/tests/Core/File/GetDeclarationNameTest.php b/tests/Core/File/GetDeclarationNameTest.php index eb665681be..6371aacf61 100644 --- a/tests/Core/File/GetDeclarationNameTest.php +++ b/tests/Core/File/GetDeclarationNameTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Tests\Core\File; -use PHP_CodeSniffer\Tests\Core\AbstractMethodUnitTest; +use PHP_CodeSniffer\Tests\Core\AbstractMethodTestCase; /** * Tests for the \PHP_CodeSniffer\Files\File:getDeclarationName method. * * @covers \PHP_CodeSniffer\Files\File::getDeclarationName */ -final class GetDeclarationNameTest extends AbstractMethodUnitTest +final class GetDeclarationNameTest extends AbstractMethodTestCase { diff --git a/tests/Core/File/GetMemberPropertiesTest.php b/tests/Core/File/GetMemberPropertiesTest.php index 402d0b99e5..31ded2d7df 100644 --- a/tests/Core/File/GetMemberPropertiesTest.php +++ b/tests/Core/File/GetMemberPropertiesTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Tests\Core\File; -use PHP_CodeSniffer\Tests\Core\AbstractMethodUnitTest; +use PHP_CodeSniffer\Tests\Core\AbstractMethodTestCase; /** * Tests for the \PHP_CodeSniffer\Files\File::getMemberProperties method. * * @covers \PHP_CodeSniffer\Files\File::getMemberProperties */ -final class GetMemberPropertiesTest extends AbstractMethodUnitTest +final class GetMemberPropertiesTest extends AbstractMethodTestCase { diff --git a/tests/Core/File/GetMethodParametersParseError1Test.php b/tests/Core/File/GetMethodParametersParseError1Test.php index 528d548733..aa89d49607 100644 --- a/tests/Core/File/GetMethodParametersParseError1Test.php +++ b/tests/Core/File/GetMethodParametersParseError1Test.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Tests\Core\File; -use PHP_CodeSniffer\Tests\Core\AbstractMethodUnitTest; +use PHP_CodeSniffer\Tests\Core\AbstractMethodTestCase; /** * Tests for the \PHP_CodeSniffer\Files\File::getMethodParameters method. * * @covers \PHP_CodeSniffer\Files\File::getMethodParameters */ -final class GetMethodParametersParseError1Test extends AbstractMethodUnitTest +final class GetMethodParametersParseError1Test extends AbstractMethodTestCase { diff --git a/tests/Core/File/GetMethodParametersParseError2Test.php b/tests/Core/File/GetMethodParametersParseError2Test.php index 49cd940592..a50fdfc80c 100644 --- a/tests/Core/File/GetMethodParametersParseError2Test.php +++ b/tests/Core/File/GetMethodParametersParseError2Test.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Tests\Core\File; -use PHP_CodeSniffer\Tests\Core\AbstractMethodUnitTest; +use PHP_CodeSniffer\Tests\Core\AbstractMethodTestCase; /** * Tests for the \PHP_CodeSniffer\Files\File::getMethodParameters method. * * @covers \PHP_CodeSniffer\Files\File::getMethodParameters */ -final class GetMethodParametersParseError2Test extends AbstractMethodUnitTest +final class GetMethodParametersParseError2Test extends AbstractMethodTestCase { diff --git a/tests/Core/File/GetMethodParametersTest.php b/tests/Core/File/GetMethodParametersTest.php index 8d04720975..9e8d5bc6bc 100644 --- a/tests/Core/File/GetMethodParametersTest.php +++ b/tests/Core/File/GetMethodParametersTest.php @@ -11,14 +11,14 @@ namespace PHP_CodeSniffer\Tests\Core\File; -use PHP_CodeSniffer\Tests\Core\AbstractMethodUnitTest; +use PHP_CodeSniffer\Tests\Core\AbstractMethodTestCase; /** * Tests for the \PHP_CodeSniffer\Files\File::getMethodParameters method. * * @covers \PHP_CodeSniffer\Files\File::getMethodParameters */ -final class GetMethodParametersTest extends AbstractMethodUnitTest +final class GetMethodParametersTest extends AbstractMethodTestCase { diff --git a/tests/Core/File/GetMethodPropertiesTest.php b/tests/Core/File/GetMethodPropertiesTest.php index fff60b9c4f..2dd83328ea 100644 --- a/tests/Core/File/GetMethodPropertiesTest.php +++ b/tests/Core/File/GetMethodPropertiesTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Tests\Core\File; -use PHP_CodeSniffer\Tests\Core\AbstractMethodUnitTest; +use PHP_CodeSniffer\Tests\Core\AbstractMethodTestCase; /** * Tests for the \PHP_CodeSniffer\Files\File::getMethodProperties method. * * @covers \PHP_CodeSniffer\Files\File::getMethodProperties */ -final class GetMethodPropertiesTest extends AbstractMethodUnitTest +final class GetMethodPropertiesTest extends AbstractMethodTestCase { diff --git a/tests/Core/File/GetTokensAsStringTest.php b/tests/Core/File/GetTokensAsStringTest.php index 7e79749512..c14db1a7ef 100644 --- a/tests/Core/File/GetTokensAsStringTest.php +++ b/tests/Core/File/GetTokensAsStringTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Tests\Core\File; -use PHP_CodeSniffer\Tests\Core\AbstractMethodUnitTest; +use PHP_CodeSniffer\Tests\Core\AbstractMethodTestCase; /** * Tests for the \PHP_CodeSniffer\Files\File:getTokensAsString method. * * @covers \PHP_CodeSniffer\Files\File::getTokensAsString */ -final class GetTokensAsStringTest extends AbstractMethodUnitTest +final class GetTokensAsStringTest extends AbstractMethodTestCase { diff --git a/tests/Core/File/IsReferenceTest.php b/tests/Core/File/IsReferenceTest.php index 5b977de7ad..08badfc9f9 100644 --- a/tests/Core/File/IsReferenceTest.php +++ b/tests/Core/File/IsReferenceTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Tests\Core\File; -use PHP_CodeSniffer\Tests\Core\AbstractMethodUnitTest; +use PHP_CodeSniffer\Tests\Core\AbstractMethodTestCase; /** * Tests for the \PHP_CodeSniffer\Files\File::isReference method. * * @covers \PHP_CodeSniffer\Files\File::isReference */ -final class IsReferenceTest extends AbstractMethodUnitTest +final class IsReferenceTest extends AbstractMethodTestCase { diff --git a/tests/Core/Sniffs/AbstractArraySniffTest.php b/tests/Core/Sniffs/AbstractArraySniffTest.php index d5a6f501e6..1280bacd73 100644 --- a/tests/Core/Sniffs/AbstractArraySniffTest.php +++ b/tests/Core/Sniffs/AbstractArraySniffTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Tests\Core\Sniffs; -use PHP_CodeSniffer\Tests\Core\AbstractMethodUnitTest; +use PHP_CodeSniffer\Tests\Core\AbstractMethodTestCase; /** * Tests for the \PHP_CodeSniffer\Sniffs\AbstractArraySniff. * * @covers \PHP_CodeSniffer\Sniffs\AbstractArraySniff */ -final class AbstractArraySniffTest extends AbstractMethodUnitTest +final class AbstractArraySniffTest extends AbstractMethodTestCase { /** diff --git a/tests/Core/Tokenizers/AbstractTokenizerTestCase.php b/tests/Core/Tokenizers/AbstractTokenizerTestCase.php index 4c1fb1a8a3..9f97601acb 100644 --- a/tests/Core/Tokenizers/AbstractTokenizerTestCase.php +++ b/tests/Core/Tokenizers/AbstractTokenizerTestCase.php @@ -2,7 +2,7 @@ /** * Base class to use when testing parts of the tokenizer. * - * This is a near duplicate of the AbstractMethodUnitTest class, with the + * This is a near duplicate of the AbstractMethodTestCase class, with the * difference being that it allows for recording code coverage for tokenizer tests. * * @author Juliette Reinders Folmer @@ -15,7 +15,7 @@ use PHP_CodeSniffer\Files\DummyFile; use PHP_CodeSniffer\Ruleset; use PHP_CodeSniffer\Tests\ConfigDouble; -use PHP_CodeSniffer\Tests\Core\AbstractMethodUnitTest; +use PHP_CodeSniffer\Tests\Core\AbstractMethodTestCase; use PHPUnit\Framework\TestCase; use ReflectionProperty; @@ -90,7 +90,7 @@ protected function setUp(): void */ public function testTestMarkersAreUnique() { - AbstractMethodUnitTest::assertTestMarkersAreUnique($this->phpcsFile); + AbstractMethodTestCase::assertTestMarkersAreUnique($this->phpcsFile); }//end testTestMarkersAreUnique() @@ -109,7 +109,7 @@ public function testTestMarkersAreUnique() */ protected function getTargetToken($commentString, $tokenType, $tokenContent=null) { - return AbstractMethodUnitTest::getTargetTokenFromFile($this->phpcsFile, $commentString, $tokenType, $tokenContent); + return AbstractMethodTestCase::getTargetTokenFromFile($this->phpcsFile, $commentString, $tokenType, $tokenContent); }//end getTargetToken() From 78e5d09d6b5177c610ca50ed0378c1860e9919ea Mon Sep 17 00:00:00 2001 From: jrfnl Date: Fri, 16 Feb 2024 23:22:41 +0100 Subject: [PATCH 2/4] Tests/Sniffs: rename `AbstractSniffUnitTest` to `AbstractSniffTestCase` ... to comply with PHPUnit naming conventions, which are more strictly enforced as of PHPUnit 10. Ref: sebastianbergmann/phpunit 5132 --- src/Standards/Generic/Tests/Arrays/ArrayIndentUnitTest.php | 4 ++-- .../Generic/Tests/Arrays/DisallowLongArraySyntaxUnitTest.php | 4 ++-- .../Generic/Tests/Arrays/DisallowShortArraySyntaxUnitTest.php | 4 ++-- .../Generic/Tests/Classes/DuplicateClassNameUnitTest.php | 4 ++-- .../Generic/Tests/Classes/OpeningBraceSameLineUnitTest.php | 4 ++-- .../Tests/CodeAnalysis/AssignmentInConditionUnitTest.php | 4 ++-- .../Generic/Tests/CodeAnalysis/EmptyPHPStatementUnitTest.php | 4 ++-- .../Generic/Tests/CodeAnalysis/EmptyStatementUnitTest.php | 4 ++-- .../Tests/CodeAnalysis/ForLoopShouldBeWhileLoopUnitTest.php | 4 ++-- .../CodeAnalysis/ForLoopWithTestFunctionCallUnitTest.php | 4 ++-- .../Generic/Tests/CodeAnalysis/JumbledIncrementerUnitTest.php | 4 ++-- .../RequireExplicitBooleanOperatorPrecedenceUnitTest.php | 4 ++-- .../Tests/CodeAnalysis/UnconditionalIfStatementUnitTest.php | 4 ++-- .../Tests/CodeAnalysis/UnnecessaryFinalModifierUnitTest.php | 4 ++-- .../Tests/CodeAnalysis/UnusedFunctionParameterUnitTest.php | 4 ++-- .../Tests/CodeAnalysis/UselessOverridingMethodUnitTest.php | 4 ++-- src/Standards/Generic/Tests/Commenting/DocCommentUnitTest.php | 4 ++-- src/Standards/Generic/Tests/Commenting/FixmeUnitTest.php | 4 ++-- src/Standards/Generic/Tests/Commenting/TodoUnitTest.php | 4 ++-- .../ControlStructures/DisallowYodaConditionsUnitTest.php | 4 ++-- .../ControlStructures/InlineControlStructureUnitTest.php | 4 ++-- src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.php | 4 ++-- src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.php | 4 ++-- .../Generic/Tests/Files/EndFileNoNewlineUnitTest.php | 4 ++-- src/Standards/Generic/Tests/Files/ExecutableFileUnitTest.php | 4 ++-- src/Standards/Generic/Tests/Files/InlineHTMLUnitTest.php | 4 ++-- src/Standards/Generic/Tests/Files/LineEndingsUnitTest.php | 4 ++-- src/Standards/Generic/Tests/Files/LineLengthUnitTest.php | 4 ++-- .../Generic/Tests/Files/LowercasedFilenameUnitTest.php | 4 ++-- src/Standards/Generic/Tests/Files/OneClassPerFileUnitTest.php | 4 ++-- .../Generic/Tests/Files/OneInterfacePerFileUnitTest.php | 4 ++-- .../Generic/Tests/Files/OneObjectStructurePerFileUnitTest.php | 4 ++-- src/Standards/Generic/Tests/Files/OneTraitPerFileUnitTest.php | 4 ++-- .../Tests/Formatting/DisallowMultipleStatementsUnitTest.php | 4 ++-- .../Tests/Formatting/MultipleStatementAlignmentUnitTest.php | 4 ++-- .../Generic/Tests/Formatting/SpaceAfterCastUnitTest.php | 4 ++-- .../Generic/Tests/Formatting/SpaceAfterNotUnitTest.php | 4 ++-- .../Generic/Tests/Formatting/SpaceBeforeCastUnitTest.php | 4 ++-- .../Tests/Functions/FunctionCallArgumentSpacingUnitTest.php | 4 ++-- .../Tests/Functions/OpeningFunctionBraceBsdAllmanUnitTest.php | 4 ++-- .../OpeningFunctionBraceKernighanRitchieUnitTest.php | 4 ++-- .../Generic/Tests/Metrics/CyclomaticComplexityUnitTest.php | 4 ++-- src/Standards/Generic/Tests/Metrics/NestingLevelUnitTest.php | 4 ++-- .../NamingConventions/AbstractClassNamePrefixUnitTest.php | 4 ++-- .../Tests/NamingConventions/CamelCapsFunctionNameUnitTest.php | 4 ++-- .../Tests/NamingConventions/ConstructorNameUnitTest.php | 4 ++-- .../Tests/NamingConventions/InterfaceNameSuffixUnitTest.php | 4 ++-- .../Tests/NamingConventions/TraitNameSuffixUnitTest.php | 4 ++-- .../Tests/NamingConventions/UpperCaseConstantNameUnitTest.php | 4 ++-- src/Standards/Generic/Tests/PHP/BacktickOperatorUnitTest.php | 4 ++-- .../Tests/PHP/CharacterBeforePHPOpeningTagUnitTest.php | 4 ++-- src/Standards/Generic/Tests/PHP/ClosingPHPTagUnitTest.php | 4 ++-- .../Generic/Tests/PHP/DeprecatedFunctionsUnitTest.php | 4 ++-- .../Generic/Tests/PHP/DisallowAlternativePHPTagsUnitTest.php | 4 ++-- .../Generic/Tests/PHP/DisallowRequestSuperglobalUnitTest.php | 4 ++-- .../Generic/Tests/PHP/DisallowShortOpenTagUnitTest.php | 4 ++-- src/Standards/Generic/Tests/PHP/DiscourageGotoUnitTest.php | 4 ++-- .../Generic/Tests/PHP/ForbiddenFunctionsUnitTest.php | 4 ++-- src/Standards/Generic/Tests/PHP/LowerCaseConstantUnitTest.php | 4 ++-- src/Standards/Generic/Tests/PHP/LowerCaseKeywordUnitTest.php | 4 ++-- src/Standards/Generic/Tests/PHP/LowerCaseTypeUnitTest.php | 4 ++-- src/Standards/Generic/Tests/PHP/NoSilencedErrorsUnitTest.php | 4 ++-- .../Generic/Tests/PHP/RequireStrictTypesUnitTest.php | 4 ++-- src/Standards/Generic/Tests/PHP/SAPIUsageUnitTest.php | 4 ++-- src/Standards/Generic/Tests/PHP/SyntaxUnitTest.php | 4 ++-- src/Standards/Generic/Tests/PHP/UpperCaseConstantUnitTest.php | 4 ++-- .../Generic/Tests/Strings/UnnecessaryHeredocUnitTest.php | 4 ++-- .../Generic/Tests/Strings/UnnecessaryStringConcatUnitTest.php | 4 ++-- .../Generic/Tests/VersionControl/GitMergeConflictUnitTest.php | 4 ++-- .../Tests/VersionControl/SubversionPropertiesUnitTest.php | 4 ++-- .../Tests/WhiteSpace/ArbitraryParenthesesSpacingUnitTest.php | 4 ++-- .../Generic/Tests/WhiteSpace/DisallowSpaceIndentUnitTest.php | 4 ++-- .../Generic/Tests/WhiteSpace/DisallowTabIndentUnitTest.php | 4 ++-- .../Tests/WhiteSpace/HereNowdocIdentifierSpacingUnitTest.php | 4 ++-- .../Tests/WhiteSpace/IncrementDecrementSpacingUnitTest.php | 4 ++-- .../Tests/WhiteSpace/LanguageConstructSpacingUnitTest.php | 4 ++-- .../Generic/Tests/WhiteSpace/ScopeIndentUnitTest.php | 4 ++-- .../Tests/WhiteSpace/SpreadOperatorSpacingAfterUnitTest.php | 4 ++-- src/Standards/PEAR/Tests/Classes/ClassDeclarationUnitTest.php | 4 ++-- src/Standards/PEAR/Tests/Commenting/ClassCommentUnitTest.php | 4 ++-- src/Standards/PEAR/Tests/Commenting/FileCommentUnitTest.php | 4 ++-- .../PEAR/Tests/Commenting/FunctionCommentUnitTest.php | 4 ++-- src/Standards/PEAR/Tests/Commenting/InlineCommentUnitTest.php | 4 ++-- .../PEAR/Tests/ControlStructures/ControlSignatureUnitTest.php | 4 ++-- .../Tests/ControlStructures/MultiLineConditionUnitTest.php | 4 ++-- src/Standards/PEAR/Tests/Files/IncludingFileUnitTest.php | 4 ++-- .../PEAR/Tests/Formatting/MultiLineAssignmentUnitTest.php | 4 ++-- .../PEAR/Tests/Functions/FunctionCallSignatureUnitTest.php | 4 ++-- .../PEAR/Tests/Functions/FunctionDeclarationUnitTest.php | 4 ++-- .../PEAR/Tests/Functions/ValidDefaultValueUnitTest.php | 4 ++-- .../PEAR/Tests/NamingConventions/ValidClassNameUnitTest.php | 4 ++-- .../Tests/NamingConventions/ValidFunctionNameUnitTest.php | 4 ++-- .../Tests/NamingConventions/ValidVariableNameUnitTest.php | 4 ++-- .../PEAR/Tests/WhiteSpace/ObjectOperatorIndentUnitTest.php | 4 ++-- .../PEAR/Tests/WhiteSpace/ScopeClosingBraceUnitTest.php | 4 ++-- src/Standards/PEAR/Tests/WhiteSpace/ScopeIndentUnitTest.php | 4 ++-- src/Standards/PSR1/Tests/Classes/ClassDeclarationUnitTest.php | 4 ++-- src/Standards/PSR1/Tests/Files/SideEffectsUnitTest.php | 4 ++-- .../PSR1/Tests/Methods/CamelCapsMethodNameUnitTest.php | 4 ++-- .../PSR12/Tests/Classes/AnonClassDeclarationUnitTest.php | 4 ++-- .../PSR12/Tests/Classes/ClassInstantiationUnitTest.php | 4 ++-- src/Standards/PSR12/Tests/Classes/ClosingBraceUnitTest.php | 4 ++-- .../PSR12/Tests/Classes/OpeningBraceSpaceUnitTest.php | 4 ++-- .../ControlStructures/BooleanOperatorPlacementUnitTest.php | 4 ++-- .../ControlStructures/ControlStructureSpacingUnitTest.php | 4 ++-- src/Standards/PSR12/Tests/Files/DeclareStatementUnitTest.php | 4 ++-- src/Standards/PSR12/Tests/Files/FileHeaderUnitTest.php | 4 ++-- src/Standards/PSR12/Tests/Files/ImportStatementUnitTest.php | 4 ++-- src/Standards/PSR12/Tests/Files/OpenTagUnitTest.php | 4 ++-- .../PSR12/Tests/Functions/NullableTypeDeclarationUnitTest.php | 4 ++-- .../PSR12/Tests/Functions/ReturnTypeDeclarationUnitTest.php | 4 ++-- .../PSR12/Tests/Keywords/ShortFormTypeKeywordsUnitTest.php | 4 ++-- .../PSR12/Tests/Namespaces/CompoundNamespaceDepthUnitTest.php | 4 ++-- .../PSR12/Tests/Operators/OperatorSpacingUnitTest.php | 4 ++-- .../PSR12/Tests/Properties/ConstantVisibilityUnitTest.php | 4 ++-- src/Standards/PSR12/Tests/Traits/UseDeclarationUnitTest.php | 4 ++-- src/Standards/PSR2/Tests/Classes/ClassDeclarationUnitTest.php | 4 ++-- .../PSR2/Tests/Classes/PropertyDeclarationUnitTest.php | 4 ++-- .../ControlStructures/ControlStructureSpacingUnitTest.php | 4 ++-- .../Tests/ControlStructures/ElseIfDeclarationUnitTest.php | 4 ++-- .../Tests/ControlStructures/SwitchDeclarationUnitTest.php | 4 ++-- src/Standards/PSR2/Tests/Files/ClosingTagUnitTest.php | 4 ++-- src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.php | 4 ++-- .../PSR2/Tests/Methods/FunctionCallSignatureUnitTest.php | 4 ++-- .../PSR2/Tests/Methods/FunctionClosingBraceUnitTest.php | 4 ++-- .../PSR2/Tests/Methods/MethodDeclarationUnitTest.php | 4 ++-- .../PSR2/Tests/Namespaces/NamespaceDeclarationUnitTest.php | 4 ++-- .../PSR2/Tests/Namespaces/UseDeclarationUnitTest.php | 4 ++-- .../Squiz/Tests/Arrays/ArrayBracketSpacingUnitTest.php | 4 ++-- src/Standards/Squiz/Tests/Arrays/ArrayDeclarationUnitTest.php | 4 ++-- .../Squiz/Tests/Classes/ClassDeclarationUnitTest.php | 4 ++-- src/Standards/Squiz/Tests/Classes/ClassFileNameUnitTest.php | 4 ++-- .../Squiz/Tests/Classes/LowercaseClassKeywordsUnitTest.php | 4 ++-- .../Squiz/Tests/Classes/SelfMemberReferenceUnitTest.php | 4 ++-- src/Standards/Squiz/Tests/Classes/ValidClassNameUnitTest.php | 4 ++-- src/Standards/Squiz/Tests/Commenting/BlockCommentUnitTest.php | 4 ++-- src/Standards/Squiz/Tests/Commenting/ClassCommentUnitTest.php | 4 ++-- .../Tests/Commenting/ClosingDeclarationCommentUnitTest.php | 4 ++-- .../Squiz/Tests/Commenting/DocCommentAlignmentUnitTest.php | 4 ++-- .../Squiz/Tests/Commenting/EmptyCatchCommentUnitTest.php | 4 ++-- src/Standards/Squiz/Tests/Commenting/FileCommentUnitTest.php | 4 ++-- .../Tests/Commenting/FunctionCommentThrowTagUnitTest.php | 4 ++-- .../Squiz/Tests/Commenting/FunctionCommentUnitTest.php | 4 ++-- .../Squiz/Tests/Commenting/InlineCommentUnitTest.php | 4 ++-- .../Tests/Commenting/LongConditionClosingCommentUnitTest.php | 4 ++-- .../Squiz/Tests/Commenting/PostStatementCommentUnitTest.php | 4 ++-- .../Squiz/Tests/Commenting/VariableCommentUnitTest.php | 4 ++-- .../Tests/ControlStructures/ControlSignatureUnitTest.php | 4 ++-- .../Tests/ControlStructures/ElseIfDeclarationUnitTest.php | 4 ++-- .../ControlStructures/ForEachLoopDeclarationUnitTest.php | 4 ++-- .../Tests/ControlStructures/ForLoopDeclarationUnitTest.php | 4 ++-- .../Tests/ControlStructures/InlineIfDeclarationUnitTest.php | 4 ++-- .../Tests/ControlStructures/LowercaseDeclarationUnitTest.php | 4 ++-- .../Tests/ControlStructures/SwitchDeclarationUnitTest.php | 4 ++-- src/Standards/Squiz/Tests/Files/FileExtensionUnitTest.php | 4 ++-- .../Squiz/Tests/Formatting/OperatorBracketUnitTest.php | 4 ++-- .../Functions/FunctionDeclarationArgumentSpacingUnitTest.php | 4 ++-- .../Squiz/Tests/Functions/FunctionDeclarationUnitTest.php | 4 ++-- .../Tests/Functions/FunctionDuplicateArgumentUnitTest.php | 4 ++-- .../Squiz/Tests/Functions/GlobalFunctionUnitTest.php | 4 ++-- .../Tests/Functions/LowercaseFunctionKeywordsUnitTest.php | 4 ++-- .../Tests/Functions/MultiLineFunctionDeclarationUnitTest.php | 4 ++-- .../Tests/NamingConventions/ValidFunctionNameUnitTest.php | 4 ++-- .../Tests/NamingConventions/ValidVariableNameUnitTest.php | 4 ++-- .../Squiz/Tests/Objects/ObjectInstantiationUnitTest.php | 4 ++-- .../Squiz/Tests/Operators/ComparisonOperatorUsageUnitTest.php | 4 ++-- .../Squiz/Tests/Operators/IncrementDecrementUsageUnitTest.php | 4 ++-- .../Squiz/Tests/Operators/ValidLogicalOperatorsUnitTest.php | 4 ++-- src/Standards/Squiz/Tests/PHP/CommentedOutCodeUnitTest.php | 4 ++-- .../Squiz/Tests/PHP/DisallowBooleanStatementUnitTest.php | 4 ++-- .../Squiz/Tests/PHP/DisallowComparisonAssignmentUnitTest.php | 4 ++-- src/Standards/Squiz/Tests/PHP/DisallowInlineIfUnitTest.php | 4 ++-- .../Squiz/Tests/PHP/DisallowMultipleAssignmentsUnitTest.php | 4 ++-- .../Squiz/Tests/PHP/DisallowSizeFunctionsInLoopsUnitTest.php | 4 ++-- .../Squiz/Tests/PHP/DiscouragedFunctionsUnitTest.php | 4 ++-- src/Standards/Squiz/Tests/PHP/EmbeddedPhpUnitTest.php | 4 ++-- src/Standards/Squiz/Tests/PHP/EvalUnitTest.php | 4 ++-- src/Standards/Squiz/Tests/PHP/GlobalKeywordUnitTest.php | 4 ++-- src/Standards/Squiz/Tests/PHP/HeredocUnitTest.php | 4 ++-- src/Standards/Squiz/Tests/PHP/InnerFunctionsUnitTest.php | 4 ++-- .../Squiz/Tests/PHP/LowercasePHPFunctionsUnitTest.php | 4 ++-- src/Standards/Squiz/Tests/PHP/NonExecutableCodeUnitTest.php | 4 ++-- src/Standards/Squiz/Tests/Scope/MemberVarScopeUnitTest.php | 4 ++-- src/Standards/Squiz/Tests/Scope/MethodScopeUnitTest.php | 4 ++-- src/Standards/Squiz/Tests/Scope/StaticThisUsageUnitTest.php | 4 ++-- .../Squiz/Tests/Strings/ConcatenationSpacingUnitTest.php | 4 ++-- .../Squiz/Tests/Strings/DoubleQuoteUsageUnitTest.php | 4 ++-- src/Standards/Squiz/Tests/Strings/EchoedStringsUnitTest.php | 4 ++-- src/Standards/Squiz/Tests/WhiteSpace/CastSpacingUnitTest.php | 4 ++-- .../Tests/WhiteSpace/ControlStructureSpacingUnitTest.php | 4 ++-- .../Tests/WhiteSpace/FunctionClosingBraceSpaceUnitTest.php | 4 ++-- .../Tests/WhiteSpace/FunctionOpeningBraceSpaceUnitTest.php | 4 ++-- .../Squiz/Tests/WhiteSpace/FunctionSpacingUnitTest.php | 4 ++-- .../Squiz/Tests/WhiteSpace/LogicalOperatorSpacingUnitTest.php | 4 ++-- .../Squiz/Tests/WhiteSpace/MemberVarSpacingUnitTest.php | 4 ++-- .../Squiz/Tests/WhiteSpace/ObjectOperatorSpacingUnitTest.php | 4 ++-- .../Squiz/Tests/WhiteSpace/OperatorSpacingUnitTest.php | 4 ++-- .../Squiz/Tests/WhiteSpace/ScopeClosingBraceUnitTest.php | 4 ++-- .../Squiz/Tests/WhiteSpace/ScopeKeywordSpacingUnitTest.php | 4 ++-- .../Squiz/Tests/WhiteSpace/SemicolonSpacingUnitTest.php | 4 ++-- .../Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.php | 4 ++-- src/Standards/Zend/Tests/Files/ClosingTagUnitTest.php | 4 ++-- .../Tests/NamingConventions/ValidVariableNameUnitTest.php | 4 ++-- .../{AbstractSniffUnitTest.php => AbstractSniffTestCase.php} | 2 +- 204 files changed, 407 insertions(+), 407 deletions(-) rename tests/Standards/{AbstractSniffUnitTest.php => AbstractSniffTestCase.php} (99%) diff --git a/src/Standards/Generic/Tests/Arrays/ArrayIndentUnitTest.php b/src/Standards/Generic/Tests/Arrays/ArrayIndentUnitTest.php index 2c0f68de77..a9ed88b4a5 100644 --- a/src/Standards/Generic/Tests/Arrays/ArrayIndentUnitTest.php +++ b/src/Standards/Generic/Tests/Arrays/ArrayIndentUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Generic\Tests\Arrays; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the ArrayIndent sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Arrays\ArrayIndentSniff */ -final class ArrayIndentUnitTest extends AbstractSniffUnitTest +final class ArrayIndentUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Generic/Tests/Arrays/DisallowLongArraySyntaxUnitTest.php b/src/Standards/Generic/Tests/Arrays/DisallowLongArraySyntaxUnitTest.php index 18f12fe7de..b1e1a76fa6 100644 --- a/src/Standards/Generic/Tests/Arrays/DisallowLongArraySyntaxUnitTest.php +++ b/src/Standards/Generic/Tests/Arrays/DisallowLongArraySyntaxUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Generic\Tests\Arrays; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the DisallowLongArraySyntax sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Arrays\DisallowLongArraySyntaxSniff */ -final class DisallowLongArraySyntaxUnitTest extends AbstractSniffUnitTest +final class DisallowLongArraySyntaxUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Generic/Tests/Arrays/DisallowShortArraySyntaxUnitTest.php b/src/Standards/Generic/Tests/Arrays/DisallowShortArraySyntaxUnitTest.php index af361f8b2c..9d70894267 100644 --- a/src/Standards/Generic/Tests/Arrays/DisallowShortArraySyntaxUnitTest.php +++ b/src/Standards/Generic/Tests/Arrays/DisallowShortArraySyntaxUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Generic\Tests\Arrays; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the DisallowShortArraySyntax sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Arrays\DisallowShortArraySyntaxSniff */ -final class DisallowShortArraySyntaxUnitTest extends AbstractSniffUnitTest +final class DisallowShortArraySyntaxUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Generic/Tests/Classes/DuplicateClassNameUnitTest.php b/src/Standards/Generic/Tests/Classes/DuplicateClassNameUnitTest.php index 29bfe9f88f..43af1e15e1 100644 --- a/src/Standards/Generic/Tests/Classes/DuplicateClassNameUnitTest.php +++ b/src/Standards/Generic/Tests/Classes/DuplicateClassNameUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Generic\Tests\Classes; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the DuplicateClassName sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Classes\DuplicateClassNameSniff */ -final class DuplicateClassNameUnitTest extends AbstractSniffUnitTest +final class DuplicateClassNameUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Generic/Tests/Classes/OpeningBraceSameLineUnitTest.php b/src/Standards/Generic/Tests/Classes/OpeningBraceSameLineUnitTest.php index fc1f444d2f..86534caca2 100644 --- a/src/Standards/Generic/Tests/Classes/OpeningBraceSameLineUnitTest.php +++ b/src/Standards/Generic/Tests/Classes/OpeningBraceSameLineUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Generic\Tests\Classes; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the OpeningBraceSameLine sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Classes\OpeningBraceSameLineSniff */ -final class OpeningBraceSameLineUnitTest extends AbstractSniffUnitTest +final class OpeningBraceSameLineUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Generic/Tests/CodeAnalysis/AssignmentInConditionUnitTest.php b/src/Standards/Generic/Tests/CodeAnalysis/AssignmentInConditionUnitTest.php index c7f23b5247..2af59702c7 100644 --- a/src/Standards/Generic/Tests/CodeAnalysis/AssignmentInConditionUnitTest.php +++ b/src/Standards/Generic/Tests/CodeAnalysis/AssignmentInConditionUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Generic\Tests\CodeAnalysis; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the AssignmentInCondition sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\AssignmentInConditionSniff */ -final class AssignmentInConditionUnitTest extends AbstractSniffUnitTest +final class AssignmentInConditionUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Generic/Tests/CodeAnalysis/EmptyPHPStatementUnitTest.php b/src/Standards/Generic/Tests/CodeAnalysis/EmptyPHPStatementUnitTest.php index 77542acbaa..2d159cfadc 100644 --- a/src/Standards/Generic/Tests/CodeAnalysis/EmptyPHPStatementUnitTest.php +++ b/src/Standards/Generic/Tests/CodeAnalysis/EmptyPHPStatementUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Generic\Tests\CodeAnalysis; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the EmptyPHPStatement sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\EmptyPHPStatementSniff */ -final class EmptyPHPStatementUnitTest extends AbstractSniffUnitTest +final class EmptyPHPStatementUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Generic/Tests/CodeAnalysis/EmptyStatementUnitTest.php b/src/Standards/Generic/Tests/CodeAnalysis/EmptyStatementUnitTest.php index 8122aa2a5c..b65133f3dd 100644 --- a/src/Standards/Generic/Tests/CodeAnalysis/EmptyStatementUnitTest.php +++ b/src/Standards/Generic/Tests/CodeAnalysis/EmptyStatementUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Generic\Tests\CodeAnalysis; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the EmptyStatement sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\EmptyStatementSniff */ -final class EmptyStatementUnitTest extends AbstractSniffUnitTest +final class EmptyStatementUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Generic/Tests/CodeAnalysis/ForLoopShouldBeWhileLoopUnitTest.php b/src/Standards/Generic/Tests/CodeAnalysis/ForLoopShouldBeWhileLoopUnitTest.php index c118e3c7a9..b3154f1c0a 100644 --- a/src/Standards/Generic/Tests/CodeAnalysis/ForLoopShouldBeWhileLoopUnitTest.php +++ b/src/Standards/Generic/Tests/CodeAnalysis/ForLoopShouldBeWhileLoopUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Generic\Tests\CodeAnalysis; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the ForLoopShouldBeWhileLoop sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\ForLoopShouldBeWhileLoopSniff */ -final class ForLoopShouldBeWhileLoopUnitTest extends AbstractSniffUnitTest +final class ForLoopShouldBeWhileLoopUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Generic/Tests/CodeAnalysis/ForLoopWithTestFunctionCallUnitTest.php b/src/Standards/Generic/Tests/CodeAnalysis/ForLoopWithTestFunctionCallUnitTest.php index 04490c91f9..74690b9f22 100644 --- a/src/Standards/Generic/Tests/CodeAnalysis/ForLoopWithTestFunctionCallUnitTest.php +++ b/src/Standards/Generic/Tests/CodeAnalysis/ForLoopWithTestFunctionCallUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Generic\Tests\CodeAnalysis; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the ForLoopWithTestFunctionCall sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\ForLoopWithTestFunctionCallSniff */ -final class ForLoopWithTestFunctionCallUnitTest extends AbstractSniffUnitTest +final class ForLoopWithTestFunctionCallUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Generic/Tests/CodeAnalysis/JumbledIncrementerUnitTest.php b/src/Standards/Generic/Tests/CodeAnalysis/JumbledIncrementerUnitTest.php index 0060efe624..b7826a175e 100644 --- a/src/Standards/Generic/Tests/CodeAnalysis/JumbledIncrementerUnitTest.php +++ b/src/Standards/Generic/Tests/CodeAnalysis/JumbledIncrementerUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Generic\Tests\CodeAnalysis; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the JumbledIncrementer sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\JumbledIncrementerSniff */ -final class JumbledIncrementerUnitTest extends AbstractSniffUnitTest +final class JumbledIncrementerUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Generic/Tests/CodeAnalysis/RequireExplicitBooleanOperatorPrecedenceUnitTest.php b/src/Standards/Generic/Tests/CodeAnalysis/RequireExplicitBooleanOperatorPrecedenceUnitTest.php index db6642e32b..eb6933ad37 100644 --- a/src/Standards/Generic/Tests/CodeAnalysis/RequireExplicitBooleanOperatorPrecedenceUnitTest.php +++ b/src/Standards/Generic/Tests/CodeAnalysis/RequireExplicitBooleanOperatorPrecedenceUnitTest.php @@ -10,14 +10,14 @@ namespace PHP_CodeSniffer\Standards\Generic\Tests\CodeAnalysis; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the RequireExplicitBooleanOperatorPrecedence sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\RequireExplicitBooleanOperatorPrecedenceSniff */ -final class RequireExplicitBooleanOperatorPrecedenceUnitTest extends AbstractSniffUnitTest +final class RequireExplicitBooleanOperatorPrecedenceUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Generic/Tests/CodeAnalysis/UnconditionalIfStatementUnitTest.php b/src/Standards/Generic/Tests/CodeAnalysis/UnconditionalIfStatementUnitTest.php index d7f2e7e4b0..5b4805ff8f 100644 --- a/src/Standards/Generic/Tests/CodeAnalysis/UnconditionalIfStatementUnitTest.php +++ b/src/Standards/Generic/Tests/CodeAnalysis/UnconditionalIfStatementUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Generic\Tests\CodeAnalysis; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the UnconditionalIfStatement sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\UnconditionalIfStatementSniff */ -final class UnconditionalIfStatementUnitTest extends AbstractSniffUnitTest +final class UnconditionalIfStatementUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Generic/Tests/CodeAnalysis/UnnecessaryFinalModifierUnitTest.php b/src/Standards/Generic/Tests/CodeAnalysis/UnnecessaryFinalModifierUnitTest.php index 2969a865e3..8ade1020e5 100644 --- a/src/Standards/Generic/Tests/CodeAnalysis/UnnecessaryFinalModifierUnitTest.php +++ b/src/Standards/Generic/Tests/CodeAnalysis/UnnecessaryFinalModifierUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Generic\Tests\CodeAnalysis; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the UnnecessaryFinalModifier sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\UnnecessaryFinalModifierSniff */ -final class UnnecessaryFinalModifierUnitTest extends AbstractSniffUnitTest +final class UnnecessaryFinalModifierUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Generic/Tests/CodeAnalysis/UnusedFunctionParameterUnitTest.php b/src/Standards/Generic/Tests/CodeAnalysis/UnusedFunctionParameterUnitTest.php index cb74345b43..884ee68343 100644 --- a/src/Standards/Generic/Tests/CodeAnalysis/UnusedFunctionParameterUnitTest.php +++ b/src/Standards/Generic/Tests/CodeAnalysis/UnusedFunctionParameterUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Generic\Tests\CodeAnalysis; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the UnusedFunctionParameter sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\UnusedFunctionParameterSniff */ -final class UnusedFunctionParameterUnitTest extends AbstractSniffUnitTest +final class UnusedFunctionParameterUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Generic/Tests/CodeAnalysis/UselessOverridingMethodUnitTest.php b/src/Standards/Generic/Tests/CodeAnalysis/UselessOverridingMethodUnitTest.php index 91d93f562d..6ccd53f750 100644 --- a/src/Standards/Generic/Tests/CodeAnalysis/UselessOverridingMethodUnitTest.php +++ b/src/Standards/Generic/Tests/CodeAnalysis/UselessOverridingMethodUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Generic\Tests\CodeAnalysis; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the UselessOverridingMethod sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\UselessOverridingMethodSniff */ -final class UselessOverridingMethodUnitTest extends AbstractSniffUnitTest +final class UselessOverridingMethodUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Generic/Tests/Commenting/DocCommentUnitTest.php b/src/Standards/Generic/Tests/Commenting/DocCommentUnitTest.php index 01a710b342..d4b1724b89 100644 --- a/src/Standards/Generic/Tests/Commenting/DocCommentUnitTest.php +++ b/src/Standards/Generic/Tests/Commenting/DocCommentUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Generic\Tests\Commenting; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the DocCommentSniff sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Commenting\DocCommentSniff */ -final class DocCommentUnitTest extends AbstractSniffUnitTest +final class DocCommentUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Generic/Tests/Commenting/FixmeUnitTest.php b/src/Standards/Generic/Tests/Commenting/FixmeUnitTest.php index 3b6cff5312..c11b82333f 100644 --- a/src/Standards/Generic/Tests/Commenting/FixmeUnitTest.php +++ b/src/Standards/Generic/Tests/Commenting/FixmeUnitTest.php @@ -10,14 +10,14 @@ namespace PHP_CodeSniffer\Standards\Generic\Tests\Commenting; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the Fixme sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Commenting\FixmeSniff */ -final class FixmeUnitTest extends AbstractSniffUnitTest +final class FixmeUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Generic/Tests/Commenting/TodoUnitTest.php b/src/Standards/Generic/Tests/Commenting/TodoUnitTest.php index e617aff922..f75c4a82d9 100644 --- a/src/Standards/Generic/Tests/Commenting/TodoUnitTest.php +++ b/src/Standards/Generic/Tests/Commenting/TodoUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Generic\Tests\Commenting; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the Todo sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Commenting\TodoSniff */ -final class TodoUnitTest extends AbstractSniffUnitTest +final class TodoUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Generic/Tests/ControlStructures/DisallowYodaConditionsUnitTest.php b/src/Standards/Generic/Tests/ControlStructures/DisallowYodaConditionsUnitTest.php index 64a487d512..db231cdc48 100644 --- a/src/Standards/Generic/Tests/ControlStructures/DisallowYodaConditionsUnitTest.php +++ b/src/Standards/Generic/Tests/ControlStructures/DisallowYodaConditionsUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Generic\Tests\ControlStructures; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the DisallowYodaConditions sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\ControlStructures\DisallowYodaConditionsSniff */ -final class DisallowYodaConditionsUnitTest extends AbstractSniffUnitTest +final class DisallowYodaConditionsUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Generic/Tests/ControlStructures/InlineControlStructureUnitTest.php b/src/Standards/Generic/Tests/ControlStructures/InlineControlStructureUnitTest.php index 41be1659b5..6e8ece960f 100644 --- a/src/Standards/Generic/Tests/ControlStructures/InlineControlStructureUnitTest.php +++ b/src/Standards/Generic/Tests/ControlStructures/InlineControlStructureUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Generic\Tests\ControlStructures; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the InlineControlStructure sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\ControlStructures\InlineControlStructureSniff */ -final class InlineControlStructureUnitTest extends AbstractSniffUnitTest +final class InlineControlStructureUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.php b/src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.php index c1c3e292e3..e616e74a4c 100644 --- a/src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.php +++ b/src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Generic\Tests\Files; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the ByteOrderMark sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Files\ByteOrderMarkSniff */ -final class ByteOrderMarkUnitTest extends AbstractSniffUnitTest +final class ByteOrderMarkUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.php b/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.php index 2046ae4378..e7f2a75ff4 100644 --- a/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.php +++ b/src/Standards/Generic/Tests/Files/EndFileNewlineUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Generic\Tests\Files; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the EndFileNewline sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Files\EndFileNewlineSniff */ -final class EndFileNewlineUnitTest extends AbstractSniffUnitTest +final class EndFileNewlineUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.php b/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.php index 3ca82bb806..237ff2fe6f 100644 --- a/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.php +++ b/src/Standards/Generic/Tests/Files/EndFileNoNewlineUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Generic\Tests\Files; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the EndFileNoNewline sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Files\EndFileNoNewlineSniff */ -final class EndFileNoNewlineUnitTest extends AbstractSniffUnitTest +final class EndFileNoNewlineUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Generic/Tests/Files/ExecutableFileUnitTest.php b/src/Standards/Generic/Tests/Files/ExecutableFileUnitTest.php index 86767a73b1..55d5ba1baa 100644 --- a/src/Standards/Generic/Tests/Files/ExecutableFileUnitTest.php +++ b/src/Standards/Generic/Tests/Files/ExecutableFileUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Generic\Tests\Files; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the ExecutableFile sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Files\ExecutableFileSniff */ -final class ExecutableFileUnitTest extends AbstractSniffUnitTest +final class ExecutableFileUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Generic/Tests/Files/InlineHTMLUnitTest.php b/src/Standards/Generic/Tests/Files/InlineHTMLUnitTest.php index 3e716061d3..cf22018547 100644 --- a/src/Standards/Generic/Tests/Files/InlineHTMLUnitTest.php +++ b/src/Standards/Generic/Tests/Files/InlineHTMLUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Generic\Tests\Files; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the InlineHTML sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Files\InlineHTMLSniff */ -final class InlineHTMLUnitTest extends AbstractSniffUnitTest +final class InlineHTMLUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Generic/Tests/Files/LineEndingsUnitTest.php b/src/Standards/Generic/Tests/Files/LineEndingsUnitTest.php index ca20a78486..748601ffd0 100644 --- a/src/Standards/Generic/Tests/Files/LineEndingsUnitTest.php +++ b/src/Standards/Generic/Tests/Files/LineEndingsUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Generic\Tests\Files; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the LineEndings sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Files\LineEndingsSniff */ -final class LineEndingsUnitTest extends AbstractSniffUnitTest +final class LineEndingsUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Generic/Tests/Files/LineLengthUnitTest.php b/src/Standards/Generic/Tests/Files/LineLengthUnitTest.php index 4b86d46017..18b3f83c26 100644 --- a/src/Standards/Generic/Tests/Files/LineLengthUnitTest.php +++ b/src/Standards/Generic/Tests/Files/LineLengthUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Generic\Tests\Files; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the LineLength sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Files\LineLengthSniff */ -final class LineLengthUnitTest extends AbstractSniffUnitTest +final class LineLengthUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Generic/Tests/Files/LowercasedFilenameUnitTest.php b/src/Standards/Generic/Tests/Files/LowercasedFilenameUnitTest.php index ea7d5aa8b2..b36b5d6424 100644 --- a/src/Standards/Generic/Tests/Files/LowercasedFilenameUnitTest.php +++ b/src/Standards/Generic/Tests/Files/LowercasedFilenameUnitTest.php @@ -12,14 +12,14 @@ use PHP_CodeSniffer\Files\DummyFile; use PHP_CodeSniffer\Ruleset; use PHP_CodeSniffer\Tests\ConfigDouble; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the LowercasedFilename sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Files\LowercasedFilenameSniff */ -final class LowercasedFilenameUnitTest extends AbstractSniffUnitTest +final class LowercasedFilenameUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Generic/Tests/Files/OneClassPerFileUnitTest.php b/src/Standards/Generic/Tests/Files/OneClassPerFileUnitTest.php index eb3cf49750..4d2d5f87dd 100644 --- a/src/Standards/Generic/Tests/Files/OneClassPerFileUnitTest.php +++ b/src/Standards/Generic/Tests/Files/OneClassPerFileUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Generic\Tests\Files; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the OneClassPerFile sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Files\OneClassPerFileSniff */ -final class OneClassPerFileUnitTest extends AbstractSniffUnitTest +final class OneClassPerFileUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Generic/Tests/Files/OneInterfacePerFileUnitTest.php b/src/Standards/Generic/Tests/Files/OneInterfacePerFileUnitTest.php index b6a62b18c3..a9a74ef972 100644 --- a/src/Standards/Generic/Tests/Files/OneInterfacePerFileUnitTest.php +++ b/src/Standards/Generic/Tests/Files/OneInterfacePerFileUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Generic\Tests\Files; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the OneInterfacePerFile sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Files\OneInterfacePerFileSniff */ -final class OneInterfacePerFileUnitTest extends AbstractSniffUnitTest +final class OneInterfacePerFileUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Generic/Tests/Files/OneObjectStructurePerFileUnitTest.php b/src/Standards/Generic/Tests/Files/OneObjectStructurePerFileUnitTest.php index d0e618a822..7ac544ef22 100644 --- a/src/Standards/Generic/Tests/Files/OneObjectStructurePerFileUnitTest.php +++ b/src/Standards/Generic/Tests/Files/OneObjectStructurePerFileUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Generic\Tests\Files; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the OneInterfacePerFile sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Files\OneObjectStructurePerFileSniff */ -final class OneObjectStructurePerFileUnitTest extends AbstractSniffUnitTest +final class OneObjectStructurePerFileUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Generic/Tests/Files/OneTraitPerFileUnitTest.php b/src/Standards/Generic/Tests/Files/OneTraitPerFileUnitTest.php index ab95b5868f..ec27c9900e 100644 --- a/src/Standards/Generic/Tests/Files/OneTraitPerFileUnitTest.php +++ b/src/Standards/Generic/Tests/Files/OneTraitPerFileUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Generic\Tests\Files; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the OneTraitPerFile sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Files\OneTraitPerFileSniff */ -final class OneTraitPerFileUnitTest extends AbstractSniffUnitTest +final class OneTraitPerFileUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Generic/Tests/Formatting/DisallowMultipleStatementsUnitTest.php b/src/Standards/Generic/Tests/Formatting/DisallowMultipleStatementsUnitTest.php index d9c32f83af..dd78c22bea 100644 --- a/src/Standards/Generic/Tests/Formatting/DisallowMultipleStatementsUnitTest.php +++ b/src/Standards/Generic/Tests/Formatting/DisallowMultipleStatementsUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Generic\Tests\Formatting; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the DisallowMultipleStatements sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Formatting\DisallowMultipleStatementsSniff */ -final class DisallowMultipleStatementsUnitTest extends AbstractSniffUnitTest +final class DisallowMultipleStatementsUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Generic/Tests/Formatting/MultipleStatementAlignmentUnitTest.php b/src/Standards/Generic/Tests/Formatting/MultipleStatementAlignmentUnitTest.php index 5b1b6a4d44..39ed6757a7 100644 --- a/src/Standards/Generic/Tests/Formatting/MultipleStatementAlignmentUnitTest.php +++ b/src/Standards/Generic/Tests/Formatting/MultipleStatementAlignmentUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Generic\Tests\Formatting; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the MultipleStatementAlignment sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Formatting\MultipleStatementAlignmentSniff */ -final class MultipleStatementAlignmentUnitTest extends AbstractSniffUnitTest +final class MultipleStatementAlignmentUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Generic/Tests/Formatting/SpaceAfterCastUnitTest.php b/src/Standards/Generic/Tests/Formatting/SpaceAfterCastUnitTest.php index 8f26eda255..8bd7f79582 100644 --- a/src/Standards/Generic/Tests/Formatting/SpaceAfterCastUnitTest.php +++ b/src/Standards/Generic/Tests/Formatting/SpaceAfterCastUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Generic\Tests\Formatting; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the SpaceAfterCast sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Formatting\SpaceAfterCastSniff */ -final class SpaceAfterCastUnitTest extends AbstractSniffUnitTest +final class SpaceAfterCastUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Generic/Tests/Formatting/SpaceAfterNotUnitTest.php b/src/Standards/Generic/Tests/Formatting/SpaceAfterNotUnitTest.php index 1ea522975d..6046ad29a9 100644 --- a/src/Standards/Generic/Tests/Formatting/SpaceAfterNotUnitTest.php +++ b/src/Standards/Generic/Tests/Formatting/SpaceAfterNotUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Generic\Tests\Formatting; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the SpaceAfterNot sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Formatting\SpaceAfterNotSniff */ -final class SpaceAfterNotUnitTest extends AbstractSniffUnitTest +final class SpaceAfterNotUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Generic/Tests/Formatting/SpaceBeforeCastUnitTest.php b/src/Standards/Generic/Tests/Formatting/SpaceBeforeCastUnitTest.php index 5165409d56..e8d87875d7 100644 --- a/src/Standards/Generic/Tests/Formatting/SpaceBeforeCastUnitTest.php +++ b/src/Standards/Generic/Tests/Formatting/SpaceBeforeCastUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Generic\Tests\Formatting; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the SpaceBeforeCast sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Formatting\SpaceBeforeCastSniff */ -final class SpaceBeforeCastUnitTest extends AbstractSniffUnitTest +final class SpaceBeforeCastUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Generic/Tests/Functions/FunctionCallArgumentSpacingUnitTest.php b/src/Standards/Generic/Tests/Functions/FunctionCallArgumentSpacingUnitTest.php index 35bf11cb72..a068ee6b48 100644 --- a/src/Standards/Generic/Tests/Functions/FunctionCallArgumentSpacingUnitTest.php +++ b/src/Standards/Generic/Tests/Functions/FunctionCallArgumentSpacingUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Generic\Tests\Functions; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the FunctionCallArgumentSpacing sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Functions\FunctionCallArgumentSpacingSniff */ -final class FunctionCallArgumentSpacingUnitTest extends AbstractSniffUnitTest +final class FunctionCallArgumentSpacingUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Generic/Tests/Functions/OpeningFunctionBraceBsdAllmanUnitTest.php b/src/Standards/Generic/Tests/Functions/OpeningFunctionBraceBsdAllmanUnitTest.php index 0c6c4af1ec..64dbe1132b 100644 --- a/src/Standards/Generic/Tests/Functions/OpeningFunctionBraceBsdAllmanUnitTest.php +++ b/src/Standards/Generic/Tests/Functions/OpeningFunctionBraceBsdAllmanUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Generic\Tests\Functions; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the OpeningFunctionBraceBsdAllman sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Functions\OpeningFunctionBraceBsdAllmanSniff */ -final class OpeningFunctionBraceBsdAllmanUnitTest extends AbstractSniffUnitTest +final class OpeningFunctionBraceBsdAllmanUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Generic/Tests/Functions/OpeningFunctionBraceKernighanRitchieUnitTest.php b/src/Standards/Generic/Tests/Functions/OpeningFunctionBraceKernighanRitchieUnitTest.php index 747d54d84c..14f99fae14 100644 --- a/src/Standards/Generic/Tests/Functions/OpeningFunctionBraceKernighanRitchieUnitTest.php +++ b/src/Standards/Generic/Tests/Functions/OpeningFunctionBraceKernighanRitchieUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Generic\Tests\Functions; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the OpeningFunctionBraceKernighanRitchie sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Functions\OpeningFunctionBraceKernighanRitchieSniff */ -final class OpeningFunctionBraceKernighanRitchieUnitTest extends AbstractSniffUnitTest +final class OpeningFunctionBraceKernighanRitchieUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Generic/Tests/Metrics/CyclomaticComplexityUnitTest.php b/src/Standards/Generic/Tests/Metrics/CyclomaticComplexityUnitTest.php index f7c75f79ca..8c78037532 100644 --- a/src/Standards/Generic/Tests/Metrics/CyclomaticComplexityUnitTest.php +++ b/src/Standards/Generic/Tests/Metrics/CyclomaticComplexityUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Generic\Tests\Metrics; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the CyclomaticComplexity sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Metrics\CyclomaticComplexitySniff */ -final class CyclomaticComplexityUnitTest extends AbstractSniffUnitTest +final class CyclomaticComplexityUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Generic/Tests/Metrics/NestingLevelUnitTest.php b/src/Standards/Generic/Tests/Metrics/NestingLevelUnitTest.php index c26ca45692..26cf8f45a0 100644 --- a/src/Standards/Generic/Tests/Metrics/NestingLevelUnitTest.php +++ b/src/Standards/Generic/Tests/Metrics/NestingLevelUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Generic\Tests\Metrics; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the NestingLevel sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Metrics\NestingLevelSniff */ -final class NestingLevelUnitTest extends AbstractSniffUnitTest +final class NestingLevelUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Generic/Tests/NamingConventions/AbstractClassNamePrefixUnitTest.php b/src/Standards/Generic/Tests/NamingConventions/AbstractClassNamePrefixUnitTest.php index 52dabed892..908b9bda10 100644 --- a/src/Standards/Generic/Tests/NamingConventions/AbstractClassNamePrefixUnitTest.php +++ b/src/Standards/Generic/Tests/NamingConventions/AbstractClassNamePrefixUnitTest.php @@ -8,14 +8,14 @@ namespace PHP_CodeSniffer\Standards\Generic\Tests\NamingConventions; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the AbstractClassNamePrefix sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\NamingConventions\AbstractClassNamePrefixSniff */ -final class AbstractClassNamePrefixUnitTest extends AbstractSniffUnitTest +final class AbstractClassNamePrefixUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Generic/Tests/NamingConventions/CamelCapsFunctionNameUnitTest.php b/src/Standards/Generic/Tests/NamingConventions/CamelCapsFunctionNameUnitTest.php index 5e33a399df..4b7358e239 100644 --- a/src/Standards/Generic/Tests/NamingConventions/CamelCapsFunctionNameUnitTest.php +++ b/src/Standards/Generic/Tests/NamingConventions/CamelCapsFunctionNameUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Generic\Tests\NamingConventions; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the CamelCapsFunctionName sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\NamingConventions\CamelCapsFunctionNameSniff */ -final class CamelCapsFunctionNameUnitTest extends AbstractSniffUnitTest +final class CamelCapsFunctionNameUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Generic/Tests/NamingConventions/ConstructorNameUnitTest.php b/src/Standards/Generic/Tests/NamingConventions/ConstructorNameUnitTest.php index 10589c5b90..713c05dc14 100644 --- a/src/Standards/Generic/Tests/NamingConventions/ConstructorNameUnitTest.php +++ b/src/Standards/Generic/Tests/NamingConventions/ConstructorNameUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Generic\Tests\NamingConventions; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the ConstructorName sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\NamingConventions\ConstructorNameSniff */ -final class ConstructorNameUnitTest extends AbstractSniffUnitTest +final class ConstructorNameUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Generic/Tests/NamingConventions/InterfaceNameSuffixUnitTest.php b/src/Standards/Generic/Tests/NamingConventions/InterfaceNameSuffixUnitTest.php index 1d89d1b35f..96ca81e664 100644 --- a/src/Standards/Generic/Tests/NamingConventions/InterfaceNameSuffixUnitTest.php +++ b/src/Standards/Generic/Tests/NamingConventions/InterfaceNameSuffixUnitTest.php @@ -8,14 +8,14 @@ namespace PHP_CodeSniffer\Standards\Generic\Tests\NamingConventions; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the InterfaceNameSuffix sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\NamingConventions\InterfaceNameSuffixSniff */ -final class InterfaceNameSuffixUnitTest extends AbstractSniffUnitTest +final class InterfaceNameSuffixUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Generic/Tests/NamingConventions/TraitNameSuffixUnitTest.php b/src/Standards/Generic/Tests/NamingConventions/TraitNameSuffixUnitTest.php index 391cbfc773..2abb7f618e 100644 --- a/src/Standards/Generic/Tests/NamingConventions/TraitNameSuffixUnitTest.php +++ b/src/Standards/Generic/Tests/NamingConventions/TraitNameSuffixUnitTest.php @@ -8,14 +8,14 @@ namespace PHP_CodeSniffer\Standards\Generic\Tests\NamingConventions; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the TraitNameSuffix sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\NamingConventions\TraitNameSuffixSniff */ -final class TraitNameSuffixUnitTest extends AbstractSniffUnitTest +final class TraitNameSuffixUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Generic/Tests/NamingConventions/UpperCaseConstantNameUnitTest.php b/src/Standards/Generic/Tests/NamingConventions/UpperCaseConstantNameUnitTest.php index 34a535abcc..3249f72256 100644 --- a/src/Standards/Generic/Tests/NamingConventions/UpperCaseConstantNameUnitTest.php +++ b/src/Standards/Generic/Tests/NamingConventions/UpperCaseConstantNameUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Generic\Tests\NamingConventions; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the ValidConstantName sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\NamingConventions\UpperCaseConstantNameSniff */ -final class UpperCaseConstantNameUnitTest extends AbstractSniffUnitTest +final class UpperCaseConstantNameUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Generic/Tests/PHP/BacktickOperatorUnitTest.php b/src/Standards/Generic/Tests/PHP/BacktickOperatorUnitTest.php index 5bc130b024..c7e863c298 100644 --- a/src/Standards/Generic/Tests/PHP/BacktickOperatorUnitTest.php +++ b/src/Standards/Generic/Tests/PHP/BacktickOperatorUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Generic\Tests\PHP; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the BacktickOperator sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\BacktickOperatorSniff */ -final class BacktickOperatorUnitTest extends AbstractSniffUnitTest +final class BacktickOperatorUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Generic/Tests/PHP/CharacterBeforePHPOpeningTagUnitTest.php b/src/Standards/Generic/Tests/PHP/CharacterBeforePHPOpeningTagUnitTest.php index 8fce995ab9..a5b3b2dd1e 100644 --- a/src/Standards/Generic/Tests/PHP/CharacterBeforePHPOpeningTagUnitTest.php +++ b/src/Standards/Generic/Tests/PHP/CharacterBeforePHPOpeningTagUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Generic\Tests\PHP; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the CharacterBeforePHPOpeningTag sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\CharacterBeforePHPOpeningTagSniff */ -final class CharacterBeforePHPOpeningTagUnitTest extends AbstractSniffUnitTest +final class CharacterBeforePHPOpeningTagUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Generic/Tests/PHP/ClosingPHPTagUnitTest.php b/src/Standards/Generic/Tests/PHP/ClosingPHPTagUnitTest.php index 35df704b60..69caa999ce 100644 --- a/src/Standards/Generic/Tests/PHP/ClosingPHPTagUnitTest.php +++ b/src/Standards/Generic/Tests/PHP/ClosingPHPTagUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Generic\Tests\PHP; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the ClosingPHPTag sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\ClosingPHPTagSniff */ -final class ClosingPHPTagUnitTest extends AbstractSniffUnitTest +final class ClosingPHPTagUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Generic/Tests/PHP/DeprecatedFunctionsUnitTest.php b/src/Standards/Generic/Tests/PHP/DeprecatedFunctionsUnitTest.php index b8b29f42a1..c5e1f616ce 100644 --- a/src/Standards/Generic/Tests/PHP/DeprecatedFunctionsUnitTest.php +++ b/src/Standards/Generic/Tests/PHP/DeprecatedFunctionsUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Generic\Tests\PHP; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the DeprecatedFunctions sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\DeprecatedFunctionsSniff */ -final class DeprecatedFunctionsUnitTest extends AbstractSniffUnitTest +final class DeprecatedFunctionsUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Generic/Tests/PHP/DisallowAlternativePHPTagsUnitTest.php b/src/Standards/Generic/Tests/PHP/DisallowAlternativePHPTagsUnitTest.php index ddac521619..de88b5cb07 100644 --- a/src/Standards/Generic/Tests/PHP/DisallowAlternativePHPTagsUnitTest.php +++ b/src/Standards/Generic/Tests/PHP/DisallowAlternativePHPTagsUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Generic\Tests\PHP; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the DisallowAlternativePHPTags sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\DisallowAlternativePHPTagsSniff */ -final class DisallowAlternativePHPTagsUnitTest extends AbstractSniffUnitTest +final class DisallowAlternativePHPTagsUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Generic/Tests/PHP/DisallowRequestSuperglobalUnitTest.php b/src/Standards/Generic/Tests/PHP/DisallowRequestSuperglobalUnitTest.php index 15510a6915..332e8d4317 100644 --- a/src/Standards/Generic/Tests/PHP/DisallowRequestSuperglobalUnitTest.php +++ b/src/Standards/Generic/Tests/PHP/DisallowRequestSuperglobalUnitTest.php @@ -8,14 +8,14 @@ */ namespace PHP_CodeSniffer\Standards\Generic\Tests\PHP; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the DisallowRequestSuperglobal sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\DisallowRequestSuperglobalSniff */ -final class DisallowRequestSuperglobalUnitTest extends AbstractSniffUnitTest +final class DisallowRequestSuperglobalUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Generic/Tests/PHP/DisallowShortOpenTagUnitTest.php b/src/Standards/Generic/Tests/PHP/DisallowShortOpenTagUnitTest.php index b1fc64d344..a4eafd66af 100644 --- a/src/Standards/Generic/Tests/PHP/DisallowShortOpenTagUnitTest.php +++ b/src/Standards/Generic/Tests/PHP/DisallowShortOpenTagUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Generic\Tests\PHP; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the DisallowShortOpenTag sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\DisallowShortOpenTagSniff */ -final class DisallowShortOpenTagUnitTest extends AbstractSniffUnitTest +final class DisallowShortOpenTagUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Generic/Tests/PHP/DiscourageGotoUnitTest.php b/src/Standards/Generic/Tests/PHP/DiscourageGotoUnitTest.php index 36db20dbc3..92cfaadccb 100644 --- a/src/Standards/Generic/Tests/PHP/DiscourageGotoUnitTest.php +++ b/src/Standards/Generic/Tests/PHP/DiscourageGotoUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Generic\Tests\PHP; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the DiscourageGoto sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\DiscourageGotoSniff */ -final class DiscourageGotoUnitTest extends AbstractSniffUnitTest +final class DiscourageGotoUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Generic/Tests/PHP/ForbiddenFunctionsUnitTest.php b/src/Standards/Generic/Tests/PHP/ForbiddenFunctionsUnitTest.php index 3ebfc55206..5b6dfb36f5 100644 --- a/src/Standards/Generic/Tests/PHP/ForbiddenFunctionsUnitTest.php +++ b/src/Standards/Generic/Tests/PHP/ForbiddenFunctionsUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Generic\Tests\PHP; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the ForbiddenFunctions sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\ForbiddenFunctionsSniff */ -final class ForbiddenFunctionsUnitTest extends AbstractSniffUnitTest +final class ForbiddenFunctionsUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Generic/Tests/PHP/LowerCaseConstantUnitTest.php b/src/Standards/Generic/Tests/PHP/LowerCaseConstantUnitTest.php index fb6e381010..d225e72efa 100644 --- a/src/Standards/Generic/Tests/PHP/LowerCaseConstantUnitTest.php +++ b/src/Standards/Generic/Tests/PHP/LowerCaseConstantUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Generic\Tests\PHP; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the LowerCaseConstant sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\LowerCaseConstantSniff */ -final class LowerCaseConstantUnitTest extends AbstractSniffUnitTest +final class LowerCaseConstantUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Generic/Tests/PHP/LowerCaseKeywordUnitTest.php b/src/Standards/Generic/Tests/PHP/LowerCaseKeywordUnitTest.php index 31bfad6df6..a640bceeae 100644 --- a/src/Standards/Generic/Tests/PHP/LowerCaseKeywordUnitTest.php +++ b/src/Standards/Generic/Tests/PHP/LowerCaseKeywordUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Generic\Tests\PHP; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the LowerCaseKeyword sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\LowerCaseKeywordSniff */ -final class LowerCaseKeywordUnitTest extends AbstractSniffUnitTest +final class LowerCaseKeywordUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Generic/Tests/PHP/LowerCaseTypeUnitTest.php b/src/Standards/Generic/Tests/PHP/LowerCaseTypeUnitTest.php index 63f3e353e2..19ba2c4eec 100644 --- a/src/Standards/Generic/Tests/PHP/LowerCaseTypeUnitTest.php +++ b/src/Standards/Generic/Tests/PHP/LowerCaseTypeUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Generic\Tests\PHP; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the LowerCaseType sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\LowerCaseTypeSniff */ -final class LowerCaseTypeUnitTest extends AbstractSniffUnitTest +final class LowerCaseTypeUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Generic/Tests/PHP/NoSilencedErrorsUnitTest.php b/src/Standards/Generic/Tests/PHP/NoSilencedErrorsUnitTest.php index b4e383c360..6f58988652 100644 --- a/src/Standards/Generic/Tests/PHP/NoSilencedErrorsUnitTest.php +++ b/src/Standards/Generic/Tests/PHP/NoSilencedErrorsUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Generic\Tests\PHP; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the NoSilencedErrors sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\NoSilencedErrorsSniff */ -final class NoSilencedErrorsUnitTest extends AbstractSniffUnitTest +final class NoSilencedErrorsUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Generic/Tests/PHP/RequireStrictTypesUnitTest.php b/src/Standards/Generic/Tests/PHP/RequireStrictTypesUnitTest.php index 9ef6ad8c4e..d9fc18e2c4 100644 --- a/src/Standards/Generic/Tests/PHP/RequireStrictTypesUnitTest.php +++ b/src/Standards/Generic/Tests/PHP/RequireStrictTypesUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Generic\Tests\PHP; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the RequireStrictType sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\RequireStrictTypesSniff */ -final class RequireStrictTypesUnitTest extends AbstractSniffUnitTest +final class RequireStrictTypesUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Generic/Tests/PHP/SAPIUsageUnitTest.php b/src/Standards/Generic/Tests/PHP/SAPIUsageUnitTest.php index 9ee274b6f1..42eac06ed2 100644 --- a/src/Standards/Generic/Tests/PHP/SAPIUsageUnitTest.php +++ b/src/Standards/Generic/Tests/PHP/SAPIUsageUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Generic\Tests\PHP; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the SAPIUsage sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\SAPIUsageSniff */ -final class SAPIUsageUnitTest extends AbstractSniffUnitTest +final class SAPIUsageUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Generic/Tests/PHP/SyntaxUnitTest.php b/src/Standards/Generic/Tests/PHP/SyntaxUnitTest.php index 58433eb1d1..728cb7eed9 100644 --- a/src/Standards/Generic/Tests/PHP/SyntaxUnitTest.php +++ b/src/Standards/Generic/Tests/PHP/SyntaxUnitTest.php @@ -10,14 +10,14 @@ namespace PHP_CodeSniffer\Standards\Generic\Tests\PHP; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the Syntax sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\SyntaxSniff */ -final class SyntaxUnitTest extends AbstractSniffUnitTest +final class SyntaxUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Generic/Tests/PHP/UpperCaseConstantUnitTest.php b/src/Standards/Generic/Tests/PHP/UpperCaseConstantUnitTest.php index 481c4ab1c7..6a90c1805e 100644 --- a/src/Standards/Generic/Tests/PHP/UpperCaseConstantUnitTest.php +++ b/src/Standards/Generic/Tests/PHP/UpperCaseConstantUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Generic\Tests\PHP; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the UpperCaseConstant sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\UpperCaseConstantSniff */ -final class UpperCaseConstantUnitTest extends AbstractSniffUnitTest +final class UpperCaseConstantUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Generic/Tests/Strings/UnnecessaryHeredocUnitTest.php b/src/Standards/Generic/Tests/Strings/UnnecessaryHeredocUnitTest.php index 09d44832ce..84b70ef2bf 100644 --- a/src/Standards/Generic/Tests/Strings/UnnecessaryHeredocUnitTest.php +++ b/src/Standards/Generic/Tests/Strings/UnnecessaryHeredocUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Generic\Tests\Strings; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the UnnecessaryHeredoc sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Strings\UnnecessaryHeredocSniff */ -final class UnnecessaryHeredocUnitTest extends AbstractSniffUnitTest +final class UnnecessaryHeredocUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Generic/Tests/Strings/UnnecessaryStringConcatUnitTest.php b/src/Standards/Generic/Tests/Strings/UnnecessaryStringConcatUnitTest.php index e0f02ac7e5..8075a0efe8 100644 --- a/src/Standards/Generic/Tests/Strings/UnnecessaryStringConcatUnitTest.php +++ b/src/Standards/Generic/Tests/Strings/UnnecessaryStringConcatUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Generic\Tests\Strings; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the UnnecessaryStringConcat sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Strings\UnnecessaryStringConcatSniff */ -final class UnnecessaryStringConcatUnitTest extends AbstractSniffUnitTest +final class UnnecessaryStringConcatUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Generic/Tests/VersionControl/GitMergeConflictUnitTest.php b/src/Standards/Generic/Tests/VersionControl/GitMergeConflictUnitTest.php index 8034191327..2b3d4db31b 100644 --- a/src/Standards/Generic/Tests/VersionControl/GitMergeConflictUnitTest.php +++ b/src/Standards/Generic/Tests/VersionControl/GitMergeConflictUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Generic\Tests\VersionControl; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the GitMergeConflict sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\VersionControl\GitMergeConflictSniff */ -final class GitMergeConflictUnitTest extends AbstractSniffUnitTest +final class GitMergeConflictUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Generic/Tests/VersionControl/SubversionPropertiesUnitTest.php b/src/Standards/Generic/Tests/VersionControl/SubversionPropertiesUnitTest.php index 7be9cc0ed5..30735a1441 100644 --- a/src/Standards/Generic/Tests/VersionControl/SubversionPropertiesUnitTest.php +++ b/src/Standards/Generic/Tests/VersionControl/SubversionPropertiesUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Generic\Tests\VersionControl; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the SubversionProperties sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\VersionControl\SubversionPropertiesSniff */ -final class SubversionPropertiesUnitTest extends AbstractSniffUnitTest +final class SubversionPropertiesUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Generic/Tests/WhiteSpace/ArbitraryParenthesesSpacingUnitTest.php b/src/Standards/Generic/Tests/WhiteSpace/ArbitraryParenthesesSpacingUnitTest.php index 64ca21a938..b14758a0fe 100644 --- a/src/Standards/Generic/Tests/WhiteSpace/ArbitraryParenthesesSpacingUnitTest.php +++ b/src/Standards/Generic/Tests/WhiteSpace/ArbitraryParenthesesSpacingUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Generic\Tests\WhiteSpace; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the ArbitraryParenthesesSpacing sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\WhiteSpace\ArbitraryParenthesesSpacingSniff */ -final class ArbitraryParenthesesSpacingUnitTest extends AbstractSniffUnitTest +final class ArbitraryParenthesesSpacingUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Generic/Tests/WhiteSpace/DisallowSpaceIndentUnitTest.php b/src/Standards/Generic/Tests/WhiteSpace/DisallowSpaceIndentUnitTest.php index d0ed07c9a2..267cfe1a90 100644 --- a/src/Standards/Generic/Tests/WhiteSpace/DisallowSpaceIndentUnitTest.php +++ b/src/Standards/Generic/Tests/WhiteSpace/DisallowSpaceIndentUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Generic\Tests\WhiteSpace; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the DisallowSpaceIndent sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\WhiteSpace\DisallowSpaceIndentSniff */ -final class DisallowSpaceIndentUnitTest extends AbstractSniffUnitTest +final class DisallowSpaceIndentUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Generic/Tests/WhiteSpace/DisallowTabIndentUnitTest.php b/src/Standards/Generic/Tests/WhiteSpace/DisallowTabIndentUnitTest.php index 4810195f39..c3d1747f24 100644 --- a/src/Standards/Generic/Tests/WhiteSpace/DisallowTabIndentUnitTest.php +++ b/src/Standards/Generic/Tests/WhiteSpace/DisallowTabIndentUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Generic\Tests\WhiteSpace; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the DisallowTabIndent sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\WhiteSpace\DisallowTabIndentSniff */ -final class DisallowTabIndentUnitTest extends AbstractSniffUnitTest +final class DisallowTabIndentUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Generic/Tests/WhiteSpace/HereNowdocIdentifierSpacingUnitTest.php b/src/Standards/Generic/Tests/WhiteSpace/HereNowdocIdentifierSpacingUnitTest.php index 3e3006f88a..e47266a823 100644 --- a/src/Standards/Generic/Tests/WhiteSpace/HereNowdocIdentifierSpacingUnitTest.php +++ b/src/Standards/Generic/Tests/WhiteSpace/HereNowdocIdentifierSpacingUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Generic\Tests\WhiteSpace; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the HereNowdocIdentifierSpacing sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\WhiteSpace\HereNowdocIdentifierSpacingSniff */ -final class HereNowdocIdentifierSpacingUnitTest extends AbstractSniffUnitTest +final class HereNowdocIdentifierSpacingUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Generic/Tests/WhiteSpace/IncrementDecrementSpacingUnitTest.php b/src/Standards/Generic/Tests/WhiteSpace/IncrementDecrementSpacingUnitTest.php index 0286b95408..1ba6de3f11 100644 --- a/src/Standards/Generic/Tests/WhiteSpace/IncrementDecrementSpacingUnitTest.php +++ b/src/Standards/Generic/Tests/WhiteSpace/IncrementDecrementSpacingUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Generic\Tests\WhiteSpace; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the IncrementDecrementSpacing sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\WhiteSpace\IncrementDecrementSpacingSniff */ -final class IncrementDecrementSpacingUnitTest extends AbstractSniffUnitTest +final class IncrementDecrementSpacingUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Generic/Tests/WhiteSpace/LanguageConstructSpacingUnitTest.php b/src/Standards/Generic/Tests/WhiteSpace/LanguageConstructSpacingUnitTest.php index 7a9c01ba0e..14d1f4c9bd 100644 --- a/src/Standards/Generic/Tests/WhiteSpace/LanguageConstructSpacingUnitTest.php +++ b/src/Standards/Generic/Tests/WhiteSpace/LanguageConstructSpacingUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Generic\Tests\WhiteSpace; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the LanguageConstructSpacing sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\WhiteSpace\LanguageConstructSpacingSniff */ -final class LanguageConstructSpacingUnitTest extends AbstractSniffUnitTest +final class LanguageConstructSpacingUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.php b/src/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.php index 576ebf4ee8..ac9a1723bf 100644 --- a/src/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.php +++ b/src/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Generic\Tests\WhiteSpace; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the ScopeIndent sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\WhiteSpace\ScopeIndentSniff */ -final class ScopeIndentUnitTest extends AbstractSniffUnitTest +final class ScopeIndentUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Generic/Tests/WhiteSpace/SpreadOperatorSpacingAfterUnitTest.php b/src/Standards/Generic/Tests/WhiteSpace/SpreadOperatorSpacingAfterUnitTest.php index 21774f8dc9..dc0b219607 100644 --- a/src/Standards/Generic/Tests/WhiteSpace/SpreadOperatorSpacingAfterUnitTest.php +++ b/src/Standards/Generic/Tests/WhiteSpace/SpreadOperatorSpacingAfterUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Generic\Tests\WhiteSpace; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the SpreadOperatorSpacingAfter sniff. * * @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\WhiteSpace\SpreadOperatorSpacingAfterSniff */ -final class SpreadOperatorSpacingAfterUnitTest extends AbstractSniffUnitTest +final class SpreadOperatorSpacingAfterUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/PEAR/Tests/Classes/ClassDeclarationUnitTest.php b/src/Standards/PEAR/Tests/Classes/ClassDeclarationUnitTest.php index c0461c0f2d..d80254150f 100644 --- a/src/Standards/PEAR/Tests/Classes/ClassDeclarationUnitTest.php +++ b/src/Standards/PEAR/Tests/Classes/ClassDeclarationUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\PEAR\Tests\Classes; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the ClassDeclaration sniff. * * @covers \PHP_CodeSniffer\Standards\PEAR\Sniffs\Classes\ClassDeclarationSniff */ -final class ClassDeclarationUnitTest extends AbstractSniffUnitTest +final class ClassDeclarationUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/PEAR/Tests/Commenting/ClassCommentUnitTest.php b/src/Standards/PEAR/Tests/Commenting/ClassCommentUnitTest.php index d60c0fe83a..e64a7e9890 100644 --- a/src/Standards/PEAR/Tests/Commenting/ClassCommentUnitTest.php +++ b/src/Standards/PEAR/Tests/Commenting/ClassCommentUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\PEAR\Tests\Commenting; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the ClassComment sniff. * * @covers \PHP_CodeSniffer\Standards\PEAR\Sniffs\Commenting\ClassCommentSniff */ -final class ClassCommentUnitTest extends AbstractSniffUnitTest +final class ClassCommentUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/PEAR/Tests/Commenting/FileCommentUnitTest.php b/src/Standards/PEAR/Tests/Commenting/FileCommentUnitTest.php index 661885d29f..c43eeb32b3 100644 --- a/src/Standards/PEAR/Tests/Commenting/FileCommentUnitTest.php +++ b/src/Standards/PEAR/Tests/Commenting/FileCommentUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\PEAR\Tests\Commenting; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the FileComment sniff. * * @covers \PHP_CodeSniffer\Standards\PEAR\Sniffs\Commenting\FileCommentSniff */ -final class FileCommentUnitTest extends AbstractSniffUnitTest +final class FileCommentUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/PEAR/Tests/Commenting/FunctionCommentUnitTest.php b/src/Standards/PEAR/Tests/Commenting/FunctionCommentUnitTest.php index 7dc2e4ae67..9202113943 100644 --- a/src/Standards/PEAR/Tests/Commenting/FunctionCommentUnitTest.php +++ b/src/Standards/PEAR/Tests/Commenting/FunctionCommentUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\PEAR\Tests\Commenting; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the FunctionComment sniff. * * @covers \PHP_CodeSniffer\Standards\PEAR\Sniffs\Commenting\FunctionCommentSniff */ -final class FunctionCommentUnitTest extends AbstractSniffUnitTest +final class FunctionCommentUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/PEAR/Tests/Commenting/InlineCommentUnitTest.php b/src/Standards/PEAR/Tests/Commenting/InlineCommentUnitTest.php index 7d107dd341..23974f152f 100644 --- a/src/Standards/PEAR/Tests/Commenting/InlineCommentUnitTest.php +++ b/src/Standards/PEAR/Tests/Commenting/InlineCommentUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\PEAR\Tests\Commenting; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the InlineComment sniff. * * @covers \PHP_CodeSniffer\Standards\PEAR\Sniffs\Commenting\InlineCommentSniff */ -final class InlineCommentUnitTest extends AbstractSniffUnitTest +final class InlineCommentUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/PEAR/Tests/ControlStructures/ControlSignatureUnitTest.php b/src/Standards/PEAR/Tests/ControlStructures/ControlSignatureUnitTest.php index b387a93e14..736858db37 100644 --- a/src/Standards/PEAR/Tests/ControlStructures/ControlSignatureUnitTest.php +++ b/src/Standards/PEAR/Tests/ControlStructures/ControlSignatureUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\PEAR\Tests\ControlStructures; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the ControlSignature sniff. * * @covers \PHP_CodeSniffer\Standards\PEAR\Sniffs\ControlStructures\ControlSignatureSniff */ -final class ControlSignatureUnitTest extends AbstractSniffUnitTest +final class ControlSignatureUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/PEAR/Tests/ControlStructures/MultiLineConditionUnitTest.php b/src/Standards/PEAR/Tests/ControlStructures/MultiLineConditionUnitTest.php index d4f7069f52..b76067ee62 100644 --- a/src/Standards/PEAR/Tests/ControlStructures/MultiLineConditionUnitTest.php +++ b/src/Standards/PEAR/Tests/ControlStructures/MultiLineConditionUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\PEAR\Tests\ControlStructures; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the MultiLineCondition sniff. * * @covers \PHP_CodeSniffer\Standards\PEAR\Sniffs\ControlStructures\MultiLineConditionSniff */ -final class MultiLineConditionUnitTest extends AbstractSniffUnitTest +final class MultiLineConditionUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/PEAR/Tests/Files/IncludingFileUnitTest.php b/src/Standards/PEAR/Tests/Files/IncludingFileUnitTest.php index 70d63ec428..2e27075073 100644 --- a/src/Standards/PEAR/Tests/Files/IncludingFileUnitTest.php +++ b/src/Standards/PEAR/Tests/Files/IncludingFileUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\PEAR\Tests\Files; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the IncludingFile sniff. * * @covers \PHP_CodeSniffer\Standards\PEAR\Sniffs\Files\IncludingFileSniff */ -final class IncludingFileUnitTest extends AbstractSniffUnitTest +final class IncludingFileUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/PEAR/Tests/Formatting/MultiLineAssignmentUnitTest.php b/src/Standards/PEAR/Tests/Formatting/MultiLineAssignmentUnitTest.php index 1be3296c58..ad23051c12 100644 --- a/src/Standards/PEAR/Tests/Formatting/MultiLineAssignmentUnitTest.php +++ b/src/Standards/PEAR/Tests/Formatting/MultiLineAssignmentUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\PEAR\Tests\Formatting; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the MultiLineAssignment sniff. * * @covers \PHP_CodeSniffer\Standards\PEAR\Sniffs\Formatting\MultiLineAssignmentSniff */ -final class MultiLineAssignmentUnitTest extends AbstractSniffUnitTest +final class MultiLineAssignmentUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/PEAR/Tests/Functions/FunctionCallSignatureUnitTest.php b/src/Standards/PEAR/Tests/Functions/FunctionCallSignatureUnitTest.php index 88e978d178..123dee3881 100644 --- a/src/Standards/PEAR/Tests/Functions/FunctionCallSignatureUnitTest.php +++ b/src/Standards/PEAR/Tests/Functions/FunctionCallSignatureUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\PEAR\Tests\Functions; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the FunctionCallSignature sniff. * * @covers \PHP_CodeSniffer\Standards\PEAR\Sniffs\Functions\FunctionCallSignatureSniff */ -final class FunctionCallSignatureUnitTest extends AbstractSniffUnitTest +final class FunctionCallSignatureUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/PEAR/Tests/Functions/FunctionDeclarationUnitTest.php b/src/Standards/PEAR/Tests/Functions/FunctionDeclarationUnitTest.php index e18075b65e..d3a3a2e26c 100644 --- a/src/Standards/PEAR/Tests/Functions/FunctionDeclarationUnitTest.php +++ b/src/Standards/PEAR/Tests/Functions/FunctionDeclarationUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\PEAR\Tests\Functions; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the FunctionDeclaration sniff. * * @covers \PHP_CodeSniffer\Standards\PEAR\Sniffs\Functions\FunctionDeclarationSniff */ -final class FunctionDeclarationUnitTest extends AbstractSniffUnitTest +final class FunctionDeclarationUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/PEAR/Tests/Functions/ValidDefaultValueUnitTest.php b/src/Standards/PEAR/Tests/Functions/ValidDefaultValueUnitTest.php index abc2e19d7a..27557fa6f8 100644 --- a/src/Standards/PEAR/Tests/Functions/ValidDefaultValueUnitTest.php +++ b/src/Standards/PEAR/Tests/Functions/ValidDefaultValueUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\PEAR\Tests\Functions; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the ValidDefaultValue sniff. * * @covers \PHP_CodeSniffer\Standards\PEAR\Sniffs\Functions\ValidDefaultValueSniff */ -final class ValidDefaultValueUnitTest extends AbstractSniffUnitTest +final class ValidDefaultValueUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/PEAR/Tests/NamingConventions/ValidClassNameUnitTest.php b/src/Standards/PEAR/Tests/NamingConventions/ValidClassNameUnitTest.php index 504e8d666c..7c8f43c38f 100644 --- a/src/Standards/PEAR/Tests/NamingConventions/ValidClassNameUnitTest.php +++ b/src/Standards/PEAR/Tests/NamingConventions/ValidClassNameUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\PEAR\Tests\NamingConventions; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the ValidClassName sniff. * * @covers \PHP_CodeSniffer\Standards\PEAR\Sniffs\NamingConventions\ValidClassNameSniff */ -final class ValidClassNameUnitTest extends AbstractSniffUnitTest +final class ValidClassNameUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/PEAR/Tests/NamingConventions/ValidFunctionNameUnitTest.php b/src/Standards/PEAR/Tests/NamingConventions/ValidFunctionNameUnitTest.php index 80a40d4840..a2157709d5 100644 --- a/src/Standards/PEAR/Tests/NamingConventions/ValidFunctionNameUnitTest.php +++ b/src/Standards/PEAR/Tests/NamingConventions/ValidFunctionNameUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\PEAR\Tests\NamingConventions; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the ValidFunctionName sniff. * * @covers \PHP_CodeSniffer\Standards\PEAR\Sniffs\NamingConventions\ValidFunctionNameSniff */ -final class ValidFunctionNameUnitTest extends AbstractSniffUnitTest +final class ValidFunctionNameUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/PEAR/Tests/NamingConventions/ValidVariableNameUnitTest.php b/src/Standards/PEAR/Tests/NamingConventions/ValidVariableNameUnitTest.php index bedc781bca..4c01c4f3c7 100644 --- a/src/Standards/PEAR/Tests/NamingConventions/ValidVariableNameUnitTest.php +++ b/src/Standards/PEAR/Tests/NamingConventions/ValidVariableNameUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\PEAR\Tests\NamingConventions; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the ValidVariableName sniff. * * @covers \PHP_CodeSniffer\Standards\PEAR\Sniffs\NamingConventions\ValidVariableNameSniff */ -final class ValidVariableNameUnitTest extends AbstractSniffUnitTest +final class ValidVariableNameUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/PEAR/Tests/WhiteSpace/ObjectOperatorIndentUnitTest.php b/src/Standards/PEAR/Tests/WhiteSpace/ObjectOperatorIndentUnitTest.php index 9beb77feab..4093a32fb5 100644 --- a/src/Standards/PEAR/Tests/WhiteSpace/ObjectOperatorIndentUnitTest.php +++ b/src/Standards/PEAR/Tests/WhiteSpace/ObjectOperatorIndentUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\PEAR\Tests\WhiteSpace; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the ObjectOperatorIndent sniff. * * @covers \PHP_CodeSniffer\Standards\PEAR\Sniffs\WhiteSpace\ObjectOperatorIndentSniff */ -final class ObjectOperatorIndentUnitTest extends AbstractSniffUnitTest +final class ObjectOperatorIndentUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/PEAR/Tests/WhiteSpace/ScopeClosingBraceUnitTest.php b/src/Standards/PEAR/Tests/WhiteSpace/ScopeClosingBraceUnitTest.php index c747c75bd8..cd29f138f7 100644 --- a/src/Standards/PEAR/Tests/WhiteSpace/ScopeClosingBraceUnitTest.php +++ b/src/Standards/PEAR/Tests/WhiteSpace/ScopeClosingBraceUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\PEAR\Tests\WhiteSpace; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the ScopeClosingBrace sniff. * * @covers \PHP_CodeSniffer\Standards\PEAR\Sniffs\WhiteSpace\ScopeClosingBraceSniff */ -final class ScopeClosingBraceUnitTest extends AbstractSniffUnitTest +final class ScopeClosingBraceUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/PEAR/Tests/WhiteSpace/ScopeIndentUnitTest.php b/src/Standards/PEAR/Tests/WhiteSpace/ScopeIndentUnitTest.php index 3c6fd4a5e5..c8975ab4af 100644 --- a/src/Standards/PEAR/Tests/WhiteSpace/ScopeIndentUnitTest.php +++ b/src/Standards/PEAR/Tests/WhiteSpace/ScopeIndentUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\PEAR\Tests\WhiteSpace; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the ScopeIndent sniff. * * @covers \PHP_CodeSniffer\Standards\PEAR\Sniffs\WhiteSpace\ScopeIndentSniff */ -final class ScopeIndentUnitTest extends AbstractSniffUnitTest +final class ScopeIndentUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/PSR1/Tests/Classes/ClassDeclarationUnitTest.php b/src/Standards/PSR1/Tests/Classes/ClassDeclarationUnitTest.php index b8c2b6cc32..e368be817d 100644 --- a/src/Standards/PSR1/Tests/Classes/ClassDeclarationUnitTest.php +++ b/src/Standards/PSR1/Tests/Classes/ClassDeclarationUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\PSR1\Tests\Classes; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the ClassDeclaration sniff. * * @covers \PHP_CodeSniffer\Standards\PSR1\Sniffs\Classes\ClassDeclarationSniff */ -final class ClassDeclarationUnitTest extends AbstractSniffUnitTest +final class ClassDeclarationUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/PSR1/Tests/Files/SideEffectsUnitTest.php b/src/Standards/PSR1/Tests/Files/SideEffectsUnitTest.php index c7408ad2ea..90f27b107a 100644 --- a/src/Standards/PSR1/Tests/Files/SideEffectsUnitTest.php +++ b/src/Standards/PSR1/Tests/Files/SideEffectsUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\PSR1\Tests\Files; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the SideEffects sniff. * * @covers \PHP_CodeSniffer\Standards\PSR1\Sniffs\Files\SideEffectsSniff */ -final class SideEffectsUnitTest extends AbstractSniffUnitTest +final class SideEffectsUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/PSR1/Tests/Methods/CamelCapsMethodNameUnitTest.php b/src/Standards/PSR1/Tests/Methods/CamelCapsMethodNameUnitTest.php index ffbbb36b8c..c50ff10f5c 100644 --- a/src/Standards/PSR1/Tests/Methods/CamelCapsMethodNameUnitTest.php +++ b/src/Standards/PSR1/Tests/Methods/CamelCapsMethodNameUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\PSR1\Tests\Methods; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the CamelCapsMethodName sniff. * * @covers \PHP_CodeSniffer\Standards\PSR1\Sniffs\Methods\CamelCapsMethodNameSniff */ -final class CamelCapsMethodNameUnitTest extends AbstractSniffUnitTest +final class CamelCapsMethodNameUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/PSR12/Tests/Classes/AnonClassDeclarationUnitTest.php b/src/Standards/PSR12/Tests/Classes/AnonClassDeclarationUnitTest.php index 240352704f..e4cef952fb 100644 --- a/src/Standards/PSR12/Tests/Classes/AnonClassDeclarationUnitTest.php +++ b/src/Standards/PSR12/Tests/Classes/AnonClassDeclarationUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\PSR12\Tests\Classes; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the AnonClassDeclaration sniff. * * @covers \PHP_CodeSniffer\Standards\PSR12\Sniffs\Classes\AnonClassDeclarationSniff */ -final class AnonClassDeclarationUnitTest extends AbstractSniffUnitTest +final class AnonClassDeclarationUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/PSR12/Tests/Classes/ClassInstantiationUnitTest.php b/src/Standards/PSR12/Tests/Classes/ClassInstantiationUnitTest.php index 103569211d..816cb3b2b4 100644 --- a/src/Standards/PSR12/Tests/Classes/ClassInstantiationUnitTest.php +++ b/src/Standards/PSR12/Tests/Classes/ClassInstantiationUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\PSR12\Tests\Classes; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the ClassInstantiation sniff. * * @covers \PHP_CodeSniffer\Standards\PSR12\Sniffs\Classes\ClassInstantiationSniff */ -final class ClassInstantiationUnitTest extends AbstractSniffUnitTest +final class ClassInstantiationUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/PSR12/Tests/Classes/ClosingBraceUnitTest.php b/src/Standards/PSR12/Tests/Classes/ClosingBraceUnitTest.php index 196de8f5fb..fb7ea880ea 100644 --- a/src/Standards/PSR12/Tests/Classes/ClosingBraceUnitTest.php +++ b/src/Standards/PSR12/Tests/Classes/ClosingBraceUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\PSR12\Tests\Classes; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the ClosingBrace sniff. * * @covers \PHP_CodeSniffer\Standards\PSR12\Sniffs\Classes\ClosingBraceSniff */ -final class ClosingBraceUnitTest extends AbstractSniffUnitTest +final class ClosingBraceUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/PSR12/Tests/Classes/OpeningBraceSpaceUnitTest.php b/src/Standards/PSR12/Tests/Classes/OpeningBraceSpaceUnitTest.php index c4315fb5cc..ebef4ac961 100644 --- a/src/Standards/PSR12/Tests/Classes/OpeningBraceSpaceUnitTest.php +++ b/src/Standards/PSR12/Tests/Classes/OpeningBraceSpaceUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\PSR12\Tests\Classes; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the OpeningBraceSpace sniff. * * @covers \PHP_CodeSniffer\Standards\PSR12\Sniffs\Classes\OpeningBraceSpaceSniff */ -final class OpeningBraceSpaceUnitTest extends AbstractSniffUnitTest +final class OpeningBraceSpaceUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/PSR12/Tests/ControlStructures/BooleanOperatorPlacementUnitTest.php b/src/Standards/PSR12/Tests/ControlStructures/BooleanOperatorPlacementUnitTest.php index 957ea546df..e1d1ca1185 100644 --- a/src/Standards/PSR12/Tests/ControlStructures/BooleanOperatorPlacementUnitTest.php +++ b/src/Standards/PSR12/Tests/ControlStructures/BooleanOperatorPlacementUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\PSR12\Tests\ControlStructures; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the BooleanOperatorPlacement sniff. * * @covers \PHP_CodeSniffer\Standards\PSR12\Sniffs\ControlStructures\BooleanOperatorPlacementSniff */ -final class BooleanOperatorPlacementUnitTest extends AbstractSniffUnitTest +final class BooleanOperatorPlacementUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/PSR12/Tests/ControlStructures/ControlStructureSpacingUnitTest.php b/src/Standards/PSR12/Tests/ControlStructures/ControlStructureSpacingUnitTest.php index 3763b5d3c6..27284d8b0c 100644 --- a/src/Standards/PSR12/Tests/ControlStructures/ControlStructureSpacingUnitTest.php +++ b/src/Standards/PSR12/Tests/ControlStructures/ControlStructureSpacingUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\PSR12\Tests\ControlStructures; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the ControlStructureSpacing sniff. * * @covers \PHP_CodeSniffer\Standards\PSR12\Sniffs\ControlStructures\ControlStructureSpacingSniff */ -final class ControlStructureSpacingUnitTest extends AbstractSniffUnitTest +final class ControlStructureSpacingUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/PSR12/Tests/Files/DeclareStatementUnitTest.php b/src/Standards/PSR12/Tests/Files/DeclareStatementUnitTest.php index 84d31447d1..6aeed97ab6 100644 --- a/src/Standards/PSR12/Tests/Files/DeclareStatementUnitTest.php +++ b/src/Standards/PSR12/Tests/Files/DeclareStatementUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\PSR12\Tests\Files; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the DeclareStatement sniff. * * @covers \PHP_CodeSniffer\Standards\PSR12\Sniffs\Files\DeclareStatementSniff */ -final class DeclareStatementUnitTest extends AbstractSniffUnitTest +final class DeclareStatementUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/PSR12/Tests/Files/FileHeaderUnitTest.php b/src/Standards/PSR12/Tests/Files/FileHeaderUnitTest.php index 01122342a3..82356bcfdc 100644 --- a/src/Standards/PSR12/Tests/Files/FileHeaderUnitTest.php +++ b/src/Standards/PSR12/Tests/Files/FileHeaderUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\PSR12\Tests\Files; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the FileHeader sniff. * * @covers \PHP_CodeSniffer\Standards\PSR12\Sniffs\Files\FileHeaderSniff */ -final class FileHeaderUnitTest extends AbstractSniffUnitTest +final class FileHeaderUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/PSR12/Tests/Files/ImportStatementUnitTest.php b/src/Standards/PSR12/Tests/Files/ImportStatementUnitTest.php index e82667b5a5..b5e6cda2b5 100644 --- a/src/Standards/PSR12/Tests/Files/ImportStatementUnitTest.php +++ b/src/Standards/PSR12/Tests/Files/ImportStatementUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\PSR12\Tests\Files; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the ImportStatement sniff. * * @covers \PHP_CodeSniffer\Standards\PSR12\Sniffs\Files\ImportStatementSniff */ -final class ImportStatementUnitTest extends AbstractSniffUnitTest +final class ImportStatementUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/PSR12/Tests/Files/OpenTagUnitTest.php b/src/Standards/PSR12/Tests/Files/OpenTagUnitTest.php index 898334e443..c9d8b4dc63 100644 --- a/src/Standards/PSR12/Tests/Files/OpenTagUnitTest.php +++ b/src/Standards/PSR12/Tests/Files/OpenTagUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\PSR12\Tests\Files; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the OpenTag sniff. * * @covers \PHP_CodeSniffer\Standards\PSR12\Sniffs\Files\OpenTagSniff */ -final class OpenTagUnitTest extends AbstractSniffUnitTest +final class OpenTagUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/PSR12/Tests/Functions/NullableTypeDeclarationUnitTest.php b/src/Standards/PSR12/Tests/Functions/NullableTypeDeclarationUnitTest.php index 828ec4d8c7..6b15a963c6 100644 --- a/src/Standards/PSR12/Tests/Functions/NullableTypeDeclarationUnitTest.php +++ b/src/Standards/PSR12/Tests/Functions/NullableTypeDeclarationUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\PSR12\Tests\Functions; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the NullableWhitespace sniff. * * @covers \PHP_CodeSniffer\Standards\PSR12\Sniffs\Functions\NullableTypeDeclarationSniff */ -final class NullableTypeDeclarationUnitTest extends AbstractSniffUnitTest +final class NullableTypeDeclarationUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/PSR12/Tests/Functions/ReturnTypeDeclarationUnitTest.php b/src/Standards/PSR12/Tests/Functions/ReturnTypeDeclarationUnitTest.php index d2962e8d13..20dffaf3ba 100644 --- a/src/Standards/PSR12/Tests/Functions/ReturnTypeDeclarationUnitTest.php +++ b/src/Standards/PSR12/Tests/Functions/ReturnTypeDeclarationUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\PSR12\Tests\Functions; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the ReturnTypeDeclaration sniff. * * @covers \PHP_CodeSniffer\Standards\PSR12\Sniffs\Functions\ReturnTypeDeclarationSniff */ -final class ReturnTypeDeclarationUnitTest extends AbstractSniffUnitTest +final class ReturnTypeDeclarationUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/PSR12/Tests/Keywords/ShortFormTypeKeywordsUnitTest.php b/src/Standards/PSR12/Tests/Keywords/ShortFormTypeKeywordsUnitTest.php index e0fc38f475..6b56dfb693 100644 --- a/src/Standards/PSR12/Tests/Keywords/ShortFormTypeKeywordsUnitTest.php +++ b/src/Standards/PSR12/Tests/Keywords/ShortFormTypeKeywordsUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\PSR12\Tests\Keywords; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the ShortFormTypeKeywords sniff. * * @covers \PHP_CodeSniffer\Standards\PSR12\Sniffs\Keywords\ShortFormTypeKeywordsSniff */ -final class ShortFormTypeKeywordsUnitTest extends AbstractSniffUnitTest +final class ShortFormTypeKeywordsUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/PSR12/Tests/Namespaces/CompoundNamespaceDepthUnitTest.php b/src/Standards/PSR12/Tests/Namespaces/CompoundNamespaceDepthUnitTest.php index 4ad77882e6..787b4dec9f 100644 --- a/src/Standards/PSR12/Tests/Namespaces/CompoundNamespaceDepthUnitTest.php +++ b/src/Standards/PSR12/Tests/Namespaces/CompoundNamespaceDepthUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\PSR12\Tests\Namespaces; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the CompoundNamespaceDepth sniff. * * @covers \PHP_CodeSniffer\Standards\PSR12\Sniffs\Namespaces\CompoundNamespaceDepthSniff */ -final class CompoundNamespaceDepthUnitTest extends AbstractSniffUnitTest +final class CompoundNamespaceDepthUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/PSR12/Tests/Operators/OperatorSpacingUnitTest.php b/src/Standards/PSR12/Tests/Operators/OperatorSpacingUnitTest.php index 4affd51c57..c345538df0 100644 --- a/src/Standards/PSR12/Tests/Operators/OperatorSpacingUnitTest.php +++ b/src/Standards/PSR12/Tests/Operators/OperatorSpacingUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\PSR12\Tests\Operators; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the OperatorSpacing sniff. * * @covers \PHP_CodeSniffer\Standards\PSR12\Sniffs\Operators\OperatorSpacingSniff */ -final class OperatorSpacingUnitTest extends AbstractSniffUnitTest +final class OperatorSpacingUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/PSR12/Tests/Properties/ConstantVisibilityUnitTest.php b/src/Standards/PSR12/Tests/Properties/ConstantVisibilityUnitTest.php index 6c39e7cc6b..6e0ed15e4a 100644 --- a/src/Standards/PSR12/Tests/Properties/ConstantVisibilityUnitTest.php +++ b/src/Standards/PSR12/Tests/Properties/ConstantVisibilityUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\PSR12\Tests\Properties; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the ConstantVisibility sniff. * * @covers \PHP_CodeSniffer\Standards\PSR12\Sniffs\Properties\ConstantVisibilitySniff */ -final class ConstantVisibilityUnitTest extends AbstractSniffUnitTest +final class ConstantVisibilityUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/PSR12/Tests/Traits/UseDeclarationUnitTest.php b/src/Standards/PSR12/Tests/Traits/UseDeclarationUnitTest.php index 383d59c816..0ab72b9c7f 100644 --- a/src/Standards/PSR12/Tests/Traits/UseDeclarationUnitTest.php +++ b/src/Standards/PSR12/Tests/Traits/UseDeclarationUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\PSR12\Tests\Traits; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the UseDeclaration sniff. * * @covers \PHP_CodeSniffer\Standards\PSR12\Sniffs\Traits\UseDeclarationSniff */ -final class UseDeclarationUnitTest extends AbstractSniffUnitTest +final class UseDeclarationUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/PSR2/Tests/Classes/ClassDeclarationUnitTest.php b/src/Standards/PSR2/Tests/Classes/ClassDeclarationUnitTest.php index 9ec30ba2a9..1f51327caf 100644 --- a/src/Standards/PSR2/Tests/Classes/ClassDeclarationUnitTest.php +++ b/src/Standards/PSR2/Tests/Classes/ClassDeclarationUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\PSR2\Tests\Classes; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the ClassDeclaration sniff. * * @covers \PHP_CodeSniffer\Standards\PSR2\Sniffs\Classes\ClassDeclarationSniff */ -final class ClassDeclarationUnitTest extends AbstractSniffUnitTest +final class ClassDeclarationUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/PSR2/Tests/Classes/PropertyDeclarationUnitTest.php b/src/Standards/PSR2/Tests/Classes/PropertyDeclarationUnitTest.php index ca7d6a702b..0ecde11b01 100644 --- a/src/Standards/PSR2/Tests/Classes/PropertyDeclarationUnitTest.php +++ b/src/Standards/PSR2/Tests/Classes/PropertyDeclarationUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\PSR2\Tests\Classes; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the PropertyDeclaration sniff. * * @covers \PHP_CodeSniffer\Standards\PSR2\Sniffs\Classes\PropertyDeclarationSniff */ -final class PropertyDeclarationUnitTest extends AbstractSniffUnitTest +final class PropertyDeclarationUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/PSR2/Tests/ControlStructures/ControlStructureSpacingUnitTest.php b/src/Standards/PSR2/Tests/ControlStructures/ControlStructureSpacingUnitTest.php index a8ab73e1ab..4abd793a08 100644 --- a/src/Standards/PSR2/Tests/ControlStructures/ControlStructureSpacingUnitTest.php +++ b/src/Standards/PSR2/Tests/ControlStructures/ControlStructureSpacingUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\PSR2\Tests\ControlStructures; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the FunctionSpacing sniff. * * @covers \PHP_CodeSniffer\Standards\PSR2\Sniffs\ControlStructures\ControlStructureSpacingSniff */ -final class ControlStructureSpacingUnitTest extends AbstractSniffUnitTest +final class ControlStructureSpacingUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/PSR2/Tests/ControlStructures/ElseIfDeclarationUnitTest.php b/src/Standards/PSR2/Tests/ControlStructures/ElseIfDeclarationUnitTest.php index 79d46542f7..f62d7654b9 100644 --- a/src/Standards/PSR2/Tests/ControlStructures/ElseIfDeclarationUnitTest.php +++ b/src/Standards/PSR2/Tests/ControlStructures/ElseIfDeclarationUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\PSR2\Tests\ControlStructures; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the ElseIfDeclaration sniff. * * @covers \PHP_CodeSniffer\Standards\PSR2\Sniffs\ControlStructures\ElseIfDeclarationSniff */ -final class ElseIfDeclarationUnitTest extends AbstractSniffUnitTest +final class ElseIfDeclarationUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/PSR2/Tests/ControlStructures/SwitchDeclarationUnitTest.php b/src/Standards/PSR2/Tests/ControlStructures/SwitchDeclarationUnitTest.php index a292503dcc..6e4ea9393d 100644 --- a/src/Standards/PSR2/Tests/ControlStructures/SwitchDeclarationUnitTest.php +++ b/src/Standards/PSR2/Tests/ControlStructures/SwitchDeclarationUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\PSR2\Tests\ControlStructures; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the SwitchDeclaration sniff. * * @covers \PHP_CodeSniffer\Standards\PSR2\Sniffs\ControlStructures\SwitchDeclarationSniff */ -final class SwitchDeclarationUnitTest extends AbstractSniffUnitTest +final class SwitchDeclarationUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/PSR2/Tests/Files/ClosingTagUnitTest.php b/src/Standards/PSR2/Tests/Files/ClosingTagUnitTest.php index 85ba6e34bb..26b8f9fe2c 100644 --- a/src/Standards/PSR2/Tests/Files/ClosingTagUnitTest.php +++ b/src/Standards/PSR2/Tests/Files/ClosingTagUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\PSR2\Tests\Files; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the ClosingTag sniff. * * @covers \PHP_CodeSniffer\Standards\PSR2\Sniffs\Files\ClosingTagSniff */ -final class ClosingTagUnitTest extends AbstractSniffUnitTest +final class ClosingTagUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.php b/src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.php index 9a983e8001..d631c1e490 100644 --- a/src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.php +++ b/src/Standards/PSR2/Tests/Files/EndFileNewlineUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\PSR2\Tests\Files; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the EndFileNewline sniff. * * @covers \PHP_CodeSniffer\Standards\PSR2\Sniffs\Files\EndFileNewlineSniff */ -final class EndFileNewlineUnitTest extends AbstractSniffUnitTest +final class EndFileNewlineUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/PSR2/Tests/Methods/FunctionCallSignatureUnitTest.php b/src/Standards/PSR2/Tests/Methods/FunctionCallSignatureUnitTest.php index 52cda17467..6799cad080 100644 --- a/src/Standards/PSR2/Tests/Methods/FunctionCallSignatureUnitTest.php +++ b/src/Standards/PSR2/Tests/Methods/FunctionCallSignatureUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\PSR2\Tests\Methods; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the FunctionCallSignature sniff. * * @covers \PHP_CodeSniffer\Standards\PSR2\Sniffs\Methods\FunctionCallSignatureSniff */ -final class FunctionCallSignatureUnitTest extends AbstractSniffUnitTest +final class FunctionCallSignatureUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/PSR2/Tests/Methods/FunctionClosingBraceUnitTest.php b/src/Standards/PSR2/Tests/Methods/FunctionClosingBraceUnitTest.php index d6886ac958..d2a171daee 100644 --- a/src/Standards/PSR2/Tests/Methods/FunctionClosingBraceUnitTest.php +++ b/src/Standards/PSR2/Tests/Methods/FunctionClosingBraceUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\PSR2\Tests\Methods; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the FunctionClosingBrace sniff. * * @covers \PHP_CodeSniffer\Standards\PSR2\Sniffs\Methods\FunctionClosingBraceSniff */ -final class FunctionClosingBraceUnitTest extends AbstractSniffUnitTest +final class FunctionClosingBraceUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/PSR2/Tests/Methods/MethodDeclarationUnitTest.php b/src/Standards/PSR2/Tests/Methods/MethodDeclarationUnitTest.php index 3654a0f647..6841499546 100644 --- a/src/Standards/PSR2/Tests/Methods/MethodDeclarationUnitTest.php +++ b/src/Standards/PSR2/Tests/Methods/MethodDeclarationUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\PSR2\Tests\Methods; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the MethodDeclaration sniff. * * @covers \PHP_CodeSniffer\Standards\PSR2\Sniffs\Methods\MethodDeclarationSniff */ -final class MethodDeclarationUnitTest extends AbstractSniffUnitTest +final class MethodDeclarationUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/PSR2/Tests/Namespaces/NamespaceDeclarationUnitTest.php b/src/Standards/PSR2/Tests/Namespaces/NamespaceDeclarationUnitTest.php index e42822622d..d5c1cc452f 100644 --- a/src/Standards/PSR2/Tests/Namespaces/NamespaceDeclarationUnitTest.php +++ b/src/Standards/PSR2/Tests/Namespaces/NamespaceDeclarationUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\PSR2\Tests\Namespaces; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the NamespaceDeclaration sniff. * * @covers \PHP_CodeSniffer\Standards\PSR2\Sniffs\Namespaces\NamespaceDeclarationSniff */ -final class NamespaceDeclarationUnitTest extends AbstractSniffUnitTest +final class NamespaceDeclarationUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.php b/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.php index 9282994809..6602ebb9ef 100644 --- a/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.php +++ b/src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\PSR2\Tests\Namespaces; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the UseDeclaration sniff. * * @covers \PHP_CodeSniffer\Standards\PSR2\Sniffs\Namespaces\UseDeclarationSniff */ -final class UseDeclarationUnitTest extends AbstractSniffUnitTest +final class UseDeclarationUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Squiz/Tests/Arrays/ArrayBracketSpacingUnitTest.php b/src/Standards/Squiz/Tests/Arrays/ArrayBracketSpacingUnitTest.php index 0e687b800f..8d562ec418 100644 --- a/src/Standards/Squiz/Tests/Arrays/ArrayBracketSpacingUnitTest.php +++ b/src/Standards/Squiz/Tests/Arrays/ArrayBracketSpacingUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Squiz\Tests\Arrays; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the ArrayBracketSpacing sniff. * * @covers \PHP_CodeSniffer\Standards\Squiz\Sniffs\Arrays\ArrayBracketSpacingSniff */ -final class ArrayBracketSpacingUnitTest extends AbstractSniffUnitTest +final class ArrayBracketSpacingUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Squiz/Tests/Arrays/ArrayDeclarationUnitTest.php b/src/Standards/Squiz/Tests/Arrays/ArrayDeclarationUnitTest.php index d173cc2445..44b0b1ef0c 100644 --- a/src/Standards/Squiz/Tests/Arrays/ArrayDeclarationUnitTest.php +++ b/src/Standards/Squiz/Tests/Arrays/ArrayDeclarationUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Squiz\Tests\Arrays; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the ArrayDeclaration sniff. * * @covers \PHP_CodeSniffer\Standards\Squiz\Sniffs\Arrays\ArrayDeclarationSniff */ -final class ArrayDeclarationUnitTest extends AbstractSniffUnitTest +final class ArrayDeclarationUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Squiz/Tests/Classes/ClassDeclarationUnitTest.php b/src/Standards/Squiz/Tests/Classes/ClassDeclarationUnitTest.php index be3fd59970..5f503b627c 100644 --- a/src/Standards/Squiz/Tests/Classes/ClassDeclarationUnitTest.php +++ b/src/Standards/Squiz/Tests/Classes/ClassDeclarationUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Squiz\Tests\Classes; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the ClassDeclaration sniff. * * @covers \PHP_CodeSniffer\Standards\Squiz\Sniffs\Classes\ClassDeclarationSniff */ -final class ClassDeclarationUnitTest extends AbstractSniffUnitTest +final class ClassDeclarationUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Squiz/Tests/Classes/ClassFileNameUnitTest.php b/src/Standards/Squiz/Tests/Classes/ClassFileNameUnitTest.php index 2678a05267..056a71b364 100644 --- a/src/Standards/Squiz/Tests/Classes/ClassFileNameUnitTest.php +++ b/src/Standards/Squiz/Tests/Classes/ClassFileNameUnitTest.php @@ -10,14 +10,14 @@ namespace PHP_CodeSniffer\Standards\Squiz\Tests\Classes; use DirectoryIterator; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the ClassFileName sniff. * * @covers \PHP_CodeSniffer\Standards\Squiz\Sniffs\Classes\ClassFileNameSniff */ -final class ClassFileNameUnitTest extends AbstractSniffUnitTest +final class ClassFileNameUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Squiz/Tests/Classes/LowercaseClassKeywordsUnitTest.php b/src/Standards/Squiz/Tests/Classes/LowercaseClassKeywordsUnitTest.php index 0bf0010b84..3b264e509d 100644 --- a/src/Standards/Squiz/Tests/Classes/LowercaseClassKeywordsUnitTest.php +++ b/src/Standards/Squiz/Tests/Classes/LowercaseClassKeywordsUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Squiz\Tests\Classes; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the LowercaseClassKeywords sniff. * * @covers \PHP_CodeSniffer\Standards\Squiz\Sniffs\Classes\LowercaseClassKeywordsSniff */ -final class LowercaseClassKeywordsUnitTest extends AbstractSniffUnitTest +final class LowercaseClassKeywordsUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Squiz/Tests/Classes/SelfMemberReferenceUnitTest.php b/src/Standards/Squiz/Tests/Classes/SelfMemberReferenceUnitTest.php index 84b9c15e55..0f4aa5cf6a 100644 --- a/src/Standards/Squiz/Tests/Classes/SelfMemberReferenceUnitTest.php +++ b/src/Standards/Squiz/Tests/Classes/SelfMemberReferenceUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Squiz\Tests\Classes; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the SelfMemberReference sniff. * * @covers \PHP_CodeSniffer\Standards\Squiz\Sniffs\Classes\SelfMemberReferenceSniff */ -final class SelfMemberReferenceUnitTest extends AbstractSniffUnitTest +final class SelfMemberReferenceUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Squiz/Tests/Classes/ValidClassNameUnitTest.php b/src/Standards/Squiz/Tests/Classes/ValidClassNameUnitTest.php index d23816591b..dec6113dc2 100644 --- a/src/Standards/Squiz/Tests/Classes/ValidClassNameUnitTest.php +++ b/src/Standards/Squiz/Tests/Classes/ValidClassNameUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Squiz\Tests\Classes; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the ValidClassName sniff. * * @covers \PHP_CodeSniffer\Standards\Squiz\Sniffs\Classes\ValidClassNameSniff */ -final class ValidClassNameUnitTest extends AbstractSniffUnitTest +final class ValidClassNameUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Squiz/Tests/Commenting/BlockCommentUnitTest.php b/src/Standards/Squiz/Tests/Commenting/BlockCommentUnitTest.php index 3027d6b195..16c9edb5cd 100644 --- a/src/Standards/Squiz/Tests/Commenting/BlockCommentUnitTest.php +++ b/src/Standards/Squiz/Tests/Commenting/BlockCommentUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Squiz\Tests\Commenting; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the BlockComment sniff. * * @covers \PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting\BlockCommentSniff */ -final class BlockCommentUnitTest extends AbstractSniffUnitTest +final class BlockCommentUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Squiz/Tests/Commenting/ClassCommentUnitTest.php b/src/Standards/Squiz/Tests/Commenting/ClassCommentUnitTest.php index 05f9e8a0f7..457b91d826 100644 --- a/src/Standards/Squiz/Tests/Commenting/ClassCommentUnitTest.php +++ b/src/Standards/Squiz/Tests/Commenting/ClassCommentUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Squiz\Tests\Commenting; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the ClassComment sniff. * * @covers \PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting\ClassCommentSniff */ -final class ClassCommentUnitTest extends AbstractSniffUnitTest +final class ClassCommentUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Squiz/Tests/Commenting/ClosingDeclarationCommentUnitTest.php b/src/Standards/Squiz/Tests/Commenting/ClosingDeclarationCommentUnitTest.php index 2680eda7ad..818a5b873f 100644 --- a/src/Standards/Squiz/Tests/Commenting/ClosingDeclarationCommentUnitTest.php +++ b/src/Standards/Squiz/Tests/Commenting/ClosingDeclarationCommentUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Squiz\Tests\Commenting; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the ClosingDeclarationComment sniff. * * @covers \PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting\ClosingDeclarationCommentSniff */ -final class ClosingDeclarationCommentUnitTest extends AbstractSniffUnitTest +final class ClosingDeclarationCommentUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Squiz/Tests/Commenting/DocCommentAlignmentUnitTest.php b/src/Standards/Squiz/Tests/Commenting/DocCommentAlignmentUnitTest.php index 56e217045b..c73d964026 100644 --- a/src/Standards/Squiz/Tests/Commenting/DocCommentAlignmentUnitTest.php +++ b/src/Standards/Squiz/Tests/Commenting/DocCommentAlignmentUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Squiz\Tests\Commenting; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the DocCommentAlignment sniff. * * @covers \PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting\DocCommentAlignmentSniff */ -final class DocCommentAlignmentUnitTest extends AbstractSniffUnitTest +final class DocCommentAlignmentUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Squiz/Tests/Commenting/EmptyCatchCommentUnitTest.php b/src/Standards/Squiz/Tests/Commenting/EmptyCatchCommentUnitTest.php index 06c308e016..9255b5d5f3 100644 --- a/src/Standards/Squiz/Tests/Commenting/EmptyCatchCommentUnitTest.php +++ b/src/Standards/Squiz/Tests/Commenting/EmptyCatchCommentUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Squiz\Tests\Commenting; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the EmptyCatchComment sniff. * * @covers \PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting\EmptyCatchCommentSniff */ -final class EmptyCatchCommentUnitTest extends AbstractSniffUnitTest +final class EmptyCatchCommentUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Squiz/Tests/Commenting/FileCommentUnitTest.php b/src/Standards/Squiz/Tests/Commenting/FileCommentUnitTest.php index 98e38ced87..43905bd669 100644 --- a/src/Standards/Squiz/Tests/Commenting/FileCommentUnitTest.php +++ b/src/Standards/Squiz/Tests/Commenting/FileCommentUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Squiz\Tests\Commenting; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the FileComment sniff. * * @covers \PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting\FileCommentSniff */ -final class FileCommentUnitTest extends AbstractSniffUnitTest +final class FileCommentUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Squiz/Tests/Commenting/FunctionCommentThrowTagUnitTest.php b/src/Standards/Squiz/Tests/Commenting/FunctionCommentThrowTagUnitTest.php index e34af8a7f7..aa1d4d29a8 100644 --- a/src/Standards/Squiz/Tests/Commenting/FunctionCommentThrowTagUnitTest.php +++ b/src/Standards/Squiz/Tests/Commenting/FunctionCommentThrowTagUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Squiz\Tests\Commenting; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the FunctionCommentThrowTag sniff. * * @covers \PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting\FunctionCommentThrowTagSniff */ -final class FunctionCommentThrowTagUnitTest extends AbstractSniffUnitTest +final class FunctionCommentThrowTagUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Squiz/Tests/Commenting/FunctionCommentUnitTest.php b/src/Standards/Squiz/Tests/Commenting/FunctionCommentUnitTest.php index 977220822c..580981eae7 100644 --- a/src/Standards/Squiz/Tests/Commenting/FunctionCommentUnitTest.php +++ b/src/Standards/Squiz/Tests/Commenting/FunctionCommentUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Squiz\Tests\Commenting; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the FunctionComment sniff. * * @covers \PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting\FunctionCommentSniff */ -final class FunctionCommentUnitTest extends AbstractSniffUnitTest +final class FunctionCommentUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Squiz/Tests/Commenting/InlineCommentUnitTest.php b/src/Standards/Squiz/Tests/Commenting/InlineCommentUnitTest.php index b1fdef8938..f8a56b29da 100644 --- a/src/Standards/Squiz/Tests/Commenting/InlineCommentUnitTest.php +++ b/src/Standards/Squiz/Tests/Commenting/InlineCommentUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Squiz\Tests\Commenting; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the InlineComment sniff. * * @covers \PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting\InlineCommentSniff */ -final class InlineCommentUnitTest extends AbstractSniffUnitTest +final class InlineCommentUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Squiz/Tests/Commenting/LongConditionClosingCommentUnitTest.php b/src/Standards/Squiz/Tests/Commenting/LongConditionClosingCommentUnitTest.php index 206b31c9a9..71a5c577be 100644 --- a/src/Standards/Squiz/Tests/Commenting/LongConditionClosingCommentUnitTest.php +++ b/src/Standards/Squiz/Tests/Commenting/LongConditionClosingCommentUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Squiz\Tests\Commenting; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the LongConditionClosingComment sniff. * * @covers \PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting\LongConditionClosingCommentSniff */ -final class LongConditionClosingCommentUnitTest extends AbstractSniffUnitTest +final class LongConditionClosingCommentUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Squiz/Tests/Commenting/PostStatementCommentUnitTest.php b/src/Standards/Squiz/Tests/Commenting/PostStatementCommentUnitTest.php index 192b5e00e9..4cf17c2825 100644 --- a/src/Standards/Squiz/Tests/Commenting/PostStatementCommentUnitTest.php +++ b/src/Standards/Squiz/Tests/Commenting/PostStatementCommentUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Squiz\Tests\Commenting; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the PostStatementComment sniff. * * @covers \PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting\PostStatementCommentSniff */ -final class PostStatementCommentUnitTest extends AbstractSniffUnitTest +final class PostStatementCommentUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Squiz/Tests/Commenting/VariableCommentUnitTest.php b/src/Standards/Squiz/Tests/Commenting/VariableCommentUnitTest.php index 965e3c0310..4af31197ae 100644 --- a/src/Standards/Squiz/Tests/Commenting/VariableCommentUnitTest.php +++ b/src/Standards/Squiz/Tests/Commenting/VariableCommentUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Squiz\Tests\Commenting; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the VariableComment sniff. * * @covers \PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting\VariableCommentSniff */ -final class VariableCommentUnitTest extends AbstractSniffUnitTest +final class VariableCommentUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Squiz/Tests/ControlStructures/ControlSignatureUnitTest.php b/src/Standards/Squiz/Tests/ControlStructures/ControlSignatureUnitTest.php index bd6b5cba9c..683c7714c7 100644 --- a/src/Standards/Squiz/Tests/ControlStructures/ControlSignatureUnitTest.php +++ b/src/Standards/Squiz/Tests/ControlStructures/ControlSignatureUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Squiz\Tests\ControlStructures; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the ControlSignature sniff. * * @covers \PHP_CodeSniffer\Standards\Squiz\Sniffs\ControlStructures\ControlSignatureSniff */ -final class ControlSignatureUnitTest extends AbstractSniffUnitTest +final class ControlSignatureUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Squiz/Tests/ControlStructures/ElseIfDeclarationUnitTest.php b/src/Standards/Squiz/Tests/ControlStructures/ElseIfDeclarationUnitTest.php index 469a942eb5..a1f490c7bf 100644 --- a/src/Standards/Squiz/Tests/ControlStructures/ElseIfDeclarationUnitTest.php +++ b/src/Standards/Squiz/Tests/ControlStructures/ElseIfDeclarationUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Squiz\Tests\ControlStructures; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the ElseIfDeclaration sniff. * * @covers \PHP_CodeSniffer\Standards\Squiz\Sniffs\ControlStructures\ElseIfDeclarationSniff */ -final class ElseIfDeclarationUnitTest extends AbstractSniffUnitTest +final class ElseIfDeclarationUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Squiz/Tests/ControlStructures/ForEachLoopDeclarationUnitTest.php b/src/Standards/Squiz/Tests/ControlStructures/ForEachLoopDeclarationUnitTest.php index 5e70703ed2..ac2d48ac72 100644 --- a/src/Standards/Squiz/Tests/ControlStructures/ForEachLoopDeclarationUnitTest.php +++ b/src/Standards/Squiz/Tests/ControlStructures/ForEachLoopDeclarationUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Squiz\Tests\ControlStructures; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the ForEachLoopDeclaration sniff. * * @covers \PHP_CodeSniffer\Standards\Squiz\Sniffs\ControlStructures\ForEachLoopDeclarationSniff */ -final class ForEachLoopDeclarationUnitTest extends AbstractSniffUnitTest +final class ForEachLoopDeclarationUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Squiz/Tests/ControlStructures/ForLoopDeclarationUnitTest.php b/src/Standards/Squiz/Tests/ControlStructures/ForLoopDeclarationUnitTest.php index fe13da8271..8ea3b71a72 100644 --- a/src/Standards/Squiz/Tests/ControlStructures/ForLoopDeclarationUnitTest.php +++ b/src/Standards/Squiz/Tests/ControlStructures/ForLoopDeclarationUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Squiz\Tests\ControlStructures; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the ForLoopDeclaration sniff. * * @covers \PHP_CodeSniffer\Standards\Squiz\Sniffs\ControlStructures\ForLoopDeclarationSniff */ -final class ForLoopDeclarationUnitTest extends AbstractSniffUnitTest +final class ForLoopDeclarationUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Squiz/Tests/ControlStructures/InlineIfDeclarationUnitTest.php b/src/Standards/Squiz/Tests/ControlStructures/InlineIfDeclarationUnitTest.php index dc4738e0ad..01c5b49e4c 100644 --- a/src/Standards/Squiz/Tests/ControlStructures/InlineIfDeclarationUnitTest.php +++ b/src/Standards/Squiz/Tests/ControlStructures/InlineIfDeclarationUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Squiz\Tests\ControlStructures; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the InlineIfDeclaration sniff. * * @covers \PHP_CodeSniffer\Standards\Squiz\Sniffs\ControlStructures\InlineIfDeclarationSniff */ -final class InlineIfDeclarationUnitTest extends AbstractSniffUnitTest +final class InlineIfDeclarationUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Squiz/Tests/ControlStructures/LowercaseDeclarationUnitTest.php b/src/Standards/Squiz/Tests/ControlStructures/LowercaseDeclarationUnitTest.php index 1b30f4fbdc..34897d3de7 100644 --- a/src/Standards/Squiz/Tests/ControlStructures/LowercaseDeclarationUnitTest.php +++ b/src/Standards/Squiz/Tests/ControlStructures/LowercaseDeclarationUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Squiz\Tests\ControlStructures; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the LowercaseDeclaration sniff. * * @covers \PHP_CodeSniffer\Standards\Squiz\Sniffs\ControlStructures\LowercaseDeclarationSniff */ -final class LowercaseDeclarationUnitTest extends AbstractSniffUnitTest +final class LowercaseDeclarationUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Squiz/Tests/ControlStructures/SwitchDeclarationUnitTest.php b/src/Standards/Squiz/Tests/ControlStructures/SwitchDeclarationUnitTest.php index c3c9ded1d8..4effd4d56f 100644 --- a/src/Standards/Squiz/Tests/ControlStructures/SwitchDeclarationUnitTest.php +++ b/src/Standards/Squiz/Tests/ControlStructures/SwitchDeclarationUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Squiz\Tests\ControlStructures; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the SwitchDeclaration sniff. * * @covers \PHP_CodeSniffer\Standards\Squiz\Sniffs\ControlStructures\SwitchDeclarationSniff */ -final class SwitchDeclarationUnitTest extends AbstractSniffUnitTest +final class SwitchDeclarationUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Squiz/Tests/Files/FileExtensionUnitTest.php b/src/Standards/Squiz/Tests/Files/FileExtensionUnitTest.php index 065922547b..c5bae080ed 100644 --- a/src/Standards/Squiz/Tests/Files/FileExtensionUnitTest.php +++ b/src/Standards/Squiz/Tests/Files/FileExtensionUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Squiz\Tests\Files; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the FileExtension sniff. * * @covers \PHP_CodeSniffer\Standards\Squiz\Sniffs\Files\FileExtensionSniff */ -final class FileExtensionUnitTest extends AbstractSniffUnitTest +final class FileExtensionUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Squiz/Tests/Formatting/OperatorBracketUnitTest.php b/src/Standards/Squiz/Tests/Formatting/OperatorBracketUnitTest.php index 68c153c0c4..7cb2a100ba 100644 --- a/src/Standards/Squiz/Tests/Formatting/OperatorBracketUnitTest.php +++ b/src/Standards/Squiz/Tests/Formatting/OperatorBracketUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Squiz\Tests\Formatting; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the OperatorBracket sniff. * * @covers \PHP_CodeSniffer\Standards\Squiz\Sniffs\Formatting\OperatorBracketSniff */ -final class OperatorBracketUnitTest extends AbstractSniffUnitTest +final class OperatorBracketUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Squiz/Tests/Functions/FunctionDeclarationArgumentSpacingUnitTest.php b/src/Standards/Squiz/Tests/Functions/FunctionDeclarationArgumentSpacingUnitTest.php index 9dcade35a9..5fe224ee90 100644 --- a/src/Standards/Squiz/Tests/Functions/FunctionDeclarationArgumentSpacingUnitTest.php +++ b/src/Standards/Squiz/Tests/Functions/FunctionDeclarationArgumentSpacingUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Squiz\Tests\Functions; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the FunctionDeclarationArgumentSpacing sniff. * * @covers \PHP_CodeSniffer\Standards\Squiz\Sniffs\Functions\FunctionDeclarationArgumentSpacingSniff */ -final class FunctionDeclarationArgumentSpacingUnitTest extends AbstractSniffUnitTest +final class FunctionDeclarationArgumentSpacingUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Squiz/Tests/Functions/FunctionDeclarationUnitTest.php b/src/Standards/Squiz/Tests/Functions/FunctionDeclarationUnitTest.php index eb9713d8fb..198815d6f5 100644 --- a/src/Standards/Squiz/Tests/Functions/FunctionDeclarationUnitTest.php +++ b/src/Standards/Squiz/Tests/Functions/FunctionDeclarationUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Squiz\Tests\Functions; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the FunctionDeclaration sniff. * * @covers \PHP_CodeSniffer\Standards\Squiz\Sniffs\Functions\FunctionDeclarationSniff */ -final class FunctionDeclarationUnitTest extends AbstractSniffUnitTest +final class FunctionDeclarationUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Squiz/Tests/Functions/FunctionDuplicateArgumentUnitTest.php b/src/Standards/Squiz/Tests/Functions/FunctionDuplicateArgumentUnitTest.php index f29f809006..ec83d43546 100644 --- a/src/Standards/Squiz/Tests/Functions/FunctionDuplicateArgumentUnitTest.php +++ b/src/Standards/Squiz/Tests/Functions/FunctionDuplicateArgumentUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Squiz\Tests\Functions; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the FunctionDuplicateArgument sniff. * * @covers \PHP_CodeSniffer\Standards\Squiz\Sniffs\Functions\FunctionDuplicateArgumentSniff */ -final class FunctionDuplicateArgumentUnitTest extends AbstractSniffUnitTest +final class FunctionDuplicateArgumentUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Squiz/Tests/Functions/GlobalFunctionUnitTest.php b/src/Standards/Squiz/Tests/Functions/GlobalFunctionUnitTest.php index 1a07791567..b801b13695 100644 --- a/src/Standards/Squiz/Tests/Functions/GlobalFunctionUnitTest.php +++ b/src/Standards/Squiz/Tests/Functions/GlobalFunctionUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Squiz\Tests\Functions; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the GlobalFunction sniff. * * @covers \PHP_CodeSniffer\Standards\Squiz\Sniffs\Functions\GlobalFunctionSniff */ -final class GlobalFunctionUnitTest extends AbstractSniffUnitTest +final class GlobalFunctionUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Squiz/Tests/Functions/LowercaseFunctionKeywordsUnitTest.php b/src/Standards/Squiz/Tests/Functions/LowercaseFunctionKeywordsUnitTest.php index c91c3008c9..293e1f6a1e 100644 --- a/src/Standards/Squiz/Tests/Functions/LowercaseFunctionKeywordsUnitTest.php +++ b/src/Standards/Squiz/Tests/Functions/LowercaseFunctionKeywordsUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Squiz\Tests\Functions; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the LowercaseFunctionKeywords sniff. * * @covers \PHP_CodeSniffer\Standards\Squiz\Sniffs\Functions\LowercaseFunctionKeywordsSniff */ -final class LowercaseFunctionKeywordsUnitTest extends AbstractSniffUnitTest +final class LowercaseFunctionKeywordsUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Squiz/Tests/Functions/MultiLineFunctionDeclarationUnitTest.php b/src/Standards/Squiz/Tests/Functions/MultiLineFunctionDeclarationUnitTest.php index f4bcfc4a0f..a5c688c0e8 100644 --- a/src/Standards/Squiz/Tests/Functions/MultiLineFunctionDeclarationUnitTest.php +++ b/src/Standards/Squiz/Tests/Functions/MultiLineFunctionDeclarationUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Squiz\Tests\Functions; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the MultiLineFunctionDeclaration sniff. * * @covers \PHP_CodeSniffer\Standards\Squiz\Sniffs\Functions\MultiLineFunctionDeclarationSniff */ -final class MultiLineFunctionDeclarationUnitTest extends AbstractSniffUnitTest +final class MultiLineFunctionDeclarationUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Squiz/Tests/NamingConventions/ValidFunctionNameUnitTest.php b/src/Standards/Squiz/Tests/NamingConventions/ValidFunctionNameUnitTest.php index 7b9692e7a8..78206ab465 100644 --- a/src/Standards/Squiz/Tests/NamingConventions/ValidFunctionNameUnitTest.php +++ b/src/Standards/Squiz/Tests/NamingConventions/ValidFunctionNameUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Squiz\Tests\NamingConventions; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the ValidFunctionName sniff. * * @covers \PHP_CodeSniffer\Standards\Squiz\Sniffs\NamingConventions\ValidFunctionNameSniff */ -final class ValidFunctionNameUnitTest extends AbstractSniffUnitTest +final class ValidFunctionNameUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Squiz/Tests/NamingConventions/ValidVariableNameUnitTest.php b/src/Standards/Squiz/Tests/NamingConventions/ValidVariableNameUnitTest.php index 4f0a5c1abc..8cc817c2a8 100644 --- a/src/Standards/Squiz/Tests/NamingConventions/ValidVariableNameUnitTest.php +++ b/src/Standards/Squiz/Tests/NamingConventions/ValidVariableNameUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Squiz\Tests\NamingConventions; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the ValidVariableName sniff. * * @covers \PHP_CodeSniffer\Standards\Squiz\Sniffs\NamingConventions\ValidVariableNameSniff */ -final class ValidVariableNameUnitTest extends AbstractSniffUnitTest +final class ValidVariableNameUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Squiz/Tests/Objects/ObjectInstantiationUnitTest.php b/src/Standards/Squiz/Tests/Objects/ObjectInstantiationUnitTest.php index bfd4bef29c..398464d56e 100644 --- a/src/Standards/Squiz/Tests/Objects/ObjectInstantiationUnitTest.php +++ b/src/Standards/Squiz/Tests/Objects/ObjectInstantiationUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Squiz\Tests\Objects; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the ObjectInstantiation sniff. * * @covers \PHP_CodeSniffer\Standards\Squiz\Sniffs\Objects\ObjectInstantiationSniff */ -final class ObjectInstantiationUnitTest extends AbstractSniffUnitTest +final class ObjectInstantiationUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Squiz/Tests/Operators/ComparisonOperatorUsageUnitTest.php b/src/Standards/Squiz/Tests/Operators/ComparisonOperatorUsageUnitTest.php index cefde97f77..2d6dbd329c 100644 --- a/src/Standards/Squiz/Tests/Operators/ComparisonOperatorUsageUnitTest.php +++ b/src/Standards/Squiz/Tests/Operators/ComparisonOperatorUsageUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Squiz\Tests\Operators; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the ComparisonOperatorUsage sniff. * * @covers \PHP_CodeSniffer\Standards\Squiz\Sniffs\Operators\ComparisonOperatorUsageSniff */ -final class ComparisonOperatorUsageUnitTest extends AbstractSniffUnitTest +final class ComparisonOperatorUsageUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Squiz/Tests/Operators/IncrementDecrementUsageUnitTest.php b/src/Standards/Squiz/Tests/Operators/IncrementDecrementUsageUnitTest.php index e27e196b13..2a63abbc4d 100644 --- a/src/Standards/Squiz/Tests/Operators/IncrementDecrementUsageUnitTest.php +++ b/src/Standards/Squiz/Tests/Operators/IncrementDecrementUsageUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Squiz\Tests\Operators; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the IncrementDecrementUsage sniff. * * @covers \PHP_CodeSniffer\Standards\Squiz\Sniffs\Operators\IncrementDecrementUsageSniff */ -final class IncrementDecrementUsageUnitTest extends AbstractSniffUnitTest +final class IncrementDecrementUsageUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Squiz/Tests/Operators/ValidLogicalOperatorsUnitTest.php b/src/Standards/Squiz/Tests/Operators/ValidLogicalOperatorsUnitTest.php index d7ce889e3c..9630d98c37 100644 --- a/src/Standards/Squiz/Tests/Operators/ValidLogicalOperatorsUnitTest.php +++ b/src/Standards/Squiz/Tests/Operators/ValidLogicalOperatorsUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Squiz\Tests\Operators; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the ValidLogicalOperators sniff. * * @covers \PHP_CodeSniffer\Standards\Squiz\Sniffs\Operators\ValidLogicalOperatorsSniff */ -final class ValidLogicalOperatorsUnitTest extends AbstractSniffUnitTest +final class ValidLogicalOperatorsUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Squiz/Tests/PHP/CommentedOutCodeUnitTest.php b/src/Standards/Squiz/Tests/PHP/CommentedOutCodeUnitTest.php index e7149cd586..604cf5f900 100644 --- a/src/Standards/Squiz/Tests/PHP/CommentedOutCodeUnitTest.php +++ b/src/Standards/Squiz/Tests/PHP/CommentedOutCodeUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Squiz\Tests\PHP; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the CommentedOutCode sniff. * * @covers \PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP\CommentedOutCodeSniff */ -final class CommentedOutCodeUnitTest extends AbstractSniffUnitTest +final class CommentedOutCodeUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Squiz/Tests/PHP/DisallowBooleanStatementUnitTest.php b/src/Standards/Squiz/Tests/PHP/DisallowBooleanStatementUnitTest.php index 8c3afa4de6..eb82b519ee 100644 --- a/src/Standards/Squiz/Tests/PHP/DisallowBooleanStatementUnitTest.php +++ b/src/Standards/Squiz/Tests/PHP/DisallowBooleanStatementUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Squiz\Tests\PHP; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the DisallowBooleanStatement sniff. * * @covers \PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP\DisallowBooleanStatementSniff */ -final class DisallowBooleanStatementUnitTest extends AbstractSniffUnitTest +final class DisallowBooleanStatementUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Squiz/Tests/PHP/DisallowComparisonAssignmentUnitTest.php b/src/Standards/Squiz/Tests/PHP/DisallowComparisonAssignmentUnitTest.php index 9c0f7e3365..895479e985 100644 --- a/src/Standards/Squiz/Tests/PHP/DisallowComparisonAssignmentUnitTest.php +++ b/src/Standards/Squiz/Tests/PHP/DisallowComparisonAssignmentUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Squiz\Tests\PHP; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the DisallowComparisonAssignment sniff. * * @covers \PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP\DisallowComparisonAssignmentSniff */ -final class DisallowComparisonAssignmentUnitTest extends AbstractSniffUnitTest +final class DisallowComparisonAssignmentUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Squiz/Tests/PHP/DisallowInlineIfUnitTest.php b/src/Standards/Squiz/Tests/PHP/DisallowInlineIfUnitTest.php index a487c07108..7bc1ba30cd 100644 --- a/src/Standards/Squiz/Tests/PHP/DisallowInlineIfUnitTest.php +++ b/src/Standards/Squiz/Tests/PHP/DisallowInlineIfUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Squiz\Tests\PHP; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the DisallowObEndFlush sniff. * * @covers \PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP\DisallowInlineIfSniff */ -final class DisallowInlineIfUnitTest extends AbstractSniffUnitTest +final class DisallowInlineIfUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Squiz/Tests/PHP/DisallowMultipleAssignmentsUnitTest.php b/src/Standards/Squiz/Tests/PHP/DisallowMultipleAssignmentsUnitTest.php index 1ece87d2ec..d4175295b0 100644 --- a/src/Standards/Squiz/Tests/PHP/DisallowMultipleAssignmentsUnitTest.php +++ b/src/Standards/Squiz/Tests/PHP/DisallowMultipleAssignmentsUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Squiz\Tests\PHP; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the DisallowMultipleAssignments sniff. * * @covers \PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP\DisallowMultipleAssignmentsSniff */ -final class DisallowMultipleAssignmentsUnitTest extends AbstractSniffUnitTest +final class DisallowMultipleAssignmentsUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Squiz/Tests/PHP/DisallowSizeFunctionsInLoopsUnitTest.php b/src/Standards/Squiz/Tests/PHP/DisallowSizeFunctionsInLoopsUnitTest.php index 1a5f4dcdcb..d28f279ee3 100644 --- a/src/Standards/Squiz/Tests/PHP/DisallowSizeFunctionsInLoopsUnitTest.php +++ b/src/Standards/Squiz/Tests/PHP/DisallowSizeFunctionsInLoopsUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Squiz\Tests\PHP; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the DisallowSizeFunctionsInLoops sniff. * * @covers \PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP\DisallowSizeFunctionsInLoopsSniff */ -final class DisallowSizeFunctionsInLoopsUnitTest extends AbstractSniffUnitTest +final class DisallowSizeFunctionsInLoopsUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Squiz/Tests/PHP/DiscouragedFunctionsUnitTest.php b/src/Standards/Squiz/Tests/PHP/DiscouragedFunctionsUnitTest.php index 7351b2b45c..297fd6c443 100644 --- a/src/Standards/Squiz/Tests/PHP/DiscouragedFunctionsUnitTest.php +++ b/src/Standards/Squiz/Tests/PHP/DiscouragedFunctionsUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Squiz\Tests\PHP; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the DiscouragedFunctions sniff. * * @covers \PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP\DiscouragedFunctionsSniff */ -final class DiscouragedFunctionsUnitTest extends AbstractSniffUnitTest +final class DiscouragedFunctionsUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Squiz/Tests/PHP/EmbeddedPhpUnitTest.php b/src/Standards/Squiz/Tests/PHP/EmbeddedPhpUnitTest.php index b1aebbd182..88c658484a 100644 --- a/src/Standards/Squiz/Tests/PHP/EmbeddedPhpUnitTest.php +++ b/src/Standards/Squiz/Tests/PHP/EmbeddedPhpUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Squiz\Tests\PHP; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the EmbeddedPhp sniff. * * @covers \PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP\EmbeddedPhpSniff */ -final class EmbeddedPhpUnitTest extends AbstractSniffUnitTest +final class EmbeddedPhpUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Squiz/Tests/PHP/EvalUnitTest.php b/src/Standards/Squiz/Tests/PHP/EvalUnitTest.php index db0af7f041..e350ac9c23 100644 --- a/src/Standards/Squiz/Tests/PHP/EvalUnitTest.php +++ b/src/Standards/Squiz/Tests/PHP/EvalUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Squiz\Tests\PHP; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the Eval sniff. * * @covers \PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP\EvalSniff */ -final class EvalUnitTest extends AbstractSniffUnitTest +final class EvalUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Squiz/Tests/PHP/GlobalKeywordUnitTest.php b/src/Standards/Squiz/Tests/PHP/GlobalKeywordUnitTest.php index c0c79baa65..bcc14291a5 100644 --- a/src/Standards/Squiz/Tests/PHP/GlobalKeywordUnitTest.php +++ b/src/Standards/Squiz/Tests/PHP/GlobalKeywordUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Squiz\Tests\PHP; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the GlobalKeyword sniff. * * @covers \PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP\GlobalKeywordSniff */ -final class GlobalKeywordUnitTest extends AbstractSniffUnitTest +final class GlobalKeywordUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Squiz/Tests/PHP/HeredocUnitTest.php b/src/Standards/Squiz/Tests/PHP/HeredocUnitTest.php index 5d78d89380..f11260f263 100644 --- a/src/Standards/Squiz/Tests/PHP/HeredocUnitTest.php +++ b/src/Standards/Squiz/Tests/PHP/HeredocUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Squiz\Tests\PHP; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the Heredoc sniff. * * @covers \PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP\HeredocSniff */ -final class HeredocUnitTest extends AbstractSniffUnitTest +final class HeredocUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Squiz/Tests/PHP/InnerFunctionsUnitTest.php b/src/Standards/Squiz/Tests/PHP/InnerFunctionsUnitTest.php index fff8871e69..b4ff803d02 100644 --- a/src/Standards/Squiz/Tests/PHP/InnerFunctionsUnitTest.php +++ b/src/Standards/Squiz/Tests/PHP/InnerFunctionsUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Squiz\Tests\PHP; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the InnerFunctions sniff. * * @covers \PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP\InnerFunctionsSniff */ -final class InnerFunctionsUnitTest extends AbstractSniffUnitTest +final class InnerFunctionsUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Squiz/Tests/PHP/LowercasePHPFunctionsUnitTest.php b/src/Standards/Squiz/Tests/PHP/LowercasePHPFunctionsUnitTest.php index 5feb363f6b..8708c294f8 100644 --- a/src/Standards/Squiz/Tests/PHP/LowercasePHPFunctionsUnitTest.php +++ b/src/Standards/Squiz/Tests/PHP/LowercasePHPFunctionsUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Squiz\Tests\PHP; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the LowercasePHPFunctions sniff. * * @covers \PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP\LowercasePHPFunctionsSniff */ -final class LowercasePHPFunctionsUnitTest extends AbstractSniffUnitTest +final class LowercasePHPFunctionsUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Squiz/Tests/PHP/NonExecutableCodeUnitTest.php b/src/Standards/Squiz/Tests/PHP/NonExecutableCodeUnitTest.php index 4b8e0f074f..8dad4830d7 100644 --- a/src/Standards/Squiz/Tests/PHP/NonExecutableCodeUnitTest.php +++ b/src/Standards/Squiz/Tests/PHP/NonExecutableCodeUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Squiz\Tests\PHP; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the NonExecutableCode sniff. * * @covers \PHP_CodeSniffer\Standards\Squiz\Sniffs\PHP\NonExecutableCodeSniff */ -final class NonExecutableCodeUnitTest extends AbstractSniffUnitTest +final class NonExecutableCodeUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Squiz/Tests/Scope/MemberVarScopeUnitTest.php b/src/Standards/Squiz/Tests/Scope/MemberVarScopeUnitTest.php index 04de5e222d..bc85b510d8 100644 --- a/src/Standards/Squiz/Tests/Scope/MemberVarScopeUnitTest.php +++ b/src/Standards/Squiz/Tests/Scope/MemberVarScopeUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Squiz\Tests\Scope; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the MemberVarScope sniff. * * @covers \PHP_CodeSniffer\Standards\Squiz\Sniffs\Scope\MemberVarScopeSniff */ -final class MemberVarScopeUnitTest extends AbstractSniffUnitTest +final class MemberVarScopeUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Squiz/Tests/Scope/MethodScopeUnitTest.php b/src/Standards/Squiz/Tests/Scope/MethodScopeUnitTest.php index d57ce9d9b8..a05ddb2ec0 100644 --- a/src/Standards/Squiz/Tests/Scope/MethodScopeUnitTest.php +++ b/src/Standards/Squiz/Tests/Scope/MethodScopeUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Squiz\Tests\Scope; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the MethodScope sniff. * * @covers \PHP_CodeSniffer\Standards\Squiz\Sniffs\Scope\MethodScopeSniff */ -final class MethodScopeUnitTest extends AbstractSniffUnitTest +final class MethodScopeUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Squiz/Tests/Scope/StaticThisUsageUnitTest.php b/src/Standards/Squiz/Tests/Scope/StaticThisUsageUnitTest.php index 543b569736..e7375c3931 100644 --- a/src/Standards/Squiz/Tests/Scope/StaticThisUsageUnitTest.php +++ b/src/Standards/Squiz/Tests/Scope/StaticThisUsageUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Squiz\Tests\Scope; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the StaticThisUsage sniff. * * @covers \PHP_CodeSniffer\Standards\Squiz\Sniffs\Scope\StaticThisUsageSniff */ -final class StaticThisUsageUnitTest extends AbstractSniffUnitTest +final class StaticThisUsageUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Squiz/Tests/Strings/ConcatenationSpacingUnitTest.php b/src/Standards/Squiz/Tests/Strings/ConcatenationSpacingUnitTest.php index e59da3c6e3..68a1ffc208 100644 --- a/src/Standards/Squiz/Tests/Strings/ConcatenationSpacingUnitTest.php +++ b/src/Standards/Squiz/Tests/Strings/ConcatenationSpacingUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Squiz\Tests\Strings; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the ConcatenationSpacing sniff. * * @covers \PHP_CodeSniffer\Standards\Squiz\Sniffs\Strings\ConcatenationSpacingSniff */ -final class ConcatenationSpacingUnitTest extends AbstractSniffUnitTest +final class ConcatenationSpacingUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Squiz/Tests/Strings/DoubleQuoteUsageUnitTest.php b/src/Standards/Squiz/Tests/Strings/DoubleQuoteUsageUnitTest.php index df50beee1a..c30cec1eda 100644 --- a/src/Standards/Squiz/Tests/Strings/DoubleQuoteUsageUnitTest.php +++ b/src/Standards/Squiz/Tests/Strings/DoubleQuoteUsageUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Squiz\Tests\Strings; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the DoubleQuoteUsage sniff. * * @covers \PHP_CodeSniffer\Standards\Squiz\Sniffs\Strings\DoubleQuoteUsageSniff */ -final class DoubleQuoteUsageUnitTest extends AbstractSniffUnitTest +final class DoubleQuoteUsageUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Squiz/Tests/Strings/EchoedStringsUnitTest.php b/src/Standards/Squiz/Tests/Strings/EchoedStringsUnitTest.php index dd8ead06a3..d124cc5330 100644 --- a/src/Standards/Squiz/Tests/Strings/EchoedStringsUnitTest.php +++ b/src/Standards/Squiz/Tests/Strings/EchoedStringsUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Squiz\Tests\Strings; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the EchoedStrings sniff. * * @covers \PHP_CodeSniffer\Standards\Squiz\Sniffs\Strings\EchoedStringsSniff */ -final class EchoedStringsUnitTest extends AbstractSniffUnitTest +final class EchoedStringsUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Squiz/Tests/WhiteSpace/CastSpacingUnitTest.php b/src/Standards/Squiz/Tests/WhiteSpace/CastSpacingUnitTest.php index 38dba6d424..7836cc3980 100644 --- a/src/Standards/Squiz/Tests/WhiteSpace/CastSpacingUnitTest.php +++ b/src/Standards/Squiz/Tests/WhiteSpace/CastSpacingUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Squiz\Tests\WhiteSpace; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the CastSpacing sniff. * * @covers \PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace\CastSpacingSniff */ -final class CastSpacingUnitTest extends AbstractSniffUnitTest +final class CastSpacingUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Squiz/Tests/WhiteSpace/ControlStructureSpacingUnitTest.php b/src/Standards/Squiz/Tests/WhiteSpace/ControlStructureSpacingUnitTest.php index ded042ed90..ffcd1a377e 100644 --- a/src/Standards/Squiz/Tests/WhiteSpace/ControlStructureSpacingUnitTest.php +++ b/src/Standards/Squiz/Tests/WhiteSpace/ControlStructureSpacingUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Squiz\Tests\WhiteSpace; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the ControlStructureSpacing sniff. * * @covers \PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace\ControlStructureSpacingSniff */ -final class ControlStructureSpacingUnitTest extends AbstractSniffUnitTest +final class ControlStructureSpacingUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Squiz/Tests/WhiteSpace/FunctionClosingBraceSpaceUnitTest.php b/src/Standards/Squiz/Tests/WhiteSpace/FunctionClosingBraceSpaceUnitTest.php index fbd6cc9b07..a8ba93f3fa 100644 --- a/src/Standards/Squiz/Tests/WhiteSpace/FunctionClosingBraceSpaceUnitTest.php +++ b/src/Standards/Squiz/Tests/WhiteSpace/FunctionClosingBraceSpaceUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Squiz\Tests\WhiteSpace; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the FunctionClosingBraceSpace sniff. * * @covers \PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace\FunctionClosingBraceSpaceSniff */ -final class FunctionClosingBraceSpaceUnitTest extends AbstractSniffUnitTest +final class FunctionClosingBraceSpaceUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Squiz/Tests/WhiteSpace/FunctionOpeningBraceSpaceUnitTest.php b/src/Standards/Squiz/Tests/WhiteSpace/FunctionOpeningBraceSpaceUnitTest.php index 84db17edf0..2089ce9b9b 100644 --- a/src/Standards/Squiz/Tests/WhiteSpace/FunctionOpeningBraceSpaceUnitTest.php +++ b/src/Standards/Squiz/Tests/WhiteSpace/FunctionOpeningBraceSpaceUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Squiz\Tests\WhiteSpace; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the FunctionOpeningBraceSpace sniff. * * @covers \PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace\FunctionOpeningBraceSpaceSniff */ -final class FunctionOpeningBraceSpaceUnitTest extends AbstractSniffUnitTest +final class FunctionOpeningBraceSpaceUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Squiz/Tests/WhiteSpace/FunctionSpacingUnitTest.php b/src/Standards/Squiz/Tests/WhiteSpace/FunctionSpacingUnitTest.php index a963a9a4b0..dd3287918a 100644 --- a/src/Standards/Squiz/Tests/WhiteSpace/FunctionSpacingUnitTest.php +++ b/src/Standards/Squiz/Tests/WhiteSpace/FunctionSpacingUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Squiz\Tests\WhiteSpace; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the FunctionSpacing sniff. * * @covers \PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace\FunctionSpacingSniff */ -final class FunctionSpacingUnitTest extends AbstractSniffUnitTest +final class FunctionSpacingUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Squiz/Tests/WhiteSpace/LogicalOperatorSpacingUnitTest.php b/src/Standards/Squiz/Tests/WhiteSpace/LogicalOperatorSpacingUnitTest.php index 31158fd270..19d80c966e 100644 --- a/src/Standards/Squiz/Tests/WhiteSpace/LogicalOperatorSpacingUnitTest.php +++ b/src/Standards/Squiz/Tests/WhiteSpace/LogicalOperatorSpacingUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Squiz\Tests\WhiteSpace; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the LogicalOperatorSpacing sniff. * * @covers \PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace\LogicalOperatorSpacingSniff */ -final class LogicalOperatorSpacingUnitTest extends AbstractSniffUnitTest +final class LogicalOperatorSpacingUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Squiz/Tests/WhiteSpace/MemberVarSpacingUnitTest.php b/src/Standards/Squiz/Tests/WhiteSpace/MemberVarSpacingUnitTest.php index 9f43362568..36e9cf463e 100644 --- a/src/Standards/Squiz/Tests/WhiteSpace/MemberVarSpacingUnitTest.php +++ b/src/Standards/Squiz/Tests/WhiteSpace/MemberVarSpacingUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Squiz\Tests\WhiteSpace; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the MemberVarSpacing sniff. * * @covers \PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace\MemberVarSpacingSniff */ -final class MemberVarSpacingUnitTest extends AbstractSniffUnitTest +final class MemberVarSpacingUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Squiz/Tests/WhiteSpace/ObjectOperatorSpacingUnitTest.php b/src/Standards/Squiz/Tests/WhiteSpace/ObjectOperatorSpacingUnitTest.php index c1ef24a42e..a6e91fb39a 100644 --- a/src/Standards/Squiz/Tests/WhiteSpace/ObjectOperatorSpacingUnitTest.php +++ b/src/Standards/Squiz/Tests/WhiteSpace/ObjectOperatorSpacingUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Squiz\Tests\WhiteSpace; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the ObjectOperatorSpacing sniff. * * @covers \PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace\ObjectOperatorSpacingSniff */ -final class ObjectOperatorSpacingUnitTest extends AbstractSniffUnitTest +final class ObjectOperatorSpacingUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Squiz/Tests/WhiteSpace/OperatorSpacingUnitTest.php b/src/Standards/Squiz/Tests/WhiteSpace/OperatorSpacingUnitTest.php index c1cb3e22bf..21f693b40e 100644 --- a/src/Standards/Squiz/Tests/WhiteSpace/OperatorSpacingUnitTest.php +++ b/src/Standards/Squiz/Tests/WhiteSpace/OperatorSpacingUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Squiz\Tests\WhiteSpace; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the OperatorSpacing sniff. * * @covers \PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace\OperatorSpacingSniff */ -final class OperatorSpacingUnitTest extends AbstractSniffUnitTest +final class OperatorSpacingUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Squiz/Tests/WhiteSpace/ScopeClosingBraceUnitTest.php b/src/Standards/Squiz/Tests/WhiteSpace/ScopeClosingBraceUnitTest.php index 0729624c94..7ed48f14ac 100644 --- a/src/Standards/Squiz/Tests/WhiteSpace/ScopeClosingBraceUnitTest.php +++ b/src/Standards/Squiz/Tests/WhiteSpace/ScopeClosingBraceUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Squiz\Tests\WhiteSpace; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the ScopeClosingBrace sniff. * * @covers \PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace\ScopeClosingBraceSniff */ -final class ScopeClosingBraceUnitTest extends AbstractSniffUnitTest +final class ScopeClosingBraceUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Squiz/Tests/WhiteSpace/ScopeKeywordSpacingUnitTest.php b/src/Standards/Squiz/Tests/WhiteSpace/ScopeKeywordSpacingUnitTest.php index 64b82e365e..4bd4cb9baa 100644 --- a/src/Standards/Squiz/Tests/WhiteSpace/ScopeKeywordSpacingUnitTest.php +++ b/src/Standards/Squiz/Tests/WhiteSpace/ScopeKeywordSpacingUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Squiz\Tests\WhiteSpace; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the ScopeKeywordSpacing sniff. * * @covers \PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace\ScopeKeywordSpacingSniff */ -final class ScopeKeywordSpacingUnitTest extends AbstractSniffUnitTest +final class ScopeKeywordSpacingUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Squiz/Tests/WhiteSpace/SemicolonSpacingUnitTest.php b/src/Standards/Squiz/Tests/WhiteSpace/SemicolonSpacingUnitTest.php index 7347708da7..bbcbc7229c 100644 --- a/src/Standards/Squiz/Tests/WhiteSpace/SemicolonSpacingUnitTest.php +++ b/src/Standards/Squiz/Tests/WhiteSpace/SemicolonSpacingUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Squiz\Tests\WhiteSpace; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the SemicolonSpacing sniff. * * @covers \PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace\SemicolonSpacingSniff */ -final class SemicolonSpacingUnitTest extends AbstractSniffUnitTest +final class SemicolonSpacingUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.php b/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.php index 7bc0054b18..c647b3f639 100644 --- a/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.php +++ b/src/Standards/Squiz/Tests/WhiteSpace/SuperfluousWhitespaceUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Squiz\Tests\WhiteSpace; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the SuperfluousWhitespace sniff. * * @covers \PHP_CodeSniffer\Standards\Squiz\Sniffs\WhiteSpace\SuperfluousWhitespaceSniff */ -final class SuperfluousWhitespaceUnitTest extends AbstractSniffUnitTest +final class SuperfluousWhitespaceUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Zend/Tests/Files/ClosingTagUnitTest.php b/src/Standards/Zend/Tests/Files/ClosingTagUnitTest.php index 0a031486bf..7e5204dc1e 100644 --- a/src/Standards/Zend/Tests/Files/ClosingTagUnitTest.php +++ b/src/Standards/Zend/Tests/Files/ClosingTagUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Zend\Tests\Files; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the ClosingTag sniff. * * @covers \PHP_CodeSniffer\Standards\Zend\Sniffs\Files\ClosingTagSniff */ -final class ClosingTagUnitTest extends AbstractSniffUnitTest +final class ClosingTagUnitTest extends AbstractSniffTestCase { diff --git a/src/Standards/Zend/Tests/NamingConventions/ValidVariableNameUnitTest.php b/src/Standards/Zend/Tests/NamingConventions/ValidVariableNameUnitTest.php index 9e96c1b71b..a795ac43c1 100644 --- a/src/Standards/Zend/Tests/NamingConventions/ValidVariableNameUnitTest.php +++ b/src/Standards/Zend/Tests/NamingConventions/ValidVariableNameUnitTest.php @@ -9,14 +9,14 @@ namespace PHP_CodeSniffer\Standards\Zend\Tests\NamingConventions; -use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; +use PHP_CodeSniffer\Tests\Standards\AbstractSniffTestCase; /** * Unit test class for the ValidVariableName sniff. * * @covers \PHP_CodeSniffer\Standards\Zend\Sniffs\NamingConventions\ValidVariableNameSniff */ -final class ValidVariableNameUnitTest extends AbstractSniffUnitTest +final class ValidVariableNameUnitTest extends AbstractSniffTestCase { diff --git a/tests/Standards/AbstractSniffUnitTest.php b/tests/Standards/AbstractSniffTestCase.php similarity index 99% rename from tests/Standards/AbstractSniffUnitTest.php rename to tests/Standards/AbstractSniffTestCase.php index 333b77c05c..56c4bd9d54 100644 --- a/tests/Standards/AbstractSniffUnitTest.php +++ b/tests/Standards/AbstractSniffTestCase.php @@ -22,7 +22,7 @@ use PHPUnit\Framework\TestCase; use ReflectionClass; -abstract class AbstractSniffUnitTest extends TestCase +abstract class AbstractSniffTestCase extends TestCase { /** From ca3f00e1e066b410fa0af89c43ddc84213933e1d Mon Sep 17 00:00:00 2001 From: jrfnl Date: Mon, 19 Feb 2024 04:35:04 +0100 Subject: [PATCH 3/4] Tests: allow for PHPUnit 10 and 11 This commit makes the necessary changes in the CI wiring to allow for running the tests on PHPUnit 8, 9, 10 and 11 and still failing them on PHP deprecations and notices like before. The PHPUnit configuration file specification has undergone changes in PHPUnit 9.3, 10.0, 10.1 and 10.5.32/11.3.3. Most notably: * In PHPUnit 9.3, the manner of specifying the code coverage configuration has changed, though the "old" way is still supported on PHPUnit 9, but not on PHPUnit 10. * In PHPUnit 10.0, a significant number of attributes of the `` element were removed or renamed and failing test runs on PHP deprecations or notices was no longer possible. * In PHPUnit 10.1 a further iteration was released on the way to specify code coverage, which now expects a `` element. Additionally, it is now possible again to fail a test run on PHP deprecations/notices. * In PHPUnit 10.5.32/11.3.3 new `displayDetailsOnPhpunitDeprecations` and `failOnPhpunitDeprecation` options were introduced. As of PHPUnit 10.0, the option to fail tests on (PHP) deprecation notices would **_also_** fail the tests on PHPUnit deprecation notices, while those are only relevant when upgrading to the _next_ PHPUnit version. This made things a bit awkward. This was, at long last, fixed via the new options in PHPUnit 10.5.32/11.3.3. While the `--migrate-configuration` command can upgrade a configuration for the changes in the format made in PHPUnit 9.3, some of the changes in the configuration format in PHPUnit 10 don't have one-on-one replacements and/or are not taken into account. With that in mind, I deem it more appropriate to have a dedicated PHPUnit configuration file for PHPUnit 10/11 to ensure the test runs will behave as intended. To be forward compatible, the default PHPUnit config file `phpunit.xml.dist` will now use the PHPUnit 10+ format, while a separate `phpunit-lte9.xml.dist` file will be used for PHPUnit 8 and 9. > :point_up: This means that contributors who run on recent PHP versions, should just be able to run `vendor/bin/phpunit`. Only contributors who run on PHP < 8.1 and therefore run on PHPUnit < 10, will need to be aware of the difference in the config files. All in all, this commit makes the following changes: * Rename the "old" PHPUnit configuration file to `phpunit-lte9.xml.dist` - This file has also been added to `.gitattributes` to ignore for distribution packages. - An entry for `phpunit-lte9.xml` has been added to the `.gitignore` file. While a contributor can choose the name for a config overload file for the `phpunit-lte9.xml.dist` file freely, it is a good convention to use the same name as the file being overloaded, minus the `.dist`, so ignoring that filename by default seems appropriate. - Composer scripts have been added to run the tests with the `phpunit-lte9.xml.dist` file and these new scripts are also mentioned in the `CONTRIBUTING` file. * The `phpunit.xml.dist` now contains the PHPUnit configuration for running the tests on PHPUnit 10.5+. This includes the appropriate settings to fail the test runs on any PHP deprecations, notices or warnings. Take note that the `cacheDirectory` option has been set to a custom directory which is already git ignored. * The GH Actions scripts have been updated to include a PHPUnit version based toggle and run the tests with the correct configuration file depending on the PHPUnit version being used. * Composer: allow for PHPUnit 10 on version 10.5.32 or higher and PHPUnit 11 on v 11.3.3 or higher. The 10.5.32/11.3.3 version are deliberately set as the minimum as: - the `failOnNotice` and `failOnDeprecation` attributes can now be set in the XML config file (PHPUnit 10.1+). - the `source` element for the XML config file was introduced in 10.1. - the `displayDetailsOnPhpunitDeprecations` and `failOnPhpunitDeprecation` attributes can be set (PHPUnit 10.5.32/11.3.3+). Refs: * https://phpunit.de/announcements/phpunit-10.html * sebastianbergmann/phpunit 5196 * https://github.com/sebastianbergmann/phpunit/commit/fb6673f06ef90b43667b7187722e2c840dcdb573 * sebastianbergmann/phpunit 5937 * https://github.com/sebastianbergmann/phpunit/commit/1a5d2b8ceaecedc51d628c41b1111633be0b29eb --- .gitattributes | 1 + .github/CONTRIBUTING.md | 10 ++++-- .github/workflows/quicktest.yml | 31 +++++++++++++++++-- .github/workflows/test.yml | 50 ++++++++++++++++++++++++++---- .github/workflows/validate.yml | 7 ++++- .gitignore | 2 ++ composer.json | 23 +++++++++++--- phpunit-lte9.xml.dist | 54 +++++++++++++++++++++++++++++++++ phpunit.xml.dist | 42 ++++++++++++++----------- 9 files changed, 186 insertions(+), 34 deletions(-) create mode 100644 phpunit-lte9.xml.dist diff --git a/.gitattributes b/.gitattributes index d3d7c5338b..2cdd5c5858 100644 --- a/.gitattributes +++ b/.gitattributes @@ -19,6 +19,7 @@ tests/Core/**/ export-ignore phpcs.xml.dist export-ignore phpstan.neon.dist export-ignore phpunit.xml.dist export-ignore +phpunit-lte9.xml.dist export-ignore tests/Core/ErrorSuppressionTest.php export-ignore # diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 46b303311e..03a5ae5b39 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -259,10 +259,14 @@ To help you with this, a number of convenience scripts are available: * `composer check-all` will run the `cs` + `test` checks in one go. * `composer cs` will check for code style violations. * `composer cbf` will run the autofixers for code style violations. -* `composer test` will run the unit tests. -* `composer coverage` will run the unit tests with code coverage and show a text summary. +* `composer test` will run the unit tests when using PHP 8.1+/PHPUnit 10+. +* `composer test-lte9` will run the unit tests when using PHP < 8.1/PHPUnit <= 9. +* `composer coverage` will run the unit tests with code coverage and show a text summary (PHP 8.1+/PHPUnit 10+). +* `composer coverage-lte9` will run the unit tests with code coverage and show a text summary (PHP < 8.1/PHPUnit <= 9). * `composer coverage-local` will run the unit tests with code coverage and generate an HTML coverage report, - which will be placed in a `build/coverage-html` subdirectory. + which will be placed in a `build/coverage-html` subdirectory (PHP 8.1+/PHPUnit 10+). +* `composer coverage-lte9-local` will run the unit tests with code coverage and generate an HTML coverage report, + which will be placed in a `build/coverage-html` subdirectory (PHP < 8.1/PHPUnit <= 9). * `composer build` will build the phpcs.phar and phpcbf.phar files. diff --git a/.github/workflows/quicktest.yml b/.github/workflows/quicktest.yml index 7e6ab04c13..da5d70a320 100644 --- a/.github/workflows/quicktest.yml +++ b/.github/workflows/quicktest.yml @@ -55,19 +55,44 @@ jobs: # Bust the cache at least once a month - output format: YYYY-MM. custom-cache-suffix: $(date -u "+%Y-%m") + - name: Grab PHPUnit version + id: phpunit_version + shell: bash + # yamllint disable-line rule:line-length + run: echo "VERSION=$(php "vendor/bin/phpunit" --version | grep --only-matching --max-count=1 --extended-regexp '\b[0-9]+\.[0-9]+')" >> "$GITHUB_OUTPUT" + + - name: "DEBUG: Show grabbed version" + run: echo ${{ steps.phpunit_version.outputs.VERSION }} + + - name: Determine PHPUnit config file to use + id: phpunit_config + shell: bash + run: | + if [ "${{ startsWith( steps.phpunit_version.outputs.VERSION, '11.' ) }}" == "true" ]; then + echo 'FILE=phpunit.xml.dist' >> "$GITHUB_OUTPUT" + elif [ "${{ startsWith( steps.phpunit_version.outputs.VERSION, '10.' ) }}" == "true" ]; then + echo 'FILE=phpunit.xml.dist' >> "$GITHUB_OUTPUT" + else + echo 'FILE=phpunit-lte9.xml.dist' >> "$GITHUB_OUTPUT" + fi + - name: 'PHPCS: set the path to PHP' run: php "bin/phpcs" --config-set php_path php - name: 'PHPUnit: run the full test suite' if: ${{ matrix.os != 'windows-latest' }} - run: php "vendor/bin/phpunit" --no-coverage + run: php "vendor/bin/phpunit" -c ${{ steps.phpunit_config.outputs.FILE }} --no-coverage - name: 'PHPUnit: run tests which may have different outcomes on Windows' if: ${{ matrix.os == 'windows-latest' }} - run: php "vendor/bin/phpunit" --group Windows --no-coverage + run: > + php "vendor/bin/phpunit" -c ${{ steps.phpunit_config.outputs.FILE }} --no-coverage + --group Windows - name: 'PHPUnit: run select tests in CBF mode' - run: php "vendor/bin/phpunit" --group CBF --exclude-group nothing --no-coverage + run: > + php "vendor/bin/phpunit" -c ${{ steps.phpunit_config.outputs.FILE }} --no-coverage + --group CBF --exclude-group nothing env: PHP_CODESNIFFER_CBF: '1' diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8c0bbee159..ba7a345b1f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -197,6 +197,27 @@ jobs: composer-options: ${{ matrix.php == '8.5' && '--ignore-platform-req=php+' || '' }} custom-cache-suffix: $(date -u "+%Y-%m") + - name: Grab PHPUnit version + id: phpunit_version + shell: bash + # yamllint disable-line rule:line-length + run: echo "VERSION=$(php "vendor/bin/phpunit" --version | grep --only-matching --max-count=1 --extended-regexp '\b[0-9]+\.[0-9]+')" >> "$GITHUB_OUTPUT" + + - name: "DEBUG: Show grabbed version" + run: echo ${{ steps.phpunit_version.outputs.VERSION }} + + - name: Determine PHPUnit config file to use + id: phpunit_config + shell: bash + run: | + if [ "${{ startsWith( steps.phpunit_version.outputs.VERSION, '11.' ) }}" == "true" ]; then + echo 'FILE=phpunit.xml.dist' >> "$GITHUB_OUTPUT" + elif [ "${{ startsWith( steps.phpunit_version.outputs.VERSION, '10.' ) }}" == "true" ]; then + echo 'FILE=phpunit.xml.dist' >> "$GITHUB_OUTPUT" + else + echo 'FILE=phpunit-lte9.xml.dist' >> "$GITHUB_OUTPUT" + fi + # Note: The code style check is run multiple times against every PHP version # as it also acts as an integration test. - name: 'PHPCS: set the path to PHP' @@ -204,11 +225,13 @@ jobs: - name: 'PHPUnit: run the full test suite without code coverage' if: ${{ matrix.skip_tests != true }} - run: php "vendor/bin/phpunit" --no-coverage + run: php "vendor/bin/phpunit" -c ${{ steps.phpunit_config.outputs.FILE }} --no-coverage - name: 'PHPUnit: run select tests in CBF mode' if: ${{ matrix.skip_tests != true }} - run: php "vendor/bin/phpunit" --group CBF --exclude-group nothing --no-coverage + run: > + php "vendor/bin/phpunit" -c ${{ steps.phpunit_config.outputs.FILE }} --no-coverage + --group CBF --exclude-group nothing env: PHP_CODESNIFFER_CBF: '1' @@ -293,6 +316,18 @@ jobs: - name: "DEBUG: Show grabbed version" run: echo ${{ steps.phpunit_version.outputs.VERSION }} + - name: Determine PHPUnit config file to use + id: phpunit_config + shell: bash + run: | + if [ "${{ startsWith( steps.phpunit_version.outputs.VERSION, '11.' ) }}" == "true" ]; then + echo 'FILE=phpunit.xml.dist' >> "$GITHUB_OUTPUT" + elif [ "${{ startsWith( steps.phpunit_version.outputs.VERSION, '10.' ) }}" == "true" ]; then + echo 'FILE=phpunit.xml.dist' >> "$GITHUB_OUTPUT" + else + echo 'FILE=phpunit-lte9.xml.dist' >> "$GITHUB_OUTPUT" + fi + - name: 'PHPCS: set the path to PHP' run: php "bin/phpcs" --config-set php_path php @@ -302,18 +337,20 @@ jobs: # Using that option prevents issues with PHP-Parser backfilling PHP tokens during our test runs. - name: "Warm the PHPUnit cache (PHPUnit 9.3+)" if: ${{ steps.phpunit_version.outputs.VERSION >= '9.3' }} - run: php "vendor/bin/phpunit" --coverage-cache ./build/phpunit-cache --warm-coverage-cache + run: > + php "vendor/bin/phpunit" -c ${{ steps.phpunit_config.outputs.FILE }} + --coverage-cache ./build/phpunit-cache --warm-coverage-cache - name: "Run the unit tests with code coverage" if: ${{ matrix.os != 'windows-latest' }} run: > - php "vendor/bin/phpunit" + php "vendor/bin/phpunit" -c ${{ steps.phpunit_config.outputs.FILE }} ${{ steps.phpunit_version.outputs.VERSION >= '9.3' && '--coverage-cache ./build/phpunit-cache' || '' }} - name: "Run select tests in CBF mode with code coverage" if: ${{ matrix.os != 'windows-latest' }} run: > - php "vendor/bin/phpunit" + php "vendor/bin/phpunit" -c ${{ steps.phpunit_config.outputs.FILE }} ${{ steps.phpunit_version.outputs.VERSION >= '9.3' && '--coverage-cache ./build/phpunit-cache' || '' }} --group CBF --exclude-group nothing --coverage-clover build/logs/clover-cbf.xml env: @@ -322,8 +359,9 @@ jobs: - name: "Run the unit tests which may have different outcomes on Windows with code coverage" if: ${{ matrix.os == 'windows-latest' }} run: > - php "vendor/bin/phpunit" --group Windows + php "vendor/bin/phpunit" -c ${{ steps.phpunit_config.outputs.FILE }} ${{ steps.phpunit_version.outputs.VERSION >= '9.3' && '--coverage-cache ./build/phpunit-cache' || '' }} + --group Windows - name: "Upload coverage results to Coveralls (normal run)" if: ${{ success() }} diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index a5295df990..230f9b3678 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -56,7 +56,12 @@ jobs: pattern: "phpcs.xml.dist" xsd-file: "phpcs.xsd" - - name: "Validate PHPUnit config for well-formedness" + - name: "Validate PHPUnit <= 9 config for well-formedness" + uses: phpcsstandards/xmllint-validate@v1 + with: + pattern: "phpunit-lte9.xml.dist" + + - name: "Validate PHPUnit 10+ config for well-formedness" uses: phpcsstandards/xmllint-validate@v1 with: pattern: "phpunit.xml.dist" diff --git a/.gitignore b/.gitignore index b4acb5a7f8..dedd53df79 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,8 @@ /CodeSniffer.conf /phpcs.xml /phpunit.xml +/phpunitlte9.xml +/phpunit-lte9.xml .phpunit.result.cache /build/ .idea/* diff --git a/composer.json b/composer.json index 3f00316224..b0c1fcfcbf 100644 --- a/composer.json +++ b/composer.json @@ -36,7 +36,7 @@ "ext-xmlwriter": "*" }, "require-dev": { - "phpunit/phpunit": "^8.0 || ^9.3.4" + "phpunit/phpunit": "^8.0 || ^9.3.4 || ^10.5.32 || ^11.3.3" }, "bin": [ "bin/phpcbf", @@ -61,14 +61,26 @@ "Composer\\Config::disableProcessTimeout", "@php ./vendor/phpunit/phpunit/phpunit --no-coverage" ], + "test-lte9": [ + "Composer\\Config::disableProcessTimeout", + "@php ./vendor/phpunit/phpunit/phpunit -c phpunit-lte9.xml.dist --no-coverage" + ], "coverage": [ "Composer\\Config::disableProcessTimeout", "@php ./vendor/phpunit/phpunit/phpunit -d max_execution_time=0" ], + "coverage-lte9": [ + "Composer\\Config::disableProcessTimeout", + "@php ./vendor/phpunit/phpunit/phpunit -c phpunit-lte9.xml.dist -d max_execution_time=0" + ], "coverage-local": [ "Composer\\Config::disableProcessTimeout", "@php ./vendor/phpunit/phpunit/phpunit --coverage-html ./build/coverage-html -d max_execution_time=0" ], + "coverage-lte9-local": [ + "Composer\\Config::disableProcessTimeout", + "@php ./vendor/phpunit/phpunit/phpunit -c phpunit-lte9.xml.dist --coverage-html ./build/coverage-html -d max_execution_time=0" + ], "build": [ "Composer\\Config::disableProcessTimeout", "@php -d phar.readonly=0 -f ./scripts/build-phar.php" @@ -81,9 +93,12 @@ "scripts-descriptions": { "cs": "Check for code style violations.", "cbf": "Fix code style violations.", - "test": "Run the unit tests without code coverage.", - "coverage": "Run the unit tests with code coverage.", - "coverage-local": "Run the unit tests with code coverage and generate an HTML report in a 'build' directory.", + "test": "PHPUnit 10+: Run the unit tests without code coverage.", + "test-lte9": "PHPUnit <= 9: Run the unit tests without code coverage.", + "coverage": "PHPUnit 10+: Run the unit tests with code coverage.", + "coverage-lte9": "PHPUnit <= 9: Run the unit tests with code coverage.", + "coverage-local": "PHPUnit 10+: Run the unit tests with code coverage and generate an HTML report in a 'build' directory.", + "coverage-lte9-local": "PHPUnit <= 9: Run the unit tests with code coverage and generate an HTML report in a 'build' directory.", "build": "Create PHAR files for PHPCS and PHPCBF.", "check-all": "Run all checks (phpcs, tests)." } diff --git a/phpunit-lte9.xml.dist b/phpunit-lte9.xml.dist new file mode 100644 index 0000000000..db04053844 --- /dev/null +++ b/phpunit-lte9.xml.dist @@ -0,0 +1,54 @@ + + + + + ./tests/Core/ + + + ./src/Standards/Generic/Tests/ + ./src/Standards/PEAR/Tests/ + ./src/Standards/PSR1/Tests/ + ./src/Standards/PSR2/Tests/ + ./src/Standards/PSR12/Tests/ + ./src/Standards/Squiz/Tests/ + ./src/Standards/Zend/Tests/ + + + + + + CBF + + + + + + ./src + ./autoload.php + + ./src/Standards + + + + + + + + + + + + + diff --git a/phpunit.xml.dist b/phpunit.xml.dist index db04053844..a3a6255492 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,16 +1,22 @@ @@ -33,20 +39,22 @@ - - + + ./src ./autoload.php - - ./src/Standards - - - + + + ./src/Standards + + - - - - + + + + + + From 3af5208a87615f79d7e5710545cb668fc1599ed1 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Tue, 15 Apr 2025 15:12:06 +0200 Subject: [PATCH 4/4] PHPStan: exclude *all* test files The `/tests` directory was already excluded, but the _sniff_ test directories were not and what with a different PHPUnit version being used and PHPStan - apparently - struggling to understand the inheritance, let's just exclude the rest of the test files as well until such time as the PHPStan setup is made compatible with the tests. --- phpstan.neon.dist | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/phpstan.neon.dist b/phpstan.neon.dist index 4060a3800c..10a461e914 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -6,6 +6,14 @@ parameters: paths: - requirements.php - src + excludePaths: + - src/Standards/Generic/Tests/* + - src/Standards/PEAR/Tests/* + - src/Standards/PSR1/Tests/* + - src/Standards/PSR2/Tests/* + - src/Standards/PSR12/Tests/* + - src/Standards/Squiz/Tests/* + - src/Standards/Zend/Tests/* bootstrapFiles: - tests/bootstrap.php