Skip to content

Commit 78679b7

Browse files
committed
fixup! Skip tests that depend on Rector as incomplete
1 parent c8b2513 commit 78679b7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/Rules/Rector/PhpUpgradeDowngradeRegisteredInSetRule/PhpUpgradeDowngradeRegisteredInSetRuleTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace Symplify\PHPStanRules\Tests\Rules\Rector\PhpUpgradeDowngradeRegisteredInSetRule;
66

7+
use Rector\Contract\Rector\RectorInterface;
78
use Iterator;
89
use PHPStan\Rules\Rule;
910
use PHPStan\Testing\RuleTestCase;
@@ -20,7 +21,7 @@ final class PhpUpgradeDowngradeRegisteredInSetRuleTest extends RuleTestCase
2021
#[DataProvider('provideData')]
2122
public function testRule(string $filePath, array $expectedErrorsWithLines): void
2223
{
23-
if (! class_exists('Rector\Contract\Rector\RectorInterface')) {
24+
if (! class_exists(RectorInterface::class)) {
2425
$this->markTestIncomplete('Skip this test because Rector is not installed');
2526
}
2627

0 commit comments

Comments
 (0)