Skip to content

Commit 00599a8

Browse files
phpstan-botclaude
andcommitted
Remove duplicate test fixtures, reference nsrt files from rule tests
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 98071b0 commit 00599a8

5 files changed

Lines changed: 4 additions & 123 deletions

File tree

tests/PHPStan/Rules/Generics/ClassAncestorsRuleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ public function testBug7021(): void
292292

293293
public function testBug7152(): void
294294
{
295-
$this->analyse([__DIR__ . '/data/bug-7152.php'], []);
295+
$this->analyse([__DIR__ . '/../../Analyser/nsrt/bug-7152.php'], []);
296296
}
297297

298298
}

tests/PHPStan/Rules/Generics/ClassTemplateTypeRuleTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,18 +153,18 @@ public function testBug10049(): void
153153

154154
public function testBug11314(): void
155155
{
156-
$this->analyse([__DIR__ . '/data/bug-11314.php'], []);
156+
$this->analyse([__DIR__ . '/../../Analyser/nsrt/bug-11314.php'], []);
157157
}
158158

159159
#[RequiresPhp('>= 8.1.0')]
160160
public function testBug13332(): void
161161
{
162-
$this->analyse([__DIR__ . '/data/bug-13332.php'], []);
162+
$this->analyse([__DIR__ . '/../../Analyser/nsrt/bug-13332.php'], []);
163163
}
164164

165165
public function testBug7152(): void
166166
{
167-
$this->analyse([__DIR__ . '/data/bug-7152.php'], []);
167+
$this->analyse([__DIR__ . '/../../Analyser/nsrt/bug-7152.php'], []);
168168
}
169169

170170
}

tests/PHPStan/Rules/Generics/data/bug-11314.php

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

tests/PHPStan/Rules/Generics/data/bug-13332.php

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

tests/PHPStan/Rules/Generics/data/bug-7152.php

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

0 commit comments

Comments
 (0)