1111
1212namespace Symfony \Bridge \PhpUnit \Tests ;
1313
14+ use PHPUnit \Framework \Attributes \Group ;
1415use PHPUnit \Framework \Attributes \RequiresPhpunit ;
16+ use PHPUnit \Framework \Attributes \RunInSeparateProcess ;
1517use PHPUnit \Framework \TestCase ;
1618use Symfony \Bridge \PhpUnit \ExpectDeprecationTrait ;
1719
@@ -25,6 +27,7 @@ final class ExpectDeprecationTraitTest extends TestCase
2527 *
2628 * @group legacy
2729 */
30+ #[Group('legacy ' )]
2831 public function testOne ()
2932 {
3033 $ this ->expectDeprecation ('foo ' );
@@ -38,6 +41,8 @@ public function testOne()
3841 *
3942 * @runInSeparateProcess
4043 */
44+ #[Group('legacy ' )]
45+ #[RunInSeparateProcess]
4146 public function testOneInIsolation ()
4247 {
4348 $ this ->expectDeprecation ('foo ' );
@@ -49,6 +54,7 @@ public function testOneInIsolation()
4954 *
5055 * @group legacy
5156 */
57+ #[Group('legacy ' )]
5258 public function testMany ()
5359 {
5460 $ this ->expectDeprecation ('foo ' );
@@ -64,6 +70,7 @@ public function testMany()
6470 *
6571 * @expectedDeprecation foo
6672 */
73+ #[Group('legacy ' )]
6774 public function testOneWithAnnotation ()
6875 {
6976 $ this ->expectDeprecation ('bar ' );
@@ -79,6 +86,7 @@ public function testOneWithAnnotation()
7986 * @expectedDeprecation foo
8087 * @expectedDeprecation bar
8188 */
89+ #[Group('legacy ' )]
8290 public function testManyWithAnnotation ()
8391 {
8492 $ this ->expectDeprecation ('ccc ' );
0 commit comments