public function testFactoryWithBothTimeoutsAndFramedTransport()
 {
     $this->guardExtensionPresent();
     $restClient = ThriftTransportConnectionFactory::factory('localhost', 9500, 100, 100, true);
     $this->assertInstanceOf('Elasticsearch\\RestClient', $restClient);
 }
Exemplo n.º 2
0
 /**
  * @author Mario Mueller
  */
 public function setUp()
 {
     $this->thriftClient = ThriftTransportConnectionFactory::factory('localhost', 9500);
 }