src/Runners/PHPUnit/Configuration.php
public function getSuitePaths(string $path)
    {
        $real = realpath($this->getConfigDir() . $path);

        if ($real !== false) {
            return [$real];
        }

        if ($this->isGlobRequired($path)) {
            $paths = [];
            foreach (glob($this->getConfigDir() . $path, GLOB_ONLYDIR) as $path) {
                if (($path = realpath($path)) !== false) {
                    $paths[] = $path;
                }
            }

            return $paths;
        }

        throw new \RuntimeException("Suite path $path could not be found");
    }
public function getSuitePaths(string $path)
    {
        $real = realpath($this->getConfigDir() . $path);

        if ($real !== false) {
            return [$real];
        }

        if ($this->isGlobRequired($path)) {
            $paths = [];
            foreach (glob($this->getConfigDir() . $path, GLOB_ONLYDIR) as $path) {
                if (($path = realpath($path)) !== false) {
                    $paths[] = $path;
                }
            }

            return $paths;
        }

        throw new \RuntimeException("Suite path $path could not be found");
    }
public function getSuitePaths ( string $ path ) { $ real = realpath ( $ this -> getConfigDir ( ) . $ path ) ; if ( $ real !== false ) { return [ $ real ] ; } if ( $ this -> isGlobRequired ( $ path ) ) { $ paths = [ ] ; foreach ( glob ( $ this -> getConfigDir ( ) . $ path , GLOB_ONLYDIR ) as $ path ) { if ( ( $ path = realpath ( $ path ) ) !== false ) { $ paths [ ] = $ path ; } } return $ paths ; } throw new \ RuntimeException ( "Suite path $path could not be found" ) ; }
Returns a suite paths relative to the config file.

@param $path

@return array|string[]
Returns a suite paths relative to the config file .