22
33namespace Clue \Tests \React \Soap ;
44
5- use Clue \React \Block ;
5+ use React \Async ;
6+ use React \Http \Browser ;
67use Clue \React \Soap \Client ;
78use Clue \React \Soap \Proxy ;
89use PHPUnit \Framework \TestCase ;
9- use React \EventLoop \Loop ;
10- use React \Http \Browser ;
10+
1111
1212class BankResponse
1313{
@@ -55,7 +55,7 @@ public function testBlzService()
5555
5656 $ promise = $ api ->getBank (array ('blz ' => '12070000 ' ));
5757
58- $ result = Block \await ($ promise, Loop:: get () );
58+ $ result = Async \await ($ promise );
5959
6060 $ this ->assertIsObject ($ result );
6161 $ this ->assertTrue (isset ($ result ->details ));
@@ -77,7 +77,7 @@ public function testBlzServiceWithClassmapReturnsExpectedType()
7777
7878 $ promise = $ api ->getBank (array ('blz ' => '12070000 ' ));
7979
80- $ result = Block \await ($ promise, Loop:: get () );
80+ $ result = Async \await ($ promise );
8181
8282 $ this ->assertInstanceOf ('Clue\Tests\React\Soap\BankResponse ' , $ result );
8383 $ this ->assertTrue (isset ($ result ->details ));
@@ -97,7 +97,7 @@ public function testBlzServiceWithSoapV12()
9797
9898 $ promise = $ api ->getBank (array ('blz ' => '12070000 ' ));
9999
100- $ result = Block \await ($ promise, Loop:: get () );
100+ $ result = Async \await ($ promise );
101101
102102 $ this ->assertIsObject ($ result );
103103 $ this ->assertTrue (isset ($ result ->details ));
@@ -117,7 +117,7 @@ public function testBlzServiceNonWsdlModeReturnedWithoutOuterResultStructure()
117117 // $promise = $api->getBank(new SoapParam('12070000', 'ns1:blz'));
118118 $ promise = $ api ->getBank (new \SoapVar ('12070000 ' , XSD_STRING , null , null , 'blz ' , 'http://thomas-bayer.com/blz/ ' ));
119119
120- $ result = Block \await ($ promise, Loop:: get () );
120+ $ result = Async \await ($ promise );
121121
122122 $ this ->assertIsObject ($ result );
123123 $ this ->assertFalse (isset ($ result ->details ));
@@ -158,7 +158,7 @@ public function testBlzServiceWithInvalidMethodRejectsWithSoapFault()
158158
159159 $ this ->expectException (\SoapFault::class);
160160 $ this ->expectExceptionMessage ('Function ("doesNotExist") is not a valid method for this service ' );
161- Block \await ($ promise, Loop:: get () );
161+ Async \await ($ promise );
162162 }
163163
164164 public function testCancelMethodRejectsWithRuntimeException ()
@@ -170,7 +170,7 @@ public function testCancelMethodRejectsWithRuntimeException()
170170
171171 $ this ->expectException (\RuntimeException::class);
172172 $ this ->expectExceptionMessage ('cancelled ' );
173- Block \await ($ promise, Loop:: get () );
173+ Async \await ($ promise );
174174 }
175175
176176 public function testTimeoutRejectsWithRuntimeException ()
@@ -185,7 +185,7 @@ public function testTimeoutRejectsWithRuntimeException()
185185
186186 $ this ->expectException (\RuntimeException::class);
187187 $ this ->expectExceptionMessage ('timed out ' );
188- Block \await ($ promise, Loop:: get () );
188+ Async \await ($ promise );
189189 }
190190
191191 public function testGetLocationForFunctionName ()
@@ -236,7 +236,7 @@ public function testWithLocationInvalidRejectsWithRuntimeException()
236236 $ promise = $ api ->getBank (array ('blz ' => '12070000 ' ));
237237
238238 $ this ->expectException (\RuntimeException::class);
239- Block \await ($ promise, Loop:: get () );
239+ Async \await ($ promise );
240240 }
241241
242242 public function testWithLocationRestoredToOriginalResolves ()
@@ -248,7 +248,7 @@ public function testWithLocationRestoredToOriginalResolves()
248248
249249 $ promise = $ api ->getBank (array ('blz ' => '12070000 ' ));
250250
251- $ result = Block \await ($ promise, Loop:: get () );
251+ $ result = Async \await ($ promise );
252252 $ this ->assertIsObject ($ result );
253253 }
254254}
0 commit comments