@@ -266,9 +266,9 @@ function ($e) use (&$exception) {
266
266
}
267
267
);
268
268
269
- \Clue \ React \Block \await (\React \Promise \Timer \sleep (0.01 ));
269
+ \React \Async \await (\React \Promise \Timer \sleep (0.01 ));
270
270
if ($ exception === null ) {
271
- \Clue \ React \Block \await (\React \Promise \Timer \sleep (0.2 ));
271
+ \React \Async \await (\React \Promise \Timer \sleep (0.2 ));
272
272
}
273
273
274
274
/** @var \RuntimeException $exception */
@@ -438,9 +438,9 @@ function ($e) use (&$exception) {
438
438
}
439
439
);
440
440
441
- \Clue \ React \Block \await (\React \Promise \Timer \sleep (0.01 ));
441
+ \React \Async \await (\React \Promise \Timer \sleep (0.01 ));
442
442
if ($ exception === null ) {
443
- \Clue \ React \Block \await (\React \Promise \Timer \sleep (0.2 ));
443
+ \React \Async \await (\React \Promise \Timer \sleep (0.2 ));
444
444
}
445
445
446
446
/** @var \RuntimeException $exception */
@@ -477,7 +477,7 @@ function ($e) use (&$wait) {
477
477
}
478
478
);
479
479
480
- \Clue \ React \Block \await (\React \Promise \Timer \sleep (0.2 ));
480
+ \React \Async \await (\React \Promise \Timer \sleep (0.2 ));
481
481
$ this ->assertTrue ($ wait );
482
482
483
483
$ this ->assertNotNull ($ client );
@@ -514,7 +514,7 @@ function ($e) use (&$wait) {
514
514
}
515
515
);
516
516
517
- \Clue \ React \Block \await (\React \Promise \Timer \sleep (0.2 ));
517
+ \React \Async \await (\React \Promise \Timer \sleep (0.2 ));
518
518
$ this ->assertTrue ($ wait );
519
519
520
520
$ this ->assertNotNull ($ client );
@@ -549,9 +549,9 @@ function ($e) use (&$exception) {
549
549
}
550
550
);
551
551
552
- \Clue \ React \Block \await (\React \Promise \Timer \sleep (0.01 ));
552
+ \React \Async \await (\React \Promise \Timer \sleep (0.01 ));
553
553
if ($ exception === null ) {
554
- \Clue \ React \Block \await (\React \Promise \Timer \sleep (0.2 ));
554
+ \React \Async \await (\React \Promise \Timer \sleep (0.2 ));
555
555
}
556
556
557
557
/** @var \RuntimeException $exception */
@@ -601,9 +601,9 @@ function ($e) use (&$exception) {
601
601
}
602
602
);
603
603
604
- \Clue \ React \Block \await (\React \Promise \Timer \sleep (0.01 ));
604
+ \React \Async \await (\React \Promise \Timer \sleep (0.01 ));
605
605
if ($ exception === null ) {
606
- \Clue \ React \Block \await (\React \Promise \Timer \sleep (0.2 ));
606
+ \React \Async \await (\React \Promise \Timer \sleep (0.2 ));
607
607
}
608
608
609
609
/** @var \RuntimeException $exception */
@@ -653,9 +653,9 @@ function ($e) use (&$exception) {
653
653
}
654
654
);
655
655
656
- \Clue \ React \Block \await (\React \Promise \Timer \sleep (0.01 ));
656
+ \React \Async \await (\React \Promise \Timer \sleep (0.01 ));
657
657
if ($ exception === null ) {
658
- \Clue \ React \Block \await (\React \Promise \Timer \sleep (0.2 ));
658
+ \React \Async \await (\React \Promise \Timer \sleep (0.2 ));
659
659
}
660
660
661
661
/** @var \RuntimeException $exception */
@@ -688,7 +688,7 @@ public function testQueryResolvesIfServerSendsValidResponse()
688
688
$ query = new Query ('google.com ' , Message::TYPE_A , Message::CLASS_IN );
689
689
690
690
$ promise = $ executor ->query ($ query );
691
- $ response = \Clue \ React \Block \await (\React \Promise \Timer \timeout ($ promise , 0.2 ));
691
+ $ response = \React \Async \await (\React \Promise \Timer \timeout ($ promise , 0.2 ));
692
692
693
693
$ this ->assertInstanceOf ('React\Dns\Model\Message ' , $ response );
694
694
}
0 commit comments