Skip to content

Commit

Permalink
Fixed bug that AOP not working when using variadic parameters. (#6372)
Browse files Browse the repository at this point in the history

Co-authored-by: 李铭昕 <[email protected]>
  • Loading branch information
assert6 and limingxinleo authored Dec 11, 2023
1 parent a708abd commit 3fa6e8b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/AsyncQueueAspectTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
use HyperfTest\AsyncQueue\Stub\FooProxy;
use Mockery;
use PHPUnit\Framework\Attributes\CoversNothing;
use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\TestCase;
use Psr\Container\ContainerInterface;

Expand All @@ -43,7 +44,7 @@ protected function tearDown(): void
ReflectionManager::clear();
}

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

#[\PHPUnit\Framework\Attributes\Group('NonCoroutine')]
#[Group('NonCoroutine')]
public function testAsyncMessage()
{
$container = $this->getContainer();
Expand All @@ -69,7 +70,7 @@ public function testAsyncMessage()
$this->assertSame($data, Context::get(FooProxy::class));
}

#[\PHPUnit\Framework\Attributes\Group('NonCoroutine')]
#[Group('NonCoroutine')]
public function testAsyncMessageVariadic()
{
$container = $this->getContainer();
Expand Down

0 comments on commit 3fa6e8b

Please sign in to comment.