ParaTest\Runners\PHPUnit\TestFileLoader::tryLoadTests PHP Method

tryLoadTests() private method

Attempts to load suites from a path.
private tryLoadTests ( string $path, string $pattern = self::TEST_PATTERN )
$path string
$pattern string regular expression for matching file names
    private function tryLoadTests($path, $pattern = self::TEST_PATTERN)
    {
        if (preg_match($pattern, $path)) {
            if ($this->excludingFiles) {
                $this->excludedFiles[$path] = $path;
            } elseif (!array_key_exists($path, $this->excludedFiles)) {
                $this->files[] = $path;
            }
        }
        if (!preg_match(self::$dotPattern, $path) && is_dir($path)) {
            $this->loadDir($path, $pattern);
        }
    }