for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use GuzzleHttp\Client;
use Meng\AsyncSoap\Guzzle\Factory;
use Meng\Soap\HttpBinding\RequestBuilder;
class SoapClientTest extends PHPUnit_Framework_TestCase
{
/** @var Factory */
private $factory;
protected function setUp()
$this->factory = new Factory();
}
/**
* @test
*/
public function call()
$client = $this->factory->create(
new Client(),
'http://www.webservicex.net/Statistics.asmx?WSDL',
new RequestBuilder()
);
$response = $client->call('GetStatistics', [['X' => [1,2,3]]]);
$this->assertNotEmpty($response);
public function callAsync()
$response = null;
$promise = $client->callAsync('GetStatistics', [['X' => [1,2,3]]])->then(
function ($result) use (&$response) {
$response = $result;
$promise->wait();