for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Http\Client\Common;
use Http\Client\HttpAsyncClient;
use Http\Client\HttpClient;
/**
* Emulates an async HTTP client.
*
* This should be replaced by an anonymous class in PHP 7.
* @author Márk Sági-Kazár <[email protected]>
*/
class EmulatedHttpAsyncClient implements HttpClient, HttpAsyncClient
{
use HttpAsyncClientEmulator;
use HttpClientDecorator;
* @param HttpClient $httpClient
public function __construct(HttpClient $httpClient)
$this->httpClient = $httpClient;
}