Skip to content

Commit 40a4bd9

Browse files
committed
Unit tests: add @Covers annotation to all sniff tests
1 parent ac4501f commit 40a4bd9

File tree

247 files changed

+1236
-1
lines changed

Some content is hidden

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

247 files changed

+1236
-1
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
1111

1212
use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
1313

14+
/**
15+
* Unit test class for the ArrayIndent sniff.
16+
*
17+
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Arrays\ArrayIndentSniff
18+
*/
1419
class ArrayIndentUnitTest extends AbstractSniffUnitTest
1520
{
1621

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
1111

1212
use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
1313

14+
/**
15+
* Unit test class for the DisallowLongArraySyntax sniff.
16+
*
17+
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Arrays\DisallowLongArraySyntaxSniff
18+
*/
1419
class DisallowLongArraySyntaxUnitTest extends AbstractSniffUnitTest
1520
{
1621

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
1111

1212
use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
1313

14+
/**
15+
* Unit test class for the DisallowShortArraySyntax sniff.
16+
*
17+
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Arrays\DisallowShortArraySyntaxSniff
18+
*/
1419
class DisallowShortArraySyntaxUnitTest extends AbstractSniffUnitTest
1520
{
1621

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
1111

1212
use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
1313

14+
/**
15+
* Unit test class for the DuplicateClassName sniff.
16+
*
17+
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Classes\DuplicateClassNameSniff
18+
*/
1419
class DuplicateClassNameUnitTest extends AbstractSniffUnitTest
1520
{
1621

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
1111

1212
use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
1313

14+
/**
15+
* Unit test class for the OpeningBraceSameLine sniff.
16+
*
17+
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\Classes\OpeningBraceSameLineSniff
18+
*/
1419
class OpeningBraceSameLineUnitTest extends AbstractSniffUnitTest
1520
{
1621

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
1111

1212
use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
1313

14+
/**
15+
* Unit test class for the AssignmentInCondition sniff.
16+
*
17+
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\AssignmentInConditionSniff
18+
*/
1419
class AssignmentInConditionUnitTest extends AbstractSniffUnitTest
1520
{
1621

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* Unit test class for the EmptyStatement sniff.
3+
* Unit test class for the EmptyPHPStatement sniff.
44
*
55
* @author Juliette Reinders Folmer <phpcs_nospam@adviesenzo.nl>
66
* @copyright 2017 Juliette Reinders Folmer. All rights reserved.
@@ -11,6 +11,11 @@
1111

1212
use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
1313

14+
/**
15+
* Unit test class for the EmptyPHPStatement sniff.
16+
*
17+
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\EmptyPHPStatementSniff
18+
*/
1419
class EmptyPHPStatementUnitTest extends AbstractSniffUnitTest
1520
{
1621

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
1111

1212
use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
1313

14+
/**
15+
* Unit test class for the EmptyStatement sniff.
16+
*
17+
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\EmptyStatementSniff
18+
*/
1419
class EmptyStatementUnitTest extends AbstractSniffUnitTest
1520
{
1621

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
1111

1212
use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
1313

14+
/**
15+
* Unit test class for the ForLoopShouldBeWhileLoop sniff.
16+
*
17+
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\ForLoopShouldBeWhileLoopSniff
18+
*/
1419
class ForLoopShouldBeWhileLoopUnitTest extends AbstractSniffUnitTest
1520
{
1621

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
1111

1212
use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
1313

14+
/**
15+
* Unit test class for the ForLoopWithTestFunctionCall sniff.
16+
*
17+
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\ForLoopWithTestFunctionCallSniff
18+
*/
1419
class ForLoopWithTestFunctionCallUnitTest extends AbstractSniffUnitTest
1520
{
1621

0 commit comments

Comments
 (0)