SimpleStackTrace::frameMatchesPrefix PHP Method

frameMatchesPrefix() protected method

Tries to determine if the method call is an assert, etc.
protected frameMatchesPrefix ( array $frame ) : boolean
$frame array PHP stack frame.
return boolean True if matches a target.
    protected function frameMatchesPrefix($frame)
    {
        foreach ($this->prefixes as $prefix) {
            if (strncmp($frame['function'], $prefix, strlen($prefix)) == 0) {
                return true;
            }
        }
        return false;
    }