getOption() public method

You pass a string $option name to get its associated value
public getOption ( string $option ) : boolean | integer | null
$option string String of $option name to get
return boolean | integer | null Returns the value of the requested option
Exemplo n.º 1
0
 public function testSettingAndUnsettingOptions()
 {
     $this->sandbox->setOption('error_level', 1);
     $this->assertEquals(1, $this->sandbox->getOption('error_level'));
     $this->sandbox->setOption('error_level', null);
     $this->assertEquals(null, $this->sandbox->getOption('error_level'));
 }