Skip to content

Commit

Permalink
Tests: all test classes should be either final or abstract
Browse files Browse the repository at this point in the history
Classes belonging to the test _framework_ have been exempted at this time.

This may be revisited at a later point in time when addressing issue 25.
  • Loading branch information
jrfnl committed Jan 11, 2024
1 parent 52ec790 commit 4985221
Show file tree
Hide file tree
Showing 303 changed files with 303 additions and 303 deletions.
2 changes: 1 addition & 1 deletion src/Standards/Generic/Tests/Arrays/ArrayIndentUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Arrays\ArrayIndentSniff
*/
class ArrayIndentUnitTest extends AbstractSniffUnitTest
final class ArrayIndentUnitTest extends AbstractSniffUnitTest
{


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Arrays\DisallowLongArraySyntaxSniff
*/
class DisallowLongArraySyntaxUnitTest extends AbstractSniffUnitTest
final class DisallowLongArraySyntaxUnitTest extends AbstractSniffUnitTest
{


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Arrays\DisallowShortArraySyntaxSniff
*/
class DisallowShortArraySyntaxUnitTest extends AbstractSniffUnitTest
final class DisallowShortArraySyntaxUnitTest extends AbstractSniffUnitTest
{


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Classes\DuplicateClassNameSniff
*/
class DuplicateClassNameUnitTest extends AbstractSniffUnitTest
final class DuplicateClassNameUnitTest extends AbstractSniffUnitTest
{


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Classes\OpeningBraceSameLineSniff
*/
class OpeningBraceSameLineUnitTest extends AbstractSniffUnitTest
final class OpeningBraceSameLineUnitTest extends AbstractSniffUnitTest
{


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\AssignmentInConditionSniff
*/
class AssignmentInConditionUnitTest extends AbstractSniffUnitTest
final class AssignmentInConditionUnitTest extends AbstractSniffUnitTest
{


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\EmptyPHPStatementSniff
*/
class EmptyPHPStatementUnitTest extends AbstractSniffUnitTest
final class EmptyPHPStatementUnitTest extends AbstractSniffUnitTest
{


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\EmptyStatementSniff
*/
class EmptyStatementUnitTest extends AbstractSniffUnitTest
final class EmptyStatementUnitTest extends AbstractSniffUnitTest
{


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\ForLoopShouldBeWhileLoopSniff
*/
class ForLoopShouldBeWhileLoopUnitTest extends AbstractSniffUnitTest
final class ForLoopShouldBeWhileLoopUnitTest extends AbstractSniffUnitTest
{


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\ForLoopWithTestFunctionCallSniff
*/
class ForLoopWithTestFunctionCallUnitTest extends AbstractSniffUnitTest
final class ForLoopWithTestFunctionCallUnitTest extends AbstractSniffUnitTest
{


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\JumbledIncrementerSniff
*/
class JumbledIncrementerUnitTest extends AbstractSniffUnitTest
final class JumbledIncrementerUnitTest extends AbstractSniffUnitTest
{


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\UnconditionalIfStatementSniff
*/
class UnconditionalIfStatementUnitTest extends AbstractSniffUnitTest
final class UnconditionalIfStatementUnitTest extends AbstractSniffUnitTest
{


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\UnnecessaryFinalModifierSniff
*/
class UnnecessaryFinalModifierUnitTest extends AbstractSniffUnitTest
final class UnnecessaryFinalModifierUnitTest extends AbstractSniffUnitTest
{


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\UnusedFunctionParameterSniff
*/
class UnusedFunctionParameterUnitTest extends AbstractSniffUnitTest
final class UnusedFunctionParameterUnitTest extends AbstractSniffUnitTest
{


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\UselessOverridingMethodSniff
*/
class UselessOverridingMethodUnitTest extends AbstractSniffUnitTest
final class UselessOverridingMethodUnitTest extends AbstractSniffUnitTest
{


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Commenting\DocCommentSniff
*/
class DocCommentUnitTest extends AbstractSniffUnitTest
final class DocCommentUnitTest extends AbstractSniffUnitTest
{


Expand Down
2 changes: 1 addition & 1 deletion src/Standards/Generic/Tests/Commenting/FixmeUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Commenting\FixmeSniff
*/
class FixmeUnitTest extends AbstractSniffUnitTest
final class FixmeUnitTest extends AbstractSniffUnitTest
{


Expand Down
2 changes: 1 addition & 1 deletion src/Standards/Generic/Tests/Commenting/TodoUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Commenting\TodoSniff
*/
class TodoUnitTest extends AbstractSniffUnitTest
final class TodoUnitTest extends AbstractSniffUnitTest
{


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\ControlStructures\DisallowYodaConditionsSniff
*/
class DisallowYodaConditionsUnitTest extends AbstractSniffUnitTest
final class DisallowYodaConditionsUnitTest extends AbstractSniffUnitTest
{


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\ControlStructures\InlineControlStructureSniff
*/
class InlineControlStructureUnitTest extends AbstractSniffUnitTest
final class InlineControlStructureUnitTest extends AbstractSniffUnitTest
{


Expand Down
2 changes: 1 addition & 1 deletion src/Standards/Generic/Tests/Debug/CSSLintUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Debug\CSSLintSniff
*/
class CSSLintUnitTest extends AbstractSniffUnitTest
final class CSSLintUnitTest extends AbstractSniffUnitTest
{


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Debug\ClosureLinterSniff
*/
class ClosureLinterUnitTest extends AbstractSniffUnitTest
final class ClosureLinterUnitTest extends AbstractSniffUnitTest
{


Expand Down
2 changes: 1 addition & 1 deletion src/Standards/Generic/Tests/Debug/ESLintUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Debug\ESLintSniff
*/
class ESLintUnitTest extends AbstractSniffUnitTest
final class ESLintUnitTest extends AbstractSniffUnitTest
{

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Standards/Generic/Tests/Debug/JSHintUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Debug\JSHintSniff
*/
class JSHintUnitTest extends AbstractSniffUnitTest
final class JSHintUnitTest extends AbstractSniffUnitTest
{


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Files\ByteOrderMarkSniff
*/
class ByteOrderMarkUnitTest extends AbstractSniffUnitTest
final class ByteOrderMarkUnitTest extends AbstractSniffUnitTest
{


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Files\EndFileNewlineSniff
*/
class EndFileNewlineUnitTest extends AbstractSniffUnitTest
final class EndFileNewlineUnitTest extends AbstractSniffUnitTest
{


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Files\EndFileNoNewlineSniff
*/
class EndFileNoNewlineUnitTest extends AbstractSniffUnitTest
final class EndFileNoNewlineUnitTest extends AbstractSniffUnitTest
{


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Files\ExecutableFileSniff
*/
class ExecutableFileUnitTest extends AbstractSniffUnitTest
final class ExecutableFileUnitTest extends AbstractSniffUnitTest
{


Expand Down
2 changes: 1 addition & 1 deletion src/Standards/Generic/Tests/Files/InlineHTMLUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Files\InlineHTMLSniff
*/
class InlineHTMLUnitTest extends AbstractSniffUnitTest
final class InlineHTMLUnitTest extends AbstractSniffUnitTest
{


Expand Down
2 changes: 1 addition & 1 deletion src/Standards/Generic/Tests/Files/LineEndingsUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Files\LineEndingsSniff
*/
class LineEndingsUnitTest extends AbstractSniffUnitTest
final class LineEndingsUnitTest extends AbstractSniffUnitTest
{


Expand Down
2 changes: 1 addition & 1 deletion src/Standards/Generic/Tests/Files/LineLengthUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Files\LineLengthSniff
*/
class LineLengthUnitTest extends AbstractSniffUnitTest
final class LineLengthUnitTest extends AbstractSniffUnitTest
{


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Files\LowercasedFilenameSniff
*/
class LowercasedFilenameUnitTest extends AbstractSniffUnitTest
final class LowercasedFilenameUnitTest extends AbstractSniffUnitTest
{


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Files\OneClassPerFileSniff
*/
class OneClassPerFileUnitTest extends AbstractSniffUnitTest
final class OneClassPerFileUnitTest extends AbstractSniffUnitTest
{


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Files\OneInterfacePerFileSniff
*/
class OneInterfacePerFileUnitTest extends AbstractSniffUnitTest
final class OneInterfacePerFileUnitTest extends AbstractSniffUnitTest
{


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Files\OneObjectStructurePerFileSniff
*/
class OneObjectStructurePerFileUnitTest extends AbstractSniffUnitTest
final class OneObjectStructurePerFileUnitTest extends AbstractSniffUnitTest
{


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Files\OneTraitPerFileSniff
*/
class OneTraitPerFileUnitTest extends AbstractSniffUnitTest
final class OneTraitPerFileUnitTest extends AbstractSniffUnitTest
{


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Formatting\DisallowMultipleStatementsSniff
*/
class DisallowMultipleStatementsUnitTest extends AbstractSniffUnitTest
final class DisallowMultipleStatementsUnitTest extends AbstractSniffUnitTest
{


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Formatting\MultipleStatementAlignmentSniff
*/
class MultipleStatementAlignmentUnitTest extends AbstractSniffUnitTest
final class MultipleStatementAlignmentUnitTest extends AbstractSniffUnitTest
{


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Formatting\NoSpaceAfterCastSniff
*/
class NoSpaceAfterCastUnitTest extends AbstractSniffUnitTest
final class NoSpaceAfterCastUnitTest extends AbstractSniffUnitTest
{


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Formatting\SpaceAfterCastSniff
*/
class SpaceAfterCastUnitTest extends AbstractSniffUnitTest
final class SpaceAfterCastUnitTest extends AbstractSniffUnitTest
{


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Formatting\SpaceAfterNotSniff
*/
class SpaceAfterNotUnitTest extends AbstractSniffUnitTest
final class SpaceAfterNotUnitTest extends AbstractSniffUnitTest
{


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Formatting\SpaceBeforeCastSniff
*/
class SpaceBeforeCastUnitTest extends AbstractSniffUnitTest
final class SpaceBeforeCastUnitTest extends AbstractSniffUnitTest
{


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Functions\CallTimePassByReferenceSniff
*/
class CallTimePassByReferenceUnitTest extends AbstractSniffUnitTest
final class CallTimePassByReferenceUnitTest extends AbstractSniffUnitTest
{


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Functions\FunctionCallArgumentSpacingSniff
*/
class FunctionCallArgumentSpacingUnitTest extends AbstractSniffUnitTest
final class FunctionCallArgumentSpacingUnitTest extends AbstractSniffUnitTest
{


Expand Down
Loading

0 comments on commit 4985221

Please sign in to comment.