Skip to content

Commit 103574d

Browse files
authored
fix: GH-238 use internal constant (#239)
* fix: GH-238 use internal constant * fix: GH-238 missing class
1 parent 50bc942 commit 103574d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Rules/PHPUnit/NoDoubleConsecutiveTestMockRule.php

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

1717
/**
@@ -41,7 +41,7 @@ public function processNode(Node $node, Scope $scope): array
4141
}
4242

4343
$classReflection = $scope->getClassReflection();
44-
if (! $classReflection->is(PHPUnitClassName::TEST_CASE)) {
44+
if (! $classReflection->is(TestClassName::PHPUNIT_TEST_CASE)) {
4545
return [];
4646
}
4747

0 commit comments

Comments
 (0)