Skip to content

Commit d87d297

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

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

tests/CommandParserTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,14 @@
1313

1414
use Hyperf\Command\Parser;
1515
use InvalidArgumentException;
16+
use PHPUnit\Framework\Attributes\CoversNothing;
1617
use PHPUnit\Framework\TestCase;
1718

1819
/**
1920
* @internal
2021
* @coversNothing
2122
*/
23+
#[CoversNothing]
2224
class CommandParserTest extends TestCase
2325
{
2426
public function testBasicParameterParsing()

tests/CommandTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
use HyperfTest\Command\Command\FooExitCommand;
2020
use HyperfTest\Command\Command\SwooleFlagsCommand;
2121
use Mockery;
22+
use PHPUnit\Framework\Attributes\CoversNothing;
2223
use PHPUnit\Framework\TestCase;
2324
use Psr\Container\ContainerInterface;
2425
use Psr\EventDispatcher\EventDispatcherInterface;
@@ -29,6 +30,7 @@
2930
* @internal
3031
* @coversNothing
3132
*/
33+
#[CoversNothing]
3234
class CommandTest extends TestCase
3335
{
3436
protected function tearDown(): void
@@ -45,9 +47,7 @@ public function testHookFlags()
4547
$this->assertSame(SWOOLE_HOOK_ALL | SWOOLE_HOOK_CURL, $command->getHookFlags());
4648
}
4749

48-
/**
49-
* @group NonCoroutine
50-
*/
50+
#[\PHPUnit\Framework\Attributes\Group('NonCoroutine')]
5151
public function testExitCodeWhenThrowException()
5252
{
5353
ApplicationContext::setContainer($container = Mockery::mock(ContainerInterface::class));

0 commit comments

Comments
 (0)