SimpleStackTrace::frameLiesWithinSimpleTestFolder PHP Method

frameLiesWithinSimpleTestFolder() protected method

Test to see if error is generated by SimpleTest itself.
protected frameLiesWithinSimpleTestFolder ( array $frame ) : boolean
$frame array PHP stack frame.
return boolean True if a SimpleTest file.
    protected function frameLiesWithinSimpleTestFolder($frame)
    {
        if (isset($frame['file'])) {
            $path = substr(SIMPLE_TEST, 0, -1);
            if (strpos($frame['file'], $path) === 0) {
                if (dirname($frame['file']) == $path) {
                    return true;
                }
            }
        }
        return false;
    }