Пример #1
0
 /**
  * @group unit
  */
 public function testPasswordFromClient()
 {
     $password = '******';
     $client = new \Elastica\Client(array('password' => $password));
     $this->assertEquals($password, $client->getConnection()->getPassword('password'));
 }
Пример #2
0
 /**
  * @group unit
  */
 public function testCompressionEnabledWithClient()
 {
     $client = new \Elastica\Client(array('connections' => array(array('compression' => true))));
     $connection = $client->getConnection();
     $this->assertTrue($connection->hasCompression());
 }