Skip to content

Commit ffd20ea

Browse files
committed
fix: GH-238 use internal constant
1 parent 947b9c7 commit ffd20ea

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Rules/PHPUnit/NoDoubleConsecutiveTestMockRule.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010
use PHPStan\Rules\Rule;
1111
use PHPStan\Rules\RuleError;
1212
use PHPStan\Rules\RuleErrorBuilder;
13-
use Rector\PHPUnit\Enum\PHPUnitClassName;
14-
use Symplify\PHPStanRules\Enum\RuleIdentifier\PHPUnitRuleIdentifier;
13+
use Symplify\PHPStanRules\Enum\TestClassName;
1514
use Symplify\PHPStanRules\Helper\NamingHelper;
1615

1716
/**
@@ -41,7 +40,7 @@ public function processNode(Node $node, Scope $scope): array
4140
}
4241

4342
$classReflection = $scope->getClassReflection();
44-
if (! $classReflection->is(PHPUnitClassName::TEST_CASE)) {
43+
if (! $classReflection->is(TestClassName::PHPUNIT_TEST_CASE)) {
4544
return [];
4645
}
4746

0 commit comments

Comments
 (0)