Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ripplev1.0 latest specification #25

Merged
merged 1 commit into from
Nov 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ class Factory
public const WORKBUNNY_SWOW = SwowEvent::class;
public const WORKERMAN_SWOOLE = 'Workerman\Events\Swoole';
public const WORKBUNNY_SWOOLE = SwooleEvent::class;
public const RIPPLE_FIBER_4 = 'Psc\Drive\Workerman\Driver4';
public const RIPPLE_FIBER_5 = 'Psc\Drive\Workerman\Driver5';
public const RIPPLE_FIBER_4 = 'Ripple\Driver\Workerman\Driver4';
public const RIPPLE_FIBER_5 = 'Ripple\Driver\Workerman\Driver5';
public const REVOLT_FIBER = 'Workerman\Events\Revolt';
public const WORKERMAN_DEFAULT = '';

Expand Down
2 changes: 1 addition & 1 deletion src/Utils/Coroutine/Handlers/RippleCoroutine.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
namespace Workbunny\WebmanCoroutine\Utils\Coroutine\Handlers;

use Closure;
use Psc\Core\Coroutine\Promise;
use Ripple\Promise;
use Revolt\EventLoop\Suspension;

class RippleCoroutine implements CoroutineInterface
Expand Down
8 changes: 4 additions & 4 deletions tests/UtilsCase/Coroutine/RippleCoroutineTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function testConstruct()
});

// 模拟返回
return Mockery::mock('alias:Psc\Core\Coroutine\Promise');
return Mockery::mock('alias:Ripple\Promise');
});

// 模拟构造函数执行
Expand Down Expand Up @@ -98,7 +98,7 @@ public function testDestruct()
});

// 模拟返回
return Mockery::mock('alias:Psc\Core\Coroutine\Promise');
return Mockery::mock('alias:Ripple\Promise');
});

// 模拟构造函数执行
Expand Down Expand Up @@ -132,7 +132,7 @@ public function testOrigin()
});

// 模拟返回
return Mockery::mock('alias:Psc\Core\Coroutine\Promise');
return Mockery::mock('alias:Ripple\Promise');
});

// 模拟构造函数执行
Expand Down Expand Up @@ -161,7 +161,7 @@ public function testId()
});

// 模拟返回
return Mockery::mock('alias:Psc\Core\Coroutine\Promise');
return Mockery::mock('alias:Ripple\Promise');
});

// 模拟构造函数执行
Expand Down