Skip to content

Commit 3f1cbc1

Browse files
phpstan-botclaude
andcommitted
Deduplicate bug-8270 and bug-13623 test files
Point IfConstantConditionRuleTest and NullCoalesceRuleTest to the existing nsrt test files instead of maintaining duplicate copies. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 86db4da commit 3f1cbc1

4 files changed

Lines changed: 2 additions & 51 deletions

File tree

tests/PHPStan/Rules/Comparison/IfConstantConditionRuleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ public function testBug4284(): void
216216
public function testBug8270(): void
217217
{
218218
$this->treatPhpDocTypesAsCertain = true;
219-
$this->analyse([__DIR__ . '/data/bug-8270.php'], []);
219+
$this->analyse([__DIR__ . '/../../Analyser/nsrt/bug-8270.php'], []);
220220
}
221221

222222
}

tests/PHPStan/Rules/Comparison/data/bug-8270.php

Lines changed: 0 additions & 29 deletions
This file was deleted.

tests/PHPStan/Rules/Variables/NullCoalesceRuleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ public function testBug13921(): void
379379

380380
public function testBug13623(): void
381381
{
382-
$this->analyse([__DIR__ . '/data/bug-13623.php'], []);
382+
$this->analyse([__DIR__ . '/../../Analyser/nsrt/bug-13623.php'], []);
383383
}
384384

385385
}

tests/PHPStan/Rules/Variables/data/bug-13623.php

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)