Skip to content

Commit

Permalink
Tests/ErrorSuppressionTest: improve @covers tag
Browse files Browse the repository at this point in the history
  • Loading branch information
jrfnl committed Jan 14, 2024
1 parent dc5a0f4 commit 2722521
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions tests/Core/ErrorSuppressionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
/**
* Tests for PHP_CodeSniffer error suppression tags.
*
* @coversNothing
* @covers PHP_CodeSniffer\Files\File::addMessage
* @covers PHP_CodeSniffer\Tokenizers\Tokenizer::createPositionMap
*/
final class ErrorSuppressionTest extends TestCase
{
Expand All @@ -32,7 +33,6 @@ final class ErrorSuppressionTest extends TestCase
* Defaults to 0.
*
* @dataProvider dataSuppressError
* @covers PHP_CodeSniffer\Tokenizers\Tokenizer::createPositionMap
*
* @return void
*/
Expand Down Expand Up @@ -165,7 +165,6 @@ public static function dataSuppressError()
* Defaults to 1.
*
* @dataProvider dataSuppressSomeErrors
* @covers PHP_CodeSniffer\Tokenizers\Tokenizer::createPositionMap
*
* @return void
*/
Expand Down Expand Up @@ -258,7 +257,6 @@ public static function dataSuppressSomeErrors()
* Defaults to 0.
*
* @dataProvider dataSuppressWarning
* @covers PHP_CodeSniffer\Tokenizers\Tokenizer::createPositionMap
*
* @return void
*/
Expand Down Expand Up @@ -343,7 +341,6 @@ public static function dataSuppressWarning()
* Defaults to 1.
*
* @dataProvider dataSuppressLine
* @covers PHP_CodeSniffer\Tokenizers\Tokenizer::createPositionMap
*
* @return void
*/
Expand Down Expand Up @@ -444,8 +441,6 @@ public static function dataSuppressLine()
/**
* Test suppressing a single error using a single line ignore in the middle of a line.
*
* @covers PHP_CodeSniffer\Tokenizers\Tokenizer::createPositionMap
*
* @return void
*/
public function testSuppressLineMidLine()
Expand All @@ -469,8 +464,6 @@ public function testSuppressLineMidLine()
/**
* Test suppressing a single error using a single line ignore within a docblock.
*
* @covers PHP_CodeSniffer\Tokenizers\Tokenizer::createPositionMap
*
* @return void
*/
public function testSuppressLineWithinDocblock()
Expand Down Expand Up @@ -507,7 +500,6 @@ public function testSuppressLineWithinDocblock()
* @param string $after Annotation to place after the code.
*
* @dataProvider dataNestedSuppressLine
* @covers PHP_CodeSniffer\Tokenizers\Tokenizer::createPositionMap
*
* @return void
*/
Expand Down Expand Up @@ -598,7 +590,6 @@ public static function dataNestedSuppressLine()
* Defaults to 0.
*
* @dataProvider dataSuppressScope
* @covers PHP_CodeSniffer\Tokenizers\Tokenizer::createPositionMap
*
* @return void
*/
Expand Down Expand Up @@ -696,7 +687,6 @@ public static function dataSuppressScope()
* Defaults to 0.
*
* @dataProvider dataSuppressFile
* @covers PHP_CodeSniffer\Tokenizers\Tokenizer::createPositionMap
*
* @return void
*/
Expand Down Expand Up @@ -811,7 +801,6 @@ public static function dataSuppressFile()
* Defaults to 0.
*
* @dataProvider dataDisableSelected
* @covers PHP_CodeSniffer\Tokenizers\Tokenizer::createPositionMap
*
* @return void
*/
Expand Down Expand Up @@ -929,7 +918,6 @@ public static function dataDisableSelected()
* @param int $expectedWarnings Number of warnings expected.
*
* @dataProvider dataEnableSelected
* @covers PHP_CodeSniffer\Tokenizers\Tokenizer::createPositionMap
*
* @return void
*/
Expand Down Expand Up @@ -1104,7 +1092,6 @@ public static function dataEnableSelected()
* @param int $expectedWarnings Number of warnings expected.
*
* @dataProvider dataIgnoreSelected
* @covers PHP_CodeSniffer\Tokenizers\Tokenizer::createPositionMap
*
* @return void
*/
Expand Down Expand Up @@ -1196,7 +1183,6 @@ public static function dataIgnoreSelected()
* @param int $expectedWarnings Number of warnings expected.
*
* @dataProvider dataCommenting
* @covers PHP_CodeSniffer\Tokenizers\Tokenizer::createPositionMap
*
* @return void
*/
Expand Down

0 comments on commit 2722521

Please sign in to comment.