Skip to content
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
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"ext-parallel": "*",
"react-parallel/event-loop": "dev-master as 2.0",
"react/event-loop": "^1.1",
"react/promise": "^2.7",
"react/promise": "^2.7 || ^3.0",
"wyrihaximus/constants": "^1.6"
},
"require-dev": {
Expand Down
19 changes: 10 additions & 9 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 0 additions & 7 deletions tests/RuntimeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,15 @@

use parallel\Runtime\Error\Closed;
use React\EventLoop\Loop;
use React\Promise\ExtendedPromiseInterface;
use ReactParallel\EventLoop\EventLoopBridge;
use ReactParallel\Runtime\Runtime;
use TheOrville\Exceptions\LatchcombException;
use WyriHaximus\AsyncTestUtilities\AsyncTestCase;

use function assert;
use function React\Async\await;
use function sleep;
use function WyriHaximus\React\timedPromise;

/** @internal */
final class RuntimeTest extends AsyncTestCase
{
/** @test */
Expand All @@ -30,7 +27,6 @@ public function convertSuccess(): void

return 3;
});
assert($promise instanceof ExtendedPromiseInterface);

$promise->always(static function () use ($runtime): void {
$runtime->kill();
Expand All @@ -54,7 +50,6 @@ public function convertFailure(): void

throw new LatchcombException('Rethrow exception');
});
assert($promise instanceof ExtendedPromiseInterface);

$promise->always(static function () use ($runtime): void {
$runtime->close();
Expand All @@ -78,7 +73,6 @@ public function weClosedTheThread(): void
return 3;
});
});
assert($promise instanceof ExtendedPromiseInterface);

Loop::futureTick(static function () use ($runtime): void {
$runtime->close();
Expand All @@ -100,7 +94,6 @@ public function weKilledTheThread(): void
return 3;
});
});
assert($promise instanceof ExtendedPromiseInterface);

Loop::futureTick(static function () use ($runtime): void {
$runtime->kill();
Expand Down