File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313
1414use Hyperf \Command \Parser ;
1515use InvalidArgumentException ;
16+ use PHPUnit \Framework \Attributes \CoversNothing ;
1617use PHPUnit \Framework \TestCase ;
1718
1819/**
1920 * @internal
2021 * @coversNothing
2122 */
23+ #[CoversNothing]
2224class CommandParserTest extends TestCase
2325{
2426 public function testBasicParameterParsing ()
Original file line number Diff line number Diff line change 1919use HyperfTest \Command \Command \FooExitCommand ;
2020use HyperfTest \Command \Command \SwooleFlagsCommand ;
2121use Mockery ;
22+ use PHPUnit \Framework \Attributes \CoversNothing ;
2223use PHPUnit \Framework \TestCase ;
2324use Psr \Container \ContainerInterface ;
2425use Psr \EventDispatcher \EventDispatcherInterface ;
2930 * @internal
3031 * @coversNothing
3132 */
33+ #[CoversNothing]
3234class 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));
You can’t perform that action at this time.
0 commit comments