Skip to content

Commit a10e810

Browse files
committed
Added #[Covers*] attributes to tests
1 parent 770b08c commit a10e810

File tree

105 files changed

+209
-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

+209
-0
lines changed

tests/PHPStan/Analyser/AnalyserIntegrationTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@
1111
use PHPStan\Testing\PHPStanTestCase;
1212
use PHPStan\Type\Constant\ConstantIntegerType;
1313
use PHPStan\Type\Constant\ConstantStringType;
14+
use PHPUnit\Framework\Attributes\CoversNothing;
1415
use PHPUnit\Framework\Attributes\RequiresPhp;
1516
use function extension_loaded;
1617
use function sprintf;
1718
use const PHP_VERSION_ID;
1819

20+
#[CoversNothing]
1921
class AnalyserIntegrationTest extends PHPStanTestCase
2022
{
2123

tests/PHPStan/Analyser/AnalyserTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
use PHPStan\Rules\Properties\ReadWritePropertiesExtensionProvider;
3232
use PHPStan\Testing\PHPStanTestCase;
3333
use PHPStan\Type\FileTypeMapper;
34+
use PHPUnit\Framework\Attributes\CoversNothing;
3435
use PHPUnit\Framework\Attributes\DataProvider;
3536
use stdClass;
3637
use function array_map;
@@ -44,6 +45,7 @@
4445
use function substr;
4546
use const PHP_OS;
4647

48+
#[CoversNothing]
4749
class AnalyserTest extends PHPStanTestCase
4850
{
4951

tests/PHPStan/Analyser/AnalyserTraitsIntegrationTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,15 @@
55
use Override;
66
use PHPStan\File\FileHelper;
77
use PHPStan\Testing\PHPStanTestCase;
8+
use PHPUnit\Framework\Attributes\CoversNothing;
89
use PHPUnit\Framework\Attributes\RequiresPhp;
910
use function array_map;
1011
use function array_merge;
1112
use function array_unique;
1213
use function sprintf;
1314
use function usort;
1415

16+
#[CoversNothing]
1517
class AnalyserTraitsIntegrationTest extends PHPStanTestCase
1618
{
1719

tests/PHPStan/Analyser/AnalyserWithCheckDynamicPropertiesTest.php

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

55
use PHPStan\Testing\PHPStanTestCase;
6+
use PHPUnit\Framework\Attributes\CoversNothing;
67
use function array_merge;
78
use function array_unique;
89

10+
#[CoversNothing]
911
class AnalyserWithCheckDynamicPropertiesTest extends PHPStanTestCase
1012
{
1113

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\CoversNothing;
1617
use PHPUnit\Framework\Attributes\RequiresPhp;
1718

19+
#[CoversNothing]
1820
final class ArgumentsNormalizerLegacyTest extends PHPStanTestCase
1921
{
2022

tests/PHPStan/Analyser/ArgumentsNormalizerTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@
1717
use PHPStan\Type\StringType;
1818
use PHPStan\Type\Type;
1919
use PHPStan\Type\VerbosityLevel;
20+
use PHPUnit\Framework\Attributes\CoversNothing;
2021
use PHPUnit\Framework\Attributes\DataProvider;
2122
use function count;
2223

24+
#[CoversNothing]
2325
class ArgumentsNormalizerTest extends PHPStanTestCase
2426
{
2527

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\CoversNothing;
67
use PHPUnit\Framework\Attributes\DataProvider;
78

9+
#[CoversNothing]
810
class ErrorTest extends PHPStanTestCase
911
{
1012

tests/PHPStan/Analyser/ExpressionResultTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@
1010
use PHPStan\Type\ArrayType;
1111
use PHPStan\Type\IntegerType;
1212
use PHPStan\Type\MixedType;
13+
use PHPUnit\Framework\Attributes\CoversNothing;
1314
use PHPUnit\Framework\Attributes\DataProvider;
1415
use function count;
1516
use function get_class;
1617
use function sprintf;
1718

19+
#[CoversNothing]
1820
class ExpressionResultTest extends PHPStanTestCase
1921
{
2022

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\CoversNothing;
67
use PHPUnit\Framework\Attributes\DataProvider;
78
use function array_pop;
89
use function substr_count;
910
use const PHP_EOL;
1011

12+
#[CoversNothing]
1113
class IgnoreLexerTest extends PHPStanTestCase
1214
{
1315

tests/PHPStan/Analyser/ScopeTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@
1616
use PHPStan\Type\Type;
1717
use PHPStan\Type\UnionType;
1818
use PHPStan\Type\VerbosityLevel;
19+
use PHPUnit\Framework\Attributes\CoversNothing;
1920
use PHPUnit\Framework\Attributes\DataProvider;
2021

22+
#[CoversNothing]
2123
class ScopeTest extends PHPStanTestCase
2224
{
2325

0 commit comments

Comments
 (0)