diff --git a/tests/Cases/Listener/CrontabProcessStarredListenerTest.php b/tests/Cases/Listener/CrontabProcessStarredListenerTest.php index efc9d3a..076e475 100644 --- a/tests/Cases/Listener/CrontabProcessStarredListenerTest.php +++ b/tests/Cases/Listener/CrontabProcessStarredListenerTest.php @@ -17,12 +17,14 @@ use Hyperf\Process\ProcessManager; use Hyperf\Testing\Concerns\RunTestsInCoroutine; use Mine\Crontab\Listener\CrontabProcessStarredListener; +use PHPUnit\Framework\Attributes\RequiresPhpExtension; use PHPUnit\Framework\TestCase; /** * @internal * @coversNothing */ +#[RequiresPhpExtension('swoole', '< 6.0')] class CrontabProcessStarredListenerTest extends TestCase { use RunTestsInCoroutine; diff --git a/tests/Cases/ScheduleTest.php b/tests/Cases/ScheduleTest.php index 5e520e3..eab3891 100644 --- a/tests/Cases/ScheduleTest.php +++ b/tests/Cases/ScheduleTest.php @@ -21,12 +21,14 @@ use Hyperf\Database\Query\Builder; use Hyperf\Testing\Concerns\RunTestsInCoroutine; use Mine\Crontab\Schedule; +use PHPUnit\Framework\Attributes\RequiresPhpExtension; use PHPUnit\Framework\TestCase; /** * @internal * @coversNothing */ +#[RequiresPhpExtension('swoole', '< 6.0')] class ScheduleTest extends TestCase { use RunTestsInCoroutine;