3
3
namespace React \Tests \EventLoop ;
4
4
5
5
use React \EventLoop \StreamSelectLoop ;
6
+ use React \EventLoop \ExtUvLoop ;
6
7
7
8
abstract class AbstractLoopTest extends TestCase
8
9
{
@@ -144,6 +145,10 @@ public function testAddWriteStreamTriggersWhenSocketConnectionRefused()
144
145
145
146
public function testAddReadStream ()
146
147
{
148
+ if ($ this ->loop instanceof ExtUvLoop && DIRECTORY_SEPARATOR === '\\' ) {
149
+ $ this ->markTestIncomplete ('Ticking ExtUvLoop not supported on Windows ' );
150
+ }
151
+
147
152
list ($ input , $ output ) = $ this ->createSocketPair ();
148
153
149
154
$ this ->loop ->addReadStream ($ input , $ this ->expectCallableExactly (2 ));
@@ -157,6 +162,10 @@ public function testAddReadStream()
157
162
158
163
public function testAddReadStreamIgnoresSecondCallable ()
159
164
{
165
+ if ($ this ->loop instanceof ExtUvLoop && DIRECTORY_SEPARATOR === '\\' ) {
166
+ $ this ->markTestIncomplete ('Ticking ExtUvLoop not supported on Windows ' );
167
+ }
168
+
160
169
list ($ input , $ output ) = $ this ->createSocketPair ();
161
170
162
171
$ this ->loop ->addReadStream ($ input , $ this ->expectCallableExactly (2 ));
@@ -206,6 +215,10 @@ private function subAddReadStreamReceivesDataFromStreamReference()
206
215
207
216
public function testAddWriteStream ()
208
217
{
218
+ if ($ this ->loop instanceof ExtUvLoop && DIRECTORY_SEPARATOR === '\\' ) {
219
+ $ this ->markTestIncomplete ('Ticking ExtUvLoop not supported on Windows ' );
220
+ }
221
+
209
222
list ($ input ) = $ this ->createSocketPair ();
210
223
211
224
$ this ->loop ->addWriteStream ($ input , $ this ->expectCallableExactly (2 ));
@@ -215,6 +228,10 @@ public function testAddWriteStream()
215
228
216
229
public function testAddWriteStreamIgnoresSecondCallable ()
217
230
{
231
+ if ($ this ->loop instanceof ExtUvLoop && DIRECTORY_SEPARATOR === '\\' ) {
232
+ $ this ->markTestIncomplete ('Ticking ExtUvLoop not supported on Windows ' );
233
+ }
234
+
218
235
list ($ input ) = $ this ->createSocketPair ();
219
236
220
237
$ this ->loop ->addWriteStream ($ input , $ this ->expectCallableExactly (2 ));
@@ -225,6 +242,10 @@ public function testAddWriteStreamIgnoresSecondCallable()
225
242
226
243
public function testRemoveReadStreamInstantly ()
227
244
{
245
+ if ($ this ->loop instanceof ExtUvLoop && DIRECTORY_SEPARATOR === '\\' ) {
246
+ $ this ->markTestIncomplete ('Ticking ExtUvLoop not supported on Windows ' );
247
+ }
248
+
228
249
list ($ input , $ output ) = $ this ->createSocketPair ();
229
250
230
251
$ this ->loop ->addReadStream ($ input , $ this ->expectCallableNever ());
@@ -236,6 +257,10 @@ public function testRemoveReadStreamInstantly()
236
257
237
258
public function testRemoveReadStreamAfterReading ()
238
259
{
260
+ if ($ this ->loop instanceof ExtUvLoop && DIRECTORY_SEPARATOR === '\\' ) {
261
+ $ this ->markTestIncomplete ('Ticking ExtUvLoop not supported on Windows ' );
262
+ }
263
+
239
264
list ($ input , $ output ) = $ this ->createSocketPair ();
240
265
241
266
$ this ->loop ->addReadStream ($ input , $ this ->expectCallableOnce ());
@@ -251,6 +276,10 @@ public function testRemoveReadStreamAfterReading()
251
276
252
277
public function testRemoveWriteStreamInstantly ()
253
278
{
279
+ if ($ this ->loop instanceof ExtUvLoop && DIRECTORY_SEPARATOR === '\\' ) {
280
+ $ this ->markTestIncomplete ('Ticking ExtUvLoop not supported on Windows ' );
281
+ }
282
+
254
283
list ($ input ) = $ this ->createSocketPair ();
255
284
256
285
$ this ->loop ->addWriteStream ($ input , $ this ->expectCallableNever ());
@@ -260,6 +289,10 @@ public function testRemoveWriteStreamInstantly()
260
289
261
290
public function testRemoveWriteStreamAfterWriting ()
262
291
{
292
+ if ($ this ->loop instanceof ExtUvLoop && DIRECTORY_SEPARATOR === '\\' ) {
293
+ $ this ->markTestIncomplete ('Ticking ExtUvLoop not supported on Windows ' );
294
+ }
295
+
263
296
list ($ input ) = $ this ->createSocketPair ();
264
297
265
298
$ this ->loop ->addWriteStream ($ input , $ this ->expectCallableOnce ());
@@ -271,6 +304,10 @@ public function testRemoveWriteStreamAfterWriting()
271
304
272
305
public function testRemoveStreamForReadOnly ()
273
306
{
307
+ if ($ this ->loop instanceof ExtUvLoop && DIRECTORY_SEPARATOR === '\\' ) {
308
+ $ this ->markTestIncomplete ('Ticking ExtUvLoop not supported on Windows ' );
309
+ }
310
+
274
311
list ($ input , $ output ) = $ this ->createSocketPair ();
275
312
276
313
$ this ->loop ->addReadStream ($ input , $ this ->expectCallableNever ());
@@ -283,6 +320,10 @@ public function testRemoveStreamForReadOnly()
283
320
284
321
public function testRemoveStreamForWriteOnly ()
285
322
{
323
+ if ($ this ->loop instanceof ExtUvLoop && DIRECTORY_SEPARATOR === '\\' ) {
324
+ $ this ->markTestIncomplete ('Ticking ExtUvLoop not supported on Windows ' );
325
+ }
326
+
286
327
list ($ input , $ output ) = $ this ->createSocketPair ();
287
328
288
329
fwrite ($ output , "foo \n" );
@@ -505,6 +546,10 @@ public function testFutureTick()
505
546
506
547
public function testFutureTickFiresBeforeIO ()
507
548
{
549
+ if ($ this ->loop instanceof ExtUvLoop && DIRECTORY_SEPARATOR === '\\' ) {
550
+ $ this ->markTestIncomplete ('Ticking ExtUvLoop not supported on Windows ' );
551
+ }
552
+
508
553
list ($ stream ) = $ this ->createSocketPair ();
509
554
510
555
$ this ->loop ->addWriteStream (
@@ -525,6 +570,9 @@ function () {
525
570
$ this ->tickLoop ($ this ->loop );
526
571
}
527
572
573
+ /**
574
+ * @depends testFutureTickFiresBeforeIO
575
+ */
528
576
public function testRecursiveFutureTick ()
529
577
{
530
578
list ($ stream ) = $ this ->createSocketPair ();
0 commit comments