/**
  * @test
  */
 public function resultsAreEquivalent()
 {
     $this->deferredHttpBinding = new FulfilledPromise($this->httpBindingMock);
     $this->httpBindingMock->method('request')->willReturn(new Request('POST', 'www.endpoint.com'))->with('someSoapMethod', [['some-key' => 'some-value']]);
     $response = new Response('200', [], 'body');
     $this->httpBindingMock->method('response')->willReturn('SoapResult');
     $this->handlerMock->append($response);
     $this->handlerMock->append($response);
     $this->handlerMock->append($response);
     $client = new SoapClient($this->clientMock, $this->deferredHttpBinding);
     $magicResult = $client->someSoapMethod(['some-key' => 'some-value'])->wait();
     $syncResult = $client->call('someSoapMethod', [['some-key' => 'some-value']]);
     $asyncResult = $client->callAsync('someSoapMethod', [['some-key' => 'some-value']])->wait();
     $this->assertEquals($magicResult, $asyncResult);
     $this->assertEquals($syncResult, $asyncResult);
 }