Skip to content

Commit cfa08bf

Browse files
'Do not test deprecated #[RunClassInSeparateProcess] attribute
1 parent 2f27d38 commit cfa08bf

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

tests/_files/TestWithClassLevelIsolationAttributes.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,11 @@
1111

1212
use PHPUnit\Framework\Attributes\BackupGlobals;
1313
use PHPUnit\Framework\Attributes\BackupStaticProperties;
14-
use PHPUnit\Framework\Attributes\RunClassInSeparateProcess;
1514
use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;
1615
use PHPUnit\Framework\TestCase;
1716

1817
#[BackupGlobals(true)]
1918
#[BackupStaticProperties(true)]
20-
#[RunClassInSeparateProcess]
2119
#[RunTestsInSeparateProcesses]
2220
final class TestWithClassLevelIsolationAttributes extends TestCase
2321
{

tests/unit/Framework/TestBuilderTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
use function iterator_to_array;
1313
use PHPUnit\Framework\Attributes\CoversClass;
14-
use PHPUnit\Framework\Attributes\IgnorePhpunitDeprecations;
1514
use PHPUnit\Framework\Attributes\Small;
1615
use PHPUnit\TestFixture\TestBuilder\TestWithClassLevelIsolationAttributes;
1716
use PHPUnit\TestFixture\TestBuilder\TestWithDataProvider;
@@ -42,7 +41,6 @@ public function testBuildsTestWithoutMetadataForIsolation(): void
4241
$this->assertTrue($test->metadata()->isRunTestsInSeparateProcesses()->isEmpty());
4342
}
4443

45-
#[IgnorePhpunitDeprecations]
4644
public function testBuildsTestWithClassLevelMetadataForIsolation(): void
4745
{
4846
$test = (new TestBuilder)->build(
@@ -58,7 +56,6 @@ public function testBuildsTestWithClassLevelMetadataForIsolation(): void
5856
$this->assertSame('testOne', $test->methodName());
5957
$this->assertTrue($test->metadata()->isBackupGlobals()->asArray()[0]->enabled());
6058
$this->assertTrue($test->metadata()->isBackupStaticProperties()->asArray()[0]->enabled());
61-
$this->assertTrue($test->metadata()->isRunClassInSeparateProcess()->isNotEmpty());
6259
$this->assertTrue($test->metadata()->isRunTestsInSeparateProcesses()->isNotEmpty());
6360
}
6461

0 commit comments

Comments
 (0)