Skip to content

Commit ed5f472

Browse files
committed
Update dependencies
1 parent 8a10ea4 commit ed5f472

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@
1818
},
1919
"require": {
2020
"php": ">=7.1",
21-
"react/http": "^1.5",
22-
"react/promise": "^2.1 || ^1.2",
21+
"react/http": "^1.11",
22+
"react/promise": "^3.2 || ^2.1 || ^1.2",
2323
"ext-soap": "*"
2424
},
2525
"require-dev": {
26-
"clue/block-react": "^1.0",
27-
"phpunit/phpunit": "^9.3 || ^7.5"
26+
"react/async": "^4.3 || ^3.2",
27+
"phpunit/phpunit": "^9.6 || ^7.5"
2828
}
2929
}

tests/FunctionalTest.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
namespace Clue\Tests\React\Soap;
44

5-
use Clue\React\Block;
5+
use React\Async;
6+
use React\Http\Browser;
67
use Clue\React\Soap\Client;
78
use Clue\React\Soap\Proxy;
89
use PHPUnit\Framework\TestCase;
9-
use React\EventLoop\Loop;
10-
use React\Http\Browser;
10+
1111

1212
class 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

Comments
 (0)