| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 34 | public function callAsync() |
||
| 35 | { |
||
| 36 | $client = $this->factory->create( |
||
| 37 | new Client(), |
||
| 38 | 'http://www.webservicex.net/Statistics.asmx?WSDL', |
||
| 39 | new RequestBuilder() |
||
| 40 | ); |
||
| 41 | $response = null; |
||
| 42 | $promise = $client->callAsync('GetStatistics', [['X' => [1,2,3]]])->then( |
||
| 43 | function ($result) use (&$response) { |
||
| 44 | $response = $result; |
||
| 45 | } |
||
| 46 | ); |
||
| 47 | $promise->wait(); |
||
| 48 | $this->assertNotEmpty($response); |
||
| 49 | } |
||
| 50 | } |