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