Skip to content

Commit 4e4c5c2

Browse files
committed
Added #[Covers*] attributes to tests
1 parent 3a74389 commit 4e4c5c2

File tree

101 files changed

+115
-0
lines changed

Some content is hidden

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

101 files changed

+115
-0
lines changed

tests/PHPStan/Analyser/AnalyserTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
use function substr;
4343
use const PHP_OS;
4444

45+
#[\PHPUnit\Framework\Attributes\CoversNothing]
4546
class AnalyserTest extends PHPStanTestCase
4647
{
4748

tests/PHPStan/Analyser/AnalyserWithCheckDynamicPropertiesTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
use function array_merge;
77
use function array_unique;
88

9+
#[\PHPUnit\Framework\Attributes\CoversNothing]
910
class AnalyserWithCheckDynamicPropertiesTest extends PHPStanTestCase
1011
{
1112

tests/PHPStan/Analyser/ArgumentsNormalizerLegacyTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@
1313
use PHPStan\ShouldNotHappenException;
1414
use PHPStan\Testing\PHPStanTestCase;
1515
use PHPStan\Type\Constant\ConstantIntegerType;
16+
use PHPUnit\Framework\Attributes\CoversClass;
1617
use PHPUnit\Framework\Attributes\RequiresPhp;
1718

19+
#[CoversClass(ArgumentsNormalizer::class)]
1820
final class ArgumentsNormalizerLegacyTest extends PHPStanTestCase
1921
{
2022

tests/PHPStan/Analyser/ArgumentsNormalizerTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
use PHPUnit\Framework\Attributes\DataProvider;
2121
use function count;
2222

23+
#[CoversClass(ArgumentsNormalizer::class)]
2324
class ArgumentsNormalizerTest extends PHPStanTestCase
2425
{
2526

tests/PHPStan/Analyser/ErrorTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
namespace PHPStan\Analyser;
44

55
use PHPStan\Testing\PHPStanTestCase;
6+
use PHPUnit\Framework\Attributes\CoversClass;
67
use PHPUnit\Framework\Attributes\DataProvider;
78

9+
#[CoversClass(Error::class)]
810
class ErrorTest extends PHPStanTestCase
911
{
1012

tests/PHPStan/Analyser/ExpressionResultTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
use function get_class;
1616
use function sprintf;
1717

18+
#[\PHPUnit\Framework\Attributes\CoversNothing]
1819
class ExpressionResultTest extends PHPStanTestCase
1920
{
2021

tests/PHPStan/Analyser/Ignore/IgnoreLexerTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33
namespace PHPStan\Analyser\Ignore;
44

55
use PHPStan\Testing\PHPStanTestCase;
6+
use PHPUnit\Framework\Attributes\CoversClass;
67
use PHPUnit\Framework\Attributes\DataProvider;
78
use function array_pop;
89
use function substr_count;
910
use const PHP_EOL;
1011

12+
#[CoversClass(IgnoreLexer::class)]
1113
class IgnoreLexerTest extends PHPStanTestCase
1214
{
1315

tests/PHPStan/Analyser/ScopeTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
use PHPStan\Type\VerbosityLevel;
1919
use PHPUnit\Framework\Attributes\DataProvider;
2020

21+
#[\PHPUnit\Framework\Attributes\CoversNothing]
2122
class ScopeTest extends PHPStanTestCase
2223
{
2324

tests/PHPStan/Analyser/StatementResultTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
use PHPUnit\Framework\Attributes\DataProvider;
1414
use function sprintf;
1515

16+
#[\PHPUnit\Framework\Attributes\CoversNothing]
1617
class StatementResultTest extends PHPStanTestCase
1718
{
1819

tests/PHPStan/Analyser/TypeSpecifierContextTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@
44

55
use PHPStan\ShouldNotHappenException;
66
use PHPStan\Testing\PHPStanTestCase;
7+
use PHPUnit\Framework\Attributes\CoversClass;
78
use PHPUnit\Framework\Attributes\DataProvider;
89

10+
#[CoversClass(TypeSpecifierContext::class)]
911
class TypeSpecifierContextTest extends PHPStanTestCase
1012
{
1113

0 commit comments

Comments
 (0)