Skip to content

Commit 0d17dd7

Browse files
Bumps phpunit to 10.x (#5802)
Co-authored-by: 李铭昕 <715557344@qq.com>
1 parent 5c77da9 commit 0d17dd7

File tree

5 files changed

+13
-9
lines changed

5 files changed

+13
-9
lines changed

tests/AsyncQueueAspectTest.php

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,15 @@
2525
use Hyperf\Di\ReflectionManager;
2626
use HyperfTest\AsyncQueue\Stub\FooProxy;
2727
use Mockery;
28+
use PHPUnit\Framework\Attributes\CoversNothing;
2829
use PHPUnit\Framework\TestCase;
2930
use Psr\Container\ContainerInterface;
3031

3132
/**
3233
* @internal
3334
* @coversNothing
3435
*/
36+
#[CoversNothing]
3537
class 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();

tests/DriverTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,15 @@
2020
use HyperfTest\AsyncQueue\Stub\Redis;
2121
use HyperfTest\AsyncQueue\Stub\RedisDriverStub;
2222
use Mockery;
23+
use PHPUnit\Framework\Attributes\CoversNothing;
2324
use PHPUnit\Framework\TestCase;
2425
use Psr\EventDispatcher\EventDispatcherInterface;
2526

2627
/**
2728
* @internal
2829
* @coversNothing
2930
*/
31+
#[CoversNothing]
3032
class DriverTest extends TestCase
3133
{
3234
protected function tearDown(): void

tests/ListenerTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,14 @@
1616
use Hyperf\AsyncQueue\Listener\ReloadChannelListener;
1717
use Hyperf\Contract\StdoutLoggerInterface;
1818
use Mockery;
19+
use PHPUnit\Framework\Attributes\CoversNothing;
1920
use PHPUnit\Framework\TestCase;
2021

2122
/**
2223
* @internal
2324
* @coversNothing
2425
*/
26+
#[CoversNothing]
2527
class ListenerTest extends TestCase
2628
{
2729
protected function tearDown(): void

tests/MessageTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,14 @@
1515
use Hyperf\AsyncQueue\JobMessage;
1616
use Hyperf\AsyncQueue\MessageInterface;
1717
use HyperfTest\AsyncQueue\Stub\DemoJob;
18+
use PHPUnit\Framework\Attributes\CoversNothing;
1819
use PHPUnit\Framework\TestCase;
1920

2021
/**
2122
* @internal
2223
* @coversNothing
2324
*/
25+
#[CoversNothing]
2426
class MessageTest extends TestCase
2527
{
2628
public function testMessageSerialize()

tests/RedisDriverTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,15 @@
2626
use HyperfTest\AsyncQueue\Stub\DemoModelMeta;
2727
use HyperfTest\AsyncQueue\Stub\Redis;
2828
use Mockery;
29+
use PHPUnit\Framework\Attributes\CoversNothing;
2930
use PHPUnit\Framework\TestCase;
3031
use Psr\EventDispatcher\EventDispatcherInterface;
3132

3233
/**
3334
* @internal
3435
* @coversNothing
3536
*/
37+
#[CoversNothing]
3638
class RedisDriverTest extends TestCase
3739
{
3840
protected function tearDown(): void

0 commit comments

Comments
 (0)