getConfig() public method

Returns the entire configuration in use or the value of a specific configuration setting.
public getConfig ( string $index = null, mixed $default = null ) : mixed
$index string Optional index of a specific configuration setting for which the corresponding value should be returned
$default mixed Value to return if no match is found for $index
return mixed Value corresponding to $index or the entire configuration if $index is not specified
Beispiel #1
0
 /**
  * Tests that a custom configuration object can be used.
  *
  * @return void
  */
 public function testSetConfig()
 {
     $config = $this->getMockConfig();
     $this->bot->setConfig($config);
     $this->assertSame($config, $this->bot->getConfig());
 }