/** * Inits log object. Checks if logging is enabled for the given client * * @param Elastica_Client $client */ public function __construct(Elastica_Client $client) { $this->setLog($client->getConfig('log')); }
public function testEmptyLogConfig() { $client = new Elastica_Client(); $this->assertEmpty($client->getConfig('log')); }