protected function setUp()
 {
     $this->client = HttpClient::factory(array('host' => 'localhost'));
     $this->object = new APIClient($this->client);
     $this->conn = new \PhpAmqpLib\Connection\AMQPConnection('localhost', 5672, 'guest', 'guest', '/');
     $this->channel = $this->conn->channel();
 }
 protected function setUp()
 {
     $this->loop = \React\EventLoop\Factory::create();
     $this->object = AsyncAPIClient::factory($this->loop, array('host' => '127.0.0.1'));
     $this->syncClientClient = HttpClient::factory(array('host' => 'localhost'));
     $this->syncClient = new APIClient($this->syncClientClient);
     $this->conn = new \PhpAmqpLib\Connection\AMQPConnection('localhost', 5672, 'guest', 'guest', '/');
     $this->channel = $this->conn->channel();
 }
 public static function factory(array $options = array())
 {
     return new self(HttpClient::factory($options));
 }