From 830347c121c3ae51da9300e36de74eda39184753 Mon Sep 17 00:00:00 2001 From: cclilshy Date: Fri, 1 Nov 2024 18:05:50 +0800 Subject: [PATCH] Update: synchronize ripple distribution updates --- src/Factory.php | 4 ++-- src/Utils/Coroutine/Handlers/RippleCoroutine.php | 2 +- tests/UtilsCase/Coroutine/RippleCoroutineTest.php | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Factory.php b/src/Factory.php index 9fee0f4..a807216 100644 --- a/src/Factory.php +++ b/src/Factory.php @@ -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 = ''; diff --git a/src/Utils/Coroutine/Handlers/RippleCoroutine.php b/src/Utils/Coroutine/Handlers/RippleCoroutine.php index 4060014..f74f357 100644 --- a/src/Utils/Coroutine/Handlers/RippleCoroutine.php +++ b/src/Utils/Coroutine/Handlers/RippleCoroutine.php @@ -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 diff --git a/tests/UtilsCase/Coroutine/RippleCoroutineTest.php b/tests/UtilsCase/Coroutine/RippleCoroutineTest.php index e154a8a..7eb6628 100644 --- a/tests/UtilsCase/Coroutine/RippleCoroutineTest.php +++ b/tests/UtilsCase/Coroutine/RippleCoroutineTest.php @@ -42,7 +42,7 @@ public function testConstruct() }); // 模拟返回 - return Mockery::mock('alias:Psc\Core\Coroutine\Promise'); + return Mockery::mock('alias:Ripple\Promise'); }); // 模拟构造函数执行 @@ -98,7 +98,7 @@ public function testDestruct() }); // 模拟返回 - return Mockery::mock('alias:Psc\Core\Coroutine\Promise'); + return Mockery::mock('alias:Ripple\Promise'); }); // 模拟构造函数执行 @@ -132,7 +132,7 @@ public function testOrigin() }); // 模拟返回 - return Mockery::mock('alias:Psc\Core\Coroutine\Promise'); + return Mockery::mock('alias:Ripple\Promise'); }); // 模拟构造函数执行 @@ -161,7 +161,7 @@ public function testId() }); // 模拟返回 - return Mockery::mock('alias:Psc\Core\Coroutine\Promise'); + return Mockery::mock('alias:Ripple\Promise'); }); // 模拟构造函数执行