Skip to content

Commit ed6cff1

Browse files
authored
Merge pull request #254 from PHPCSStandards/feature/tests-final-or-abstract
Tests: all test classes should be either `final` or `abstract`
2 parents 52ec790 + 4985221 commit ed6cff1

File tree

303 files changed

+303
-303
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

303 files changed

+303
-303
lines changed

src/Standards/Generic/Tests/Arrays/ArrayIndentUnitTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Arrays\ArrayIndentSniff
1818
*/
19-
class ArrayIndentUnitTest extends AbstractSniffUnitTest
19+
final class ArrayIndentUnitTest extends AbstractSniffUnitTest
2020
{
2121

2222

src/Standards/Generic/Tests/Arrays/DisallowLongArraySyntaxUnitTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Arrays\DisallowLongArraySyntaxSniff
1818
*/
19-
class DisallowLongArraySyntaxUnitTest extends AbstractSniffUnitTest
19+
final class DisallowLongArraySyntaxUnitTest extends AbstractSniffUnitTest
2020
{
2121

2222

src/Standards/Generic/Tests/Arrays/DisallowShortArraySyntaxUnitTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Arrays\DisallowShortArraySyntaxSniff
1818
*/
19-
class DisallowShortArraySyntaxUnitTest extends AbstractSniffUnitTest
19+
final class DisallowShortArraySyntaxUnitTest extends AbstractSniffUnitTest
2020
{
2121

2222

src/Standards/Generic/Tests/Classes/DuplicateClassNameUnitTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Classes\DuplicateClassNameSniff
1818
*/
19-
class DuplicateClassNameUnitTest extends AbstractSniffUnitTest
19+
final class DuplicateClassNameUnitTest extends AbstractSniffUnitTest
2020
{
2121

2222

src/Standards/Generic/Tests/Classes/OpeningBraceSameLineUnitTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Classes\OpeningBraceSameLineSniff
1818
*/
19-
class OpeningBraceSameLineUnitTest extends AbstractSniffUnitTest
19+
final class OpeningBraceSameLineUnitTest extends AbstractSniffUnitTest
2020
{
2121

2222

src/Standards/Generic/Tests/CodeAnalysis/AssignmentInConditionUnitTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\AssignmentInConditionSniff
1818
*/
19-
class AssignmentInConditionUnitTest extends AbstractSniffUnitTest
19+
final class AssignmentInConditionUnitTest extends AbstractSniffUnitTest
2020
{
2121

2222

src/Standards/Generic/Tests/CodeAnalysis/EmptyPHPStatementUnitTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\EmptyPHPStatementSniff
1818
*/
19-
class EmptyPHPStatementUnitTest extends AbstractSniffUnitTest
19+
final class EmptyPHPStatementUnitTest extends AbstractSniffUnitTest
2020
{
2121

2222

src/Standards/Generic/Tests/CodeAnalysis/EmptyStatementUnitTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\EmptyStatementSniff
1818
*/
19-
class EmptyStatementUnitTest extends AbstractSniffUnitTest
19+
final class EmptyStatementUnitTest extends AbstractSniffUnitTest
2020
{
2121

2222

src/Standards/Generic/Tests/CodeAnalysis/ForLoopShouldBeWhileLoopUnitTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\ForLoopShouldBeWhileLoopSniff
1818
*/
19-
class ForLoopShouldBeWhileLoopUnitTest extends AbstractSniffUnitTest
19+
final class ForLoopShouldBeWhileLoopUnitTest extends AbstractSniffUnitTest
2020
{
2121

2222

src/Standards/Generic/Tests/CodeAnalysis/ForLoopWithTestFunctionCallUnitTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\ForLoopWithTestFunctionCallSniff
1818
*/
19-
class ForLoopWithTestFunctionCallUnitTest extends AbstractSniffUnitTest
19+
final class ForLoopWithTestFunctionCallUnitTest extends AbstractSniffUnitTest
2020
{
2121

2222

0 commit comments

Comments
 (0)