Jyxo\Beholder\Executor::includeTest PHP Method

includeTest() private method

Checks if the given test will be performed according to the current filter settings.
private includeTest ( string $ident ) : boolean
$ident string Test identifier
return boolean
    private function includeTest(string $ident) : bool
    {
        // If the test is not among the allowed ones, return false
        $include = false;
        foreach (explode(',', $this->includeFilter) as $pattern) {
            if ($this->patternMatch($pattern, $ident)) {
                // We cannot use "return true" because the test might be disabled later
                $include = true;
            }
        }
        if (!$include) {
            return false;
        }
        // If the test is among the excluded ones, return false
        foreach (explode(',', $this->excludeFilter) as $pattern) {
            if ($this->patternMatch($pattern, $ident)) {
                return false;
            }
        }
        // Included otherwise
        return true;
    }