Skip to content

Commit 2564b16

Browse files
authored
tests: use unique namespace to prevent collisions
1 parent 1d283fc commit 2564b16

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

tests/PHPStan/Rules/PhpDoc/IncompatiblePhpDocTypeRuleTest.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -210,16 +210,14 @@ public function testValueOfEnum(): void
210210
$this->markTestSkipped('This test needs PHP 8.1');
211211
}
212212

213-
require __DIR__ . '/data/value-of-enum.php';
214-
215213
$this->analyse([__DIR__ . '/data/value-of-enum.php'], [
216214
[
217215
'PHPDoc tag @param for parameter $shouldError with type string is incompatible with native type int.',
218-
31,
216+
29,
219217
],
220218
[
221219
'PHPDoc tag @param for parameter $shouldError with type int is incompatible with native type string.',
222-
38,
220+
36,
223221
],
224222
]);
225223
}

tests/PHPStan/Rules/PhpDoc/data/value-of-enum.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
<?php // lint >= 8.1
22

3-
declare(strict_types=1);
4-
5-
namespace ValueOfEnum;
3+
namespace ValueOfEnumPhpdoc;
64

75
enum Country: string
86
{

0 commit comments

Comments
 (0)