public function getConfig($key = '')
{
if (empty($key)) {
return $this->_config;
}
if (!array_key_exists($key, $this->_config)) {
throw new InvalidException('Config key is not set: ' . $key);
}
return $this->_config[$key];
}
public function testSetLogConfigEnable() { $client = new Client(array('log' => true)); $this->assertTrue($client->getConfig('log')); }