Skip to content

Commit

Permalink
Release 2.0-stable (#88)
Browse files Browse the repository at this point in the history
---------

Co-authored-by: StyleCI <[email protected]>
Co-authored-by: tinkleCat <[email protected]>
  • Loading branch information
3 people authored May 30, 2024
1 parent 0e9ec42 commit edada5c
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 2 additions & 0 deletions src/Crontab/tests/Cases/ScheduleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 2 additions & 0 deletions src/SecurityBundle/tests/AbstractUserProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,15 @@
use Mine\SecurityBundle\Event\Validated;
use Mine\SecurityBundle\Event\Verified;
use Mine\SecurityBundle\Tests\Stub\UserModel;
use PHPUnit\Framework\Attributes\RequiresPhpExtension;
use PHPUnit\Framework\TestCase;
use Psr\EventDispatcher\EventDispatcherInterface;

/**
* @internal
* @coversNothing
*/
#[RequiresPhpExtension('swoole', '< 6.0')]
class AbstractUserProviderTest extends TestCase
{
use RunTestsInCoroutine;
Expand Down
2 changes: 2 additions & 0 deletions src/SecurityHttp/tests/Cases/UserProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,15 @@
use Mine\SecurityBundle\Event\Login;
use Mine\SecurityBundle\Event\Validated;
use Mine\SecurityBundle\Event\Verified;
use PHPUnit\Framework\Attributes\RequiresPhpExtension;
use PHPUnit\Framework\TestCase;
use Psr\EventDispatcher\EventDispatcherInterface;

/**
* @internal
* @coversNothing
*/
#[RequiresPhpExtension('swoole', '< 6.0')]
class UserProviderTest extends TestCase
{
use RunTestsInCoroutine;
Expand Down
3 changes: 1 addition & 2 deletions src/mine-generator/Stubs/Api/read.stub
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
read (id) {
return request({
url: '{REQUEST_ROUTE}/read/' + id,
method: 'get',
data
method: 'get'
})
},
2 changes: 1 addition & 1 deletion src/next-core-x/tests/Feature/Channel/RedisChannelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@
];
$this->channel->push('test', $payload);
expect($this->channel->pull('test'))->toEqual($payload);
});
})->skip(version_compare(swoole_version(), '6.0', '>='), 'Skip for swoole 6.0+');

0 comments on commit edada5c

Please sign in to comment.