functionDisabled() публичный статический Метод

Tests if the named function is present and enabled in the current environment.
public static functionDisabled ( string $functionName ) : boolean
$functionName string The name of the function to test.
Результат boolean True if the function is disabled, false if it is available.
Пример #1
0
 public function testDisabledFunction()
 {
     $result = Morse::functionDisabled('exec');
     $this->assertTrue($result === true || $result === false);
 }