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 HTTP client.
*
* This should be replaced by an anonymous class in PHP 7.
* @author Márk Sági-Kazár <[email protected]>
*/
class EmulatedHttpClient implements HttpClient, HttpAsyncClient
{
use HttpAsyncClientDecorator;
use HttpClientEmulator;
* @param HttpAsyncClient $httpAsyncClient
public function __construct(HttpAsyncClient $httpAsyncClient)
$this->httpAsyncClient = $httpAsyncClient;
}