PhpSchool\LearnYouPhp\Exercise\ExceptionalCoding::getBannedFunctions PHP Method

getBannedFunctions() public method

public getBannedFunctions ( ) : string[]
return string[]
    public function getBannedFunctions()
    {
        return ['array_filter', 'file_exists'];
    }

Usage Example

 public function testFunctionRequirements()
 {
     $e = new ExceptionalCoding($this->filesystem, $this->faker);
     $this->assertEquals([], $e->getRequiredFunctions());
     $this->assertEquals(['array_filter', 'file_exists'], $e->getBannedFunctions());
 }