2525use Hyperf \Di \ReflectionManager ;
2626use HyperfTest \AsyncQueue \Stub \FooProxy ;
2727use Mockery ;
28+ use PHPUnit \Framework \Attributes \CoversNothing ;
2829use PHPUnit \Framework \TestCase ;
2930use Psr \Container \ContainerInterface ;
3031
3132/**
3233 * @internal
3334 * @coversNothing
3435 */
36+ #[CoversNothing]
3537class AsyncQueueAspectTest extends TestCase
3638{
3739 protected function tearDown (): void
@@ -41,9 +43,7 @@ protected function tearDown(): void
4143 ReflectionManager::clear ();
4244 }
4345
44- /**
45- * @group NonCoroutine
46- */
46+ #[\PHPUnit \Framework \Attributes \Group('NonCoroutine ' )]
4747 public function testNotAsyncMessage ()
4848 {
4949 $ container = $ this ->getContainer ();
@@ -56,9 +56,7 @@ public function testNotAsyncMessage()
5656 $ this ->assertSame ([$ id , $ uuid , $ data ], Context::get (FooProxy::class));
5757 }
5858
59- /**
60- * @group NonCoroutine
61- */
59+ #[\PHPUnit \Framework \Attributes \Group('NonCoroutine ' )]
6260 public function testAsyncMessage ()
6361 {
6462 $ container = $ this ->getContainer ();
@@ -71,9 +69,7 @@ public function testAsyncMessage()
7169 $ this ->assertSame ($ data , Context::get (FooProxy::class));
7270 }
7371
74- /**
75- * @group NonCoroutine
76- */
72+ #[\PHPUnit \Framework \Attributes \Group('NonCoroutine ' )]
7773 public function testAsyncMessageVariadic ()
7874 {
7975 $ container = $ this ->getContainer ();
0 commit comments