Skip to content

Commit

Permalink
Merge pull request #25 from cclilshy/main
Browse files Browse the repository at this point in the history
Update ripplev1.0 latest specification
  • Loading branch information
chaz6chez authored Nov 1, 2024
2 parents 4953ea5 + 830347c commit 1f136d3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
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

0 comments on commit 1f136d3

Please sign in to comment.