Skip to content

Commit cabaa73

Browse files
committed
Added #[Covers*] attributes to tests
1 parent 1d5946d commit cabaa73

File tree

105 files changed

+119
-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.

105 files changed

+119
-0
lines changed

tests/PHPStan/Analyser/AnalyserIntegrationTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
use function sprintf;
1717
use const PHP_VERSION_ID;
1818

19+
#[\PHPUnit\Framework\Attributes\CoversNothing]
1920
class AnalyserIntegrationTest extends PHPStanTestCase
2021
{
2122

tests/PHPStan/Analyser/AnalyserTest.php

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

47+
#[\PHPUnit\Framework\Attributes\CoversNothing]
4748
class AnalyserTest extends PHPStanTestCase
4849
{
4950

tests/PHPStan/Analyser/AnalyserTraitsIntegrationTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
use function sprintf;
1313
use function usort;
1414

15+
#[\PHPUnit\Framework\Attributes\CoversNothing]
1516
class AnalyserTraitsIntegrationTest extends PHPStanTestCase
1617
{
1718

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

0 commit comments

Comments
 (0)