getOption() public méthode

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
Résultat boolean | integer | null Returns the value of the requested option
 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'));
 }