Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
/compiler/vendor
/conf/config.local.yml
/build-cs
/infection.json5
/infection.phar
/build-infection
/vendor
/.idea/*
!.idea/icon.png
Expand Down
21 changes: 21 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -163,3 +163,24 @@ name-collision:

composer-dependency-analyser:
php vendor/bin/composer-dependency-analyser --config build/composer-dependency-analyser.php

.PHONY: infection
infection:
git clone https://github.com/phpstan/build-infection.git || true
git -C build-infection fetch origin && git -C build-infection reset --hard origin/1.x
composer install --working-dir build-infection --no-interaction --no-progress
php build-infection/bin/infection-config.php --source-directory='build/PHPStan/Build'> infection.json5
version=$(shell jq -r '.packages[] | select(.name == "infection/infection") | .version' build-infection/composer.lock); \
wget https://github.com/infection/infection/releases/download/$$version/infection.phar --no-clobber;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need to download infection.phar, you can run infection from build-infection/vendor/bin/infection

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried this beforehand, but it doesn't work. our generated config requires infection to run from the project root.

chmod +x infection.phar
XDEBUG_MODE=coverage php tests/vendor/bin/paratest \
--coverage-xml=tmp/coverage/coverage-xml \
--log-junit=tmp/coverage/junit.xml
php infection.phar \
--git-diff-base=origin/2.1.x \
--git-diff-lines \
--coverage=tmp/coverage \
--skip-initial-tests \
--ignore-msi-with-no-mutations \
--logger-text=php://stdout
rm infection.json5 infection.phar
1 change: 1 addition & 0 deletions tests/PHPStan/Analyser/AnalyserIntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
use function sprintf;
use const PHP_VERSION_ID;

#[\PHPUnit\Framework\Attributes\CoversNothing]

Check failure on line 19 in tests/PHPStan/Analyser/AnalyserIntegrationTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.1, ubuntu-latest)

Attribute class PHPUnit\Framework\Attributes\CoversNothing does not exist.

Check failure on line 19 in tests/PHPStan/Analyser/AnalyserIntegrationTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.0, ubuntu-latest)

Attribute class PHPUnit\Framework\Attributes\CoversNothing does not exist.

Check failure on line 19 in tests/PHPStan/Analyser/AnalyserIntegrationTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.1, windows-latest)

Attribute class PHPUnit\Framework\Attributes\CoversNothing does not exist.

Check failure on line 19 in tests/PHPStan/Analyser/AnalyserIntegrationTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.0, windows-latest)

Attribute class PHPUnit\Framework\Attributes\CoversNothing does not exist.
class AnalyserIntegrationTest extends PHPStanTestCase
{

Expand Down
1 change: 1 addition & 0 deletions tests/PHPStan/Analyser/AnalyserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
use function substr;
use const PHP_OS;

#[\PHPUnit\Framework\Attributes\CoversNothing]

Check failure on line 47 in tests/PHPStan/Analyser/AnalyserTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.1, ubuntu-latest)

Attribute class PHPUnit\Framework\Attributes\CoversNothing does not exist.

Check failure on line 47 in tests/PHPStan/Analyser/AnalyserTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.0, ubuntu-latest)

Attribute class PHPUnit\Framework\Attributes\CoversNothing does not exist.

Check failure on line 47 in tests/PHPStan/Analyser/AnalyserTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.1, windows-latest)

Attribute class PHPUnit\Framework\Attributes\CoversNothing does not exist.

Check failure on line 47 in tests/PHPStan/Analyser/AnalyserTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.0, windows-latest)

Attribute class PHPUnit\Framework\Attributes\CoversNothing does not exist.
class AnalyserTest extends PHPStanTestCase
{

Expand Down
1 change: 1 addition & 0 deletions tests/PHPStan/Analyser/AnalyserTraitsIntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
use function sprintf;
use function usort;

#[\PHPUnit\Framework\Attributes\CoversNothing]

Check failure on line 15 in tests/PHPStan/Analyser/AnalyserTraitsIntegrationTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.1, ubuntu-latest)

Attribute class PHPUnit\Framework\Attributes\CoversNothing does not exist.

Check failure on line 15 in tests/PHPStan/Analyser/AnalyserTraitsIntegrationTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.0, ubuntu-latest)

Attribute class PHPUnit\Framework\Attributes\CoversNothing does not exist.

Check failure on line 15 in tests/PHPStan/Analyser/AnalyserTraitsIntegrationTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.1, windows-latest)

Attribute class PHPUnit\Framework\Attributes\CoversNothing does not exist.

Check failure on line 15 in tests/PHPStan/Analyser/AnalyserTraitsIntegrationTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.0, windows-latest)

Attribute class PHPUnit\Framework\Attributes\CoversNothing does not exist.
class AnalyserTraitsIntegrationTest extends PHPStanTestCase
{

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use function array_merge;
use function array_unique;

#[\PHPUnit\Framework\Attributes\CoversNothing]

Check failure on line 9 in tests/PHPStan/Analyser/AnalyserWithCheckDynamicPropertiesTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.1, ubuntu-latest)

Attribute class PHPUnit\Framework\Attributes\CoversNothing does not exist.

Check failure on line 9 in tests/PHPStan/Analyser/AnalyserWithCheckDynamicPropertiesTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.0, ubuntu-latest)

Attribute class PHPUnit\Framework\Attributes\CoversNothing does not exist.

Check failure on line 9 in tests/PHPStan/Analyser/AnalyserWithCheckDynamicPropertiesTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.1, windows-latest)

Attribute class PHPUnit\Framework\Attributes\CoversNothing does not exist.

Check failure on line 9 in tests/PHPStan/Analyser/AnalyserWithCheckDynamicPropertiesTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.0, windows-latest)

Attribute class PHPUnit\Framework\Attributes\CoversNothing does not exist.
class AnalyserWithCheckDynamicPropertiesTest extends PHPStanTestCase
{

Expand Down
2 changes: 2 additions & 0 deletions tests/PHPStan/Analyser/ArgumentsNormalizerLegacyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@
use PHPStan\ShouldNotHappenException;
use PHPStan\Testing\PHPStanTestCase;
use PHPStan\Type\Constant\ConstantIntegerType;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\Attributes\RequiresPhp;

#[CoversClass(ArgumentsNormalizer::class)]

Check failure on line 19 in tests/PHPStan/Analyser/ArgumentsNormalizerLegacyTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.1, ubuntu-latest)

Attribute class PHPUnit\Framework\Attributes\CoversClass does not exist.

Check failure on line 19 in tests/PHPStan/Analyser/ArgumentsNormalizerLegacyTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.0, ubuntu-latest)

Attribute class PHPUnit\Framework\Attributes\CoversClass does not exist.

Check failure on line 19 in tests/PHPStan/Analyser/ArgumentsNormalizerLegacyTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.1, windows-latest)

Attribute class PHPUnit\Framework\Attributes\CoversClass does not exist.

Check failure on line 19 in tests/PHPStan/Analyser/ArgumentsNormalizerLegacyTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.0, windows-latest)

Attribute class PHPUnit\Framework\Attributes\CoversClass does not exist.
final class ArgumentsNormalizerLegacyTest extends PHPStanTestCase
{

Expand Down
1 change: 1 addition & 0 deletions tests/PHPStan/Analyser/ArgumentsNormalizerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
use PHPUnit\Framework\Attributes\DataProvider;
use function count;

#[CoversClass(ArgumentsNormalizer::class)]

Check failure on line 23 in tests/PHPStan/Analyser/ArgumentsNormalizerTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.2, ubuntu-latest)

Attribute class PHPStan\Analyser\CoversClass does not exist.

Check failure on line 23 in tests/PHPStan/Analyser/ArgumentsNormalizerTest.php

View workflow job for this annotation

GitHub Actions / PHPStan with result cache (8.4)

Attribute class PHPStan\Analyser\CoversClass does not exist.

Check failure on line 23 in tests/PHPStan/Analyser/ArgumentsNormalizerTest.php

View workflow job for this annotation

GitHub Actions / PHPStan with result cache (8.3)

Attribute class PHPStan\Analyser\CoversClass does not exist.

Check failure on line 23 in tests/PHPStan/Analyser/ArgumentsNormalizerTest.php

View workflow job for this annotation

GitHub Actions / PHPStan with result cache (8.2)

Attribute class PHPStan\Analyser\CoversClass does not exist.

Check failure on line 23 in tests/PHPStan/Analyser/ArgumentsNormalizerTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.5, ubuntu-latest)

Attribute class PHPStan\Analyser\CoversClass does not exist.

Check failure on line 23 in tests/PHPStan/Analyser/ArgumentsNormalizerTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.4, ubuntu-latest)

Attribute class PHPStan\Analyser\CoversClass does not exist.

Check failure on line 23 in tests/PHPStan/Analyser/ArgumentsNormalizerTest.php

View workflow job for this annotation

GitHub Actions / PHPStan with result cache (8.5)

Attribute class PHPStan\Analyser\CoversClass does not exist.

Check failure on line 23 in tests/PHPStan/Analyser/ArgumentsNormalizerTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.3, ubuntu-latest)

Attribute class PHPStan\Analyser\CoversClass does not exist.

Check failure on line 23 in tests/PHPStan/Analyser/ArgumentsNormalizerTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.1, ubuntu-latest)

Attribute class PHPStan\Analyser\CoversClass does not exist.

Check failure on line 23 in tests/PHPStan/Analyser/ArgumentsNormalizerTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.0, ubuntu-latest)

Attribute class PHPStan\Analyser\CoversClass does not exist.

Check failure on line 23 in tests/PHPStan/Analyser/ArgumentsNormalizerTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.5, windows-latest)

Attribute class PHPStan\Analyser\CoversClass does not exist.

Check failure on line 23 in tests/PHPStan/Analyser/ArgumentsNormalizerTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.3, windows-latest)

Attribute class PHPStan\Analyser\CoversClass does not exist.

Check failure on line 23 in tests/PHPStan/Analyser/ArgumentsNormalizerTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.4, windows-latest)

Attribute class PHPStan\Analyser\CoversClass does not exist.

Check failure on line 23 in tests/PHPStan/Analyser/ArgumentsNormalizerTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.1, windows-latest)

Attribute class PHPStan\Analyser\CoversClass does not exist.

Check failure on line 23 in tests/PHPStan/Analyser/ArgumentsNormalizerTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.2, windows-latest)

Attribute class PHPStan\Analyser\CoversClass does not exist.

Check failure on line 23 in tests/PHPStan/Analyser/ArgumentsNormalizerTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.0, windows-latest)

Attribute class PHPStan\Analyser\CoversClass does not exist.
class ArgumentsNormalizerTest extends PHPStanTestCase
{

Expand Down
2 changes: 2 additions & 0 deletions tests/PHPStan/Analyser/ErrorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
namespace PHPStan\Analyser;

use PHPStan\Testing\PHPStanTestCase;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\Attributes\DataProvider;

#[CoversClass(Error::class)]

Check failure on line 9 in tests/PHPStan/Analyser/ErrorTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.1, ubuntu-latest)

Attribute class PHPUnit\Framework\Attributes\CoversClass does not exist.

Check failure on line 9 in tests/PHPStan/Analyser/ErrorTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.0, ubuntu-latest)

Attribute class PHPUnit\Framework\Attributes\CoversClass does not exist.

Check failure on line 9 in tests/PHPStan/Analyser/ErrorTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.1, windows-latest)

Attribute class PHPUnit\Framework\Attributes\CoversClass does not exist.

Check failure on line 9 in tests/PHPStan/Analyser/ErrorTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.0, windows-latest)

Attribute class PHPUnit\Framework\Attributes\CoversClass does not exist.
class ErrorTest extends PHPStanTestCase
{

Expand Down
1 change: 1 addition & 0 deletions tests/PHPStan/Analyser/ExpressionResultTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
use function get_class;
use function sprintf;

#[\PHPUnit\Framework\Attributes\CoversNothing]

Check failure on line 18 in tests/PHPStan/Analyser/ExpressionResultTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.1, ubuntu-latest)

Attribute class PHPUnit\Framework\Attributes\CoversNothing does not exist.

Check failure on line 18 in tests/PHPStan/Analyser/ExpressionResultTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.0, ubuntu-latest)

Attribute class PHPUnit\Framework\Attributes\CoversNothing does not exist.

Check failure on line 18 in tests/PHPStan/Analyser/ExpressionResultTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.1, windows-latest)

Attribute class PHPUnit\Framework\Attributes\CoversNothing does not exist.

Check failure on line 18 in tests/PHPStan/Analyser/ExpressionResultTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.0, windows-latest)

Attribute class PHPUnit\Framework\Attributes\CoversNothing does not exist.
class ExpressionResultTest extends PHPStanTestCase
{

Expand Down
2 changes: 2 additions & 0 deletions tests/PHPStan/Analyser/Ignore/IgnoreLexerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@
namespace PHPStan\Analyser\Ignore;

use PHPStan\Testing\PHPStanTestCase;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\Attributes\DataProvider;
use function array_pop;
use function substr_count;
use const PHP_EOL;

#[CoversClass(IgnoreLexer::class)]

Check failure on line 12 in tests/PHPStan/Analyser/Ignore/IgnoreLexerTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.1, ubuntu-latest)

Attribute class PHPUnit\Framework\Attributes\CoversClass does not exist.

Check failure on line 12 in tests/PHPStan/Analyser/Ignore/IgnoreLexerTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.0, ubuntu-latest)

Attribute class PHPUnit\Framework\Attributes\CoversClass does not exist.

Check failure on line 12 in tests/PHPStan/Analyser/Ignore/IgnoreLexerTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.1, windows-latest)

Attribute class PHPUnit\Framework\Attributes\CoversClass does not exist.

Check failure on line 12 in tests/PHPStan/Analyser/Ignore/IgnoreLexerTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.0, windows-latest)

Attribute class PHPUnit\Framework\Attributes\CoversClass does not exist.
class IgnoreLexerTest extends PHPStanTestCase
{

Expand Down
1 change: 1 addition & 0 deletions tests/PHPStan/Analyser/ScopeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
use PHPStan\Type\VerbosityLevel;
use PHPUnit\Framework\Attributes\DataProvider;

#[\PHPUnit\Framework\Attributes\CoversNothing]

Check failure on line 21 in tests/PHPStan/Analyser/ScopeTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.1, ubuntu-latest)

Attribute class PHPUnit\Framework\Attributes\CoversNothing does not exist.

Check failure on line 21 in tests/PHPStan/Analyser/ScopeTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.0, ubuntu-latest)

Attribute class PHPUnit\Framework\Attributes\CoversNothing does not exist.

Check failure on line 21 in tests/PHPStan/Analyser/ScopeTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.1, windows-latest)

Attribute class PHPUnit\Framework\Attributes\CoversNothing does not exist.

Check failure on line 21 in tests/PHPStan/Analyser/ScopeTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.0, windows-latest)

Attribute class PHPUnit\Framework\Attributes\CoversNothing does not exist.
class ScopeTest extends PHPStanTestCase
{

Expand Down
1 change: 1 addition & 0 deletions tests/PHPStan/Analyser/StatementResultTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
use PHPUnit\Framework\Attributes\DataProvider;
use function sprintf;

#[\PHPUnit\Framework\Attributes\CoversNothing]
class StatementResultTest extends PHPStanTestCase
{

Expand Down
2 changes: 2 additions & 0 deletions tests/PHPStan/Analyser/TypeSpecifierContextTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@

use PHPStan\ShouldNotHappenException;
use PHPStan\Testing\PHPStanTestCase;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\Attributes\DataProvider;

#[CoversClass(TypeSpecifierContext::class)]
class TypeSpecifierContextTest extends PHPStanTestCase
{

Expand Down
2 changes: 2 additions & 0 deletions tests/PHPStan/Analyser/TypeSpecifierTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,15 @@
use PHPStan\Type\StringType;
use PHPStan\Type\UnionType;
use PHPStan\Type\VerbosityLevel;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\Attributes\DataProvider;
use function implode;
use function sprintf;
use const PHP_INT_MAX;
use const PHP_INT_MIN;
use const PHP_VERSION_ID;

#[CoversClass(TypeSpecifierTest::class)]
class TypeSpecifierTest extends PHPStanTestCase
{

Expand Down
1 change: 1 addition & 0 deletions tests/PHPStan/Collectors/RegistryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use PHPStan\Analyser\Scope;
use PHPStan\Testing\PHPStanTestCase;

#[\PHPUnit\Framework\Attributes\CoversNothing]
class RegistryTest extends PHPStanTestCase
{

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
use function stream_get_contents;
use const DIRECTORY_SEPARATOR;

#[\PHPUnit\Framework\Attributes\CoversNothing]
class AnalyseApplicationIntegrationTest extends PHPStanTestCase
{

Expand Down
1 change: 1 addition & 0 deletions tests/PHPStan/Command/AnalyseCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
use const PHP_EOL;

#[Group('exec')]
#[\PHPUnit\Framework\Attributes\CoversNothing]
class AnalyseCommandTest extends PHPStanTestCase
{

Expand Down
1 change: 1 addition & 0 deletions tests/PHPStan/Command/AnalysisResultTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use PHPStan\Analyser\Error;
use PHPStan\Testing\PHPStanTestCase;

#[\PHPUnit\Framework\Attributes\CoversNothing]
final class AnalysisResultTest extends PHPStanTestCase
{

Expand Down
2 changes: 2 additions & 0 deletions tests/PHPStan/Command/IgnoredRegexValidatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
use Hoa\File\Read;
use PHPStan\PhpDoc\TypeStringResolver;
use PHPStan\Testing\PHPStanTestCase;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\Attributes\DataProvider;

#[CoversClass(IgnoredRegexValidator::class)]
class IgnoredRegexValidatorTest extends PHPStanTestCase
{

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use function array_map;
use function get_class;

#[\PHPUnit\Framework\Attributes\CoversNothing]
class ConditionalTagsExtensionTest extends PHPStanTestCase
{

Expand Down
1 change: 1 addition & 0 deletions tests/PHPStan/DependencyInjection/IgnoreErrorsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use PHPStan\Testing\PHPStanTestCase;

#[\PHPUnit\Framework\Attributes\CoversNothing]
class IgnoreErrorsTest extends PHPStanTestCase
{

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use PHPStan\Testing\PHPStanTestCase;
use PHPUnit\Framework\Attributes\DataProvider;

#[\PHPUnit\Framework\Attributes\CoversNothing]
class InvalidIgnoredErrorExceptionTest extends PHPStanTestCase
{

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use PHPStan\TrinaryLogic;
use PHPStan\Type\Php\ReflectionGetAttributesMethodReturnTypeExtension;

#[\PHPUnit\Framework\Attributes\CoversNothing]
class NetteContainerTest extends PHPStanTestCase
{

Expand Down
2 changes: 2 additions & 0 deletions tests/PHPStan/File/FileExcluderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
namespace PHPStan\File;

use PHPStan\Testing\PHPStanTestCase;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\Attributes\DataProvider;

#[CoversClass(FileExcluder::class)]
class FileExcluderTest extends PHPStanTestCase
{

Expand Down
2 changes: 2 additions & 0 deletions tests/PHPStan/File/FileHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
namespace PHPStan\File;

use PHPStan\Testing\PHPStanTestCase;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\Attributes\DataProvider;

#[CoversClass(FileHelper::class)]
class FileHelperTest extends PHPStanTestCase
{

Expand Down
1 change: 1 addition & 0 deletions tests/PHPStan/Generics/TemplateTypeFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
use PHPUnit\Framework\Attributes\DataProvider;
use function sprintf;

#[\PHPUnit\Framework\Attributes\CoversNothing]
class TemplateTypeFactoryTest extends PHPStanTestCase
{

Expand Down
2 changes: 2 additions & 0 deletions tests/PHPStan/Parser/CachedParserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@
use PHPStan\File\FileHelper;
use PHPStan\File\FileReader;
use PHPStan\Testing\PHPStanTestCase;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\MockObject\MockObject;

#[CoversClass(CachedParser::class)]
class CachedParserTest extends PHPStanTestCase
{

Expand Down
2 changes: 2 additions & 0 deletions tests/PHPStan/Parser/CleaningParserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@
use PHPStan\Node\Printer\Printer;
use PHPStan\Php\PhpVersion;
use PHPStan\Testing\PHPStanTestCase;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\Attributes\DataProvider;
use const PHP_VERSION_ID;

#[CoversClass(CleaningParser::class)]
class CleaningParserTest extends PHPStanTestCase
{

Expand Down
1 change: 1 addition & 0 deletions tests/PHPStan/Parser/ParserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use PHPUnit\Framework\Attributes\DataProvider;
use function count;

#[\PHPUnit\Framework\Attributes\CoversNothing]
class ParserTest extends PHPStanTestCase
{

Expand Down
1 change: 1 addition & 0 deletions tests/PHPStan/Parser/RichParserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use PHPUnit\Framework\Attributes\DataProvider;
use const PHP_EOL;

#[\PHPUnit\Framework\Attributes\CoversNothing]
class RichParserTest extends PHPStanTestCase
{

Expand Down
1 change: 1 addition & 0 deletions tests/PHPStan/PhpDoc/DefaultStubFilesProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
use function sprintf;
use const DIRECTORY_SEPARATOR;

#[\PHPUnit\Framework\Attributes\CoversNothing]
class DefaultStubFilesProviderTest extends PHPStanTestCase
{

Expand Down
1 change: 1 addition & 0 deletions tests/PHPStan/PhpDoc/PhpDocStringResolverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use PHPStan\PhpDocParser\Parser\ParserException;
use PHPStan\Testing\PHPStanTestCase;

#[\PHPUnit\Framework\Attributes\CoversNothing]
class PhpDocStringResolverTest extends PHPStanTestCase
{

Expand Down
1 change: 1 addition & 0 deletions tests/PHPStan/PhpDoc/TypeDescriptionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
use PHPUnit\Framework\Attributes\DataProvider;
use function sprintf;

#[\PHPUnit\Framework\Attributes\CoversNothing]
class TypeDescriptionTest extends PHPStanTestCase
{

Expand Down
1 change: 1 addition & 0 deletions tests/PHPStan/PhpDoc/TypeStringResolverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use PHPStan\PhpDocParser\Parser\ParserException;
use PHPStan\Testing\PHPStanTestCase;

#[\PHPUnit\Framework\Attributes\CoversNothing]
class TypeStringResolverTest extends PHPStanTestCase
{

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
use function count;
use function sprintf;

#[\PHPUnit\Framework\Attributes\CoversNothing]
class AnnotationsMethodsClassReflectionExtensionTest extends PHPStanTestCase
{

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
use PHPUnit\Framework\Attributes\DataProvider;
use function sprintf;

#[\PHPUnit\Framework\Attributes\CoversNothing]
class AnnotationsPropertiesClassReflectionExtensionTest extends PHPStanTestCase
{

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
use PHPUnit\Framework\Attributes\RequiresPhp;
use const PHP_VERSION_ID;

#[\PHPUnit\Framework\Attributes\CoversNothing]
class DeprecatedAnnotationsTest extends PHPStanTestCase
{

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
use PHPStan\Testing\PHPStanTestCase;
use PHPUnit\Framework\Attributes\DataProvider;

#[\PHPUnit\Framework\Attributes\CoversNothing]
class FinalAnnotationsTest extends PHPStanTestCase
{

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
use PHPStan\Testing\PHPStanTestCase;
use PHPUnit\Framework\Attributes\DataProvider;

#[\PHPUnit\Framework\Attributes\CoversNothing]
class InternalAnnotationsTest extends PHPStanTestCase
{

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
use ThrowsAnnotations\FooTrait;
use ThrowsAnnotations\PhpstanFoo;

#[\PHPUnit\Framework\Attributes\CoversNothing]
class ThrowsAnnotationsTest extends PHPStanTestCase
{

Expand Down
1 change: 1 addition & 0 deletions tests/PHPStan/Reflection/AttributeReflectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
use function count;
use const PHP_VERSION_ID;

#[\PHPUnit\Framework\Attributes\CoversNothing]
class AttributeReflectionTest extends PHPStanTestCase
{

Expand Down
Loading
Loading