getConfig() public method

Returns a specific config key or the whole config array if not set.
public getConfig ( string $key = '' ) : array | string
$key string Config key
return array | string Config value
Esempio n. 1
0
 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'));
 }