-
-
Notifications
You must be signed in to change notification settings - Fork 31
Open
Description
Symplify\PHPStanRules\Rules\PHPUnit\NoDoubleConsecutiveTestMockRule
uses Rector\PHPUnit\Enum\PHPUnitClassName
. This class is not pulled with composer dependecies. The issue is:
root@3b45e651e0d9:/app# ./vendor/bin/phpstan analyze
Note: Using configuration file /app/phpstan.neon.dist.
19/19 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%
-- ----------------------------------------------------------------------------------------------------------------------
Error
-- ----------------------------------------------------------------------------------------------------------------------
Internal error: Class "Rector\PHPUnit\Enum\PHPUnitClassName" not found while analysing file /app/tests/IndexTest.php
Run PHPStan with -v option and post the stack trace to:
https://github.com/phpstan/phpstan/issues/new?template=Bug_report.yaml
-- ----------------------------------------------------------------------------------------------------------------------
possible solutions:
- replace
PHPUnitClassName::TEST_CASE
with actual phpunit class name (this might be a better option as it's the only class used fromrector/rector-phpunit
) - require
rector/rector-phpunit
as dev dependency
Metadata
Metadata
Assignees
Labels
No labels