getConfig() 공개 메소드

Returns a specific config key or the whole config array if not set.
public getConfig ( string $key = '' ) : array | string
$key string Config key
리턴 array | string Config value
예제 #1
0
파일: LogTest.php 프로젝트: kskod/Elastica
 public function testSetLogConfigEnable()
 {
     $client = new Client(array('log' => true));
     $this->assertTrue($client->getConfig('log'));
 }
 public function testSetLogConfigEnable1()
 {
     $client = new Client();
     $client->setLogger(new Log());
     $this->assertFalse($client->getConfig('log'));
 }