6
6
7
7
use parallel \Runtime \Error \Closed ;
8
8
use React \EventLoop \Loop ;
9
- use React \Promise \ExtendedPromiseInterface ;
10
9
use ReactParallel \EventLoop \EventLoopBridge ;
11
10
use ReactParallel \Runtime \Runtime ;
12
11
use TheOrville \Exceptions \LatchcombException ;
13
12
use WyriHaximus \AsyncTestUtilities \AsyncTestCase ;
14
13
15
- use function assert ;
16
14
use function React \Async \await ;
17
15
use function sleep ;
18
16
use function WyriHaximus \React \timedPromise ;
19
17
20
- /** @internal */
21
18
final class RuntimeTest extends AsyncTestCase
22
19
{
23
20
/** @test */
@@ -30,7 +27,6 @@ public function convertSuccess(): void
30
27
31
28
return 3 ;
32
29
});
33
- assert ($ promise instanceof ExtendedPromiseInterface);
34
30
35
31
$ promise ->always (static function () use ($ runtime ): void {
36
32
$ runtime ->kill ();
@@ -54,7 +50,6 @@ public function convertFailure(): void
54
50
55
51
throw new LatchcombException ('Rethrow exception ' );
56
52
});
57
- assert ($ promise instanceof ExtendedPromiseInterface);
58
53
59
54
$ promise ->always (static function () use ($ runtime ): void {
60
55
$ runtime ->close ();
@@ -78,7 +73,6 @@ public function weClosedTheThread(): void
78
73
return 3 ;
79
74
});
80
75
});
81
- assert ($ promise instanceof ExtendedPromiseInterface);
82
76
83
77
Loop::futureTick (static function () use ($ runtime ): void {
84
78
$ runtime ->close ();
@@ -100,7 +94,6 @@ public function weKilledTheThread(): void
100
94
return 3 ;
101
95
});
102
96
});
103
- assert ($ promise instanceof ExtendedPromiseInterface);
104
97
105
98
Loop::futureTick (static function () use ($ runtime ): void {
106
99
$ runtime ->kill ();
0 commit comments