File tree Expand file tree Collapse file tree 2 files changed +0
-5
lines changed Expand file tree Collapse file tree 2 files changed +0
-5
lines changed Original file line number Diff line number Diff line change 11
11
12
12
use PHPUnit \Framework \Attributes \BackupGlobals ;
13
13
use PHPUnit \Framework \Attributes \BackupStaticProperties ;
14
- use PHPUnit \Framework \Attributes \RunClassInSeparateProcess ;
15
14
use PHPUnit \Framework \Attributes \RunTestsInSeparateProcesses ;
16
15
use PHPUnit \Framework \TestCase ;
17
16
18
17
#[BackupGlobals(true )]
19
18
#[BackupStaticProperties(true )]
20
- #[RunClassInSeparateProcess]
21
19
#[RunTestsInSeparateProcesses]
22
20
final class TestWithClassLevelIsolationAttributes extends TestCase
23
21
{
Original file line number Diff line number Diff line change 11
11
12
12
use function iterator_to_array ;
13
13
use PHPUnit \Framework \Attributes \CoversClass ;
14
- use PHPUnit \Framework \Attributes \IgnorePhpunitDeprecations ;
15
14
use PHPUnit \Framework \Attributes \Small ;
16
15
use PHPUnit \TestFixture \TestBuilder \TestWithClassLevelIsolationAttributes ;
17
16
use PHPUnit \TestFixture \TestBuilder \TestWithDataProvider ;
@@ -42,7 +41,6 @@ public function testBuildsTestWithoutMetadataForIsolation(): void
42
41
$ this ->assertTrue ($ test ->metadata ()->isRunTestsInSeparateProcesses ()->isEmpty ());
43
42
}
44
43
45
- #[IgnorePhpunitDeprecations]
46
44
public function testBuildsTestWithClassLevelMetadataForIsolation (): void
47
45
{
48
46
$ test = (new TestBuilder )->build (
@@ -58,7 +56,6 @@ public function testBuildsTestWithClassLevelMetadataForIsolation(): void
58
56
$ this ->assertSame ('testOne ' , $ test ->methodName ());
59
57
$ this ->assertTrue ($ test ->metadata ()->isBackupGlobals ()->asArray ()[0 ]->enabled ());
60
58
$ this ->assertTrue ($ test ->metadata ()->isBackupStaticProperties ()->asArray ()[0 ]->enabled ());
61
- $ this ->assertTrue ($ test ->metadata ()->isRunClassInSeparateProcess ()->isNotEmpty ());
62
59
$ this ->assertTrue ($ test ->metadata ()->isRunTestsInSeparateProcesses ()->isNotEmpty ());
63
60
}
64
61
You can’t perform that action at this time.
0 commit comments