Skip to content

Commit edada5c

Browse files
zds-skanyxmotinkleCat
authored
Release 2.0-stable (#88)
--------- Co-authored-by: StyleCI <root@imoi.cn> Co-authored-by: tinkleCat <31616271+tinkleCat@users.noreply.github.com>
1 parent 0e9ec42 commit edada5c

6 files changed

Lines changed: 10 additions & 3 deletions

File tree

src/Crontab/tests/Cases/Listener/CrontabProcessStarredListenerTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,14 @@
1717
use Hyperf\Process\ProcessManager;
1818
use Hyperf\Testing\Concerns\RunTestsInCoroutine;
1919
use Mine\Crontab\Listener\CrontabProcessStarredListener;
20+
use PHPUnit\Framework\Attributes\RequiresPhpExtension;
2021
use PHPUnit\Framework\TestCase;
2122

2223
/**
2324
* @internal
2425
* @coversNothing
2526
*/
27+
#[RequiresPhpExtension('swoole', '< 6.0')]
2628
class CrontabProcessStarredListenerTest extends TestCase
2729
{
2830
use RunTestsInCoroutine;

src/Crontab/tests/Cases/ScheduleTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,14 @@
2121
use Hyperf\Database\Query\Builder;
2222
use Hyperf\Testing\Concerns\RunTestsInCoroutine;
2323
use Mine\Crontab\Schedule;
24+
use PHPUnit\Framework\Attributes\RequiresPhpExtension;
2425
use PHPUnit\Framework\TestCase;
2526

2627
/**
2728
* @internal
2829
* @coversNothing
2930
*/
31+
#[RequiresPhpExtension('swoole', '< 6.0')]
3032
class ScheduleTest extends TestCase
3133
{
3234
use RunTestsInCoroutine;

src/SecurityBundle/tests/AbstractUserProviderTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,15 @@
2323
use Mine\SecurityBundle\Event\Validated;
2424
use Mine\SecurityBundle\Event\Verified;
2525
use Mine\SecurityBundle\Tests\Stub\UserModel;
26+
use PHPUnit\Framework\Attributes\RequiresPhpExtension;
2627
use PHPUnit\Framework\TestCase;
2728
use Psr\EventDispatcher\EventDispatcherInterface;
2829

2930
/**
3031
* @internal
3132
* @coversNothing
3233
*/
34+
#[RequiresPhpExtension('swoole', '< 6.0')]
3335
class AbstractUserProviderTest extends TestCase
3436
{
3537
use RunTestsInCoroutine;

src/SecurityHttp/tests/Cases/UserProviderTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,15 @@
2525
use Mine\SecurityBundle\Event\Login;
2626
use Mine\SecurityBundle\Event\Validated;
2727
use Mine\SecurityBundle\Event\Verified;
28+
use PHPUnit\Framework\Attributes\RequiresPhpExtension;
2829
use PHPUnit\Framework\TestCase;
2930
use Psr\EventDispatcher\EventDispatcherInterface;
3031

3132
/**
3233
* @internal
3334
* @coversNothing
3435
*/
36+
#[RequiresPhpExtension('swoole', '< 6.0')]
3537
class UserProviderTest extends TestCase
3638
{
3739
use RunTestsInCoroutine;

src/mine-generator/Stubs/Api/read.stub

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
read (id) {
77
return request({
88
url: '{REQUEST_ROUTE}/read/' + id,
9-
method: 'get',
10-
data
9+
method: 'get'
1110
})
1211
},

src/next-core-x/tests/Feature/Channel/RedisChannelTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,4 @@
5757
];
5858
$this->channel->push('test', $payload);
5959
expect($this->channel->pull('test'))->toEqual($payload);
60-
});
60+
})->skip(version_compare(swoole_version(), '6.0', '>='), 'Skip for swoole 6.0+');

0 commit comments

Comments
 (0)