Skip to content

Commit 3fa6e8b

Browse files
Fixed bug that AOP not working when using variadic parameters. (#6372)
Co-authored-by: 李铭昕 <715557344@qq.com>
1 parent a708abd commit 3fa6e8b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/AsyncQueueAspectTest.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
use HyperfTest\AsyncQueue\Stub\FooProxy;
2727
use Mockery;
2828
use PHPUnit\Framework\Attributes\CoversNothing;
29+
use PHPUnit\Framework\Attributes\Group;
2930
use PHPUnit\Framework\TestCase;
3031
use Psr\Container\ContainerInterface;
3132

@@ -43,7 +44,7 @@ protected function tearDown(): void
4344
ReflectionManager::clear();
4445
}
4546

46-
#[\PHPUnit\Framework\Attributes\Group('NonCoroutine')]
47+
#[Group('NonCoroutine')]
4748
public function testNotAsyncMessage()
4849
{
4950
$container = $this->getContainer();
@@ -56,7 +57,7 @@ public function testNotAsyncMessage()
5657
$this->assertSame([$id, $uuid, $data], Context::get(FooProxy::class));
5758
}
5859

59-
#[\PHPUnit\Framework\Attributes\Group('NonCoroutine')]
60+
#[Group('NonCoroutine')]
6061
public function testAsyncMessage()
6162
{
6263
$container = $this->getContainer();
@@ -69,7 +70,7 @@ public function testAsyncMessage()
6970
$this->assertSame($data, Context::get(FooProxy::class));
7071
}
7172

72-
#[\PHPUnit\Framework\Attributes\Group('NonCoroutine')]
73+
#[Group('NonCoroutine')]
7374
public function testAsyncMessageVariadic()
7475
{
7576
$container = $this->getContainer();

0 commit comments

Comments
 (0)