66
77use parallel \Runtime \Error \Closed ;
88use React \EventLoop \Loop ;
9- use React \Promise \ExtendedPromiseInterface ;
109use ReactParallel \EventLoop \EventLoopBridge ;
1110use ReactParallel \Runtime \Runtime ;
1211use TheOrville \Exceptions \LatchcombException ;
1312use WyriHaximus \AsyncTestUtilities \AsyncTestCase ;
1413
15- use function assert ;
1614use function React \Async \await ;
1715use function sleep ;
1816use function WyriHaximus \React \timedPromise ;
1917
20- /** @internal */
2118final class RuntimeTest extends AsyncTestCase
2219{
2320 /** @test */
@@ -30,7 +27,6 @@ public function convertSuccess(): void
3027
3128 return 3 ;
3229 });
33- assert ($ promise instanceof ExtendedPromiseInterface);
3430
3531 $ promise ->always (static function () use ($ runtime ): void {
3632 $ runtime ->kill ();
@@ -54,7 +50,6 @@ public function convertFailure(): void
5450
5551 throw new LatchcombException ('Rethrow exception ' );
5652 });
57- assert ($ promise instanceof ExtendedPromiseInterface);
5853
5954 $ promise ->always (static function () use ($ runtime ): void {
6055 $ runtime ->close ();
@@ -78,7 +73,6 @@ public function weClosedTheThread(): void
7873 return 3 ;
7974 });
8075 });
81- assert ($ promise instanceof ExtendedPromiseInterface);
8276
8377 Loop::futureTick (static function () use ($ runtime ): void {
8478 $ runtime ->close ();
@@ -100,7 +94,6 @@ public function weKilledTheThread(): void
10094 return 3 ;
10195 });
10296 });
103- assert ($ promise instanceof ExtendedPromiseInterface);
10497
10598 Loop::futureTick (static function () use ($ runtime ): void {
10699 $ runtime ->kill ();
0 commit comments