Skip to content

Commit e418ba0

Browse files
committed
run in separate process
1 parent a335b36 commit e418ba0

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

tests/PHPStan/Analyser/AnalyserIntegrationTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
use PHPStan\Type\Constant\ConstantStringType;
1515
use PHPUnit\Framework\Attributes\CoversNothing;
1616
use PHPUnit\Framework\Attributes\RequiresPhp;
17+
use PHPUnit\Framework\Attributes\RunInSeparateProcess;
1718
use function extension_loaded;
1819
use function sprintf;
1920
use const PHP_VERSION_ID;
@@ -1203,6 +1204,7 @@ public static function getAdditionalConfigFiles(): array
12031204
}
12041205

12051206
/** @runInSeparateProcess */
1207+
#[RunInSeparateProcess]
12061208
public function testBug8004(): void
12071209
{
12081210
ConstantArrayTypeBuilder::setArrayCountLimit(256);

tests/PHPStan/Analyser/NodeScopeResolverTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
use PHPStan\Testing\TypeInferenceTestCase;
88
use PHPStan\Type\Constant\ConstantArrayTypeBuilder;
99
use PHPUnit\Framework\Attributes\DataProvider;
10+
use PHPUnit\Framework\Attributes\RunClassInSeparateProcess;
1011
use stdClass;
1112
use function array_merge;
1213
use function define;
@@ -23,6 +24,7 @@
2324
/**
2425
* @runInSeparateProcess
2526
*/
27+
#[RunClassInSeparateProcess]
2628
class NodeScopeResolverTest extends TypeInferenceTestCase
2729
{
2830

tests/PHPStan/Rules/Methods/ReturnTypeRuleTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
use PHPStan\Type\Constant\ConstantArrayTypeBuilder;
1010
use PHPUnit\Framework\Attributes\DataProvider;
1111
use PHPUnit\Framework\Attributes\RequiresPhp;
12+
use PHPUnit\Framework\Attributes\RunInSeparateProcess;
1213
use const PHP_VERSION_ID;
1314

1415
/**
@@ -857,6 +858,7 @@ public function testBug8223(): void
857858
}
858859

859860
/** @runInSeparateProcess */
861+
#[RunInSeparateProcess]
860862
public function testBug8146bErrors(): void
861863
{
862864
ConstantArrayTypeBuilder::setArrayCountLimit(256);

0 commit comments

Comments
 (0)