Artesaos\Defender\Testing\AbstractTestCase::parseSubPath PHP Method

parseSubPath() protected method

Trim slashes of path and return prefixed by DIRECTORY_SEPARATOR.
protected parseSubPath ( string $path ) : string
$path string
return string
    protected function parseSubPath($path)
    {
        return $path ? DIRECTORY_SEPARATOR . trim($path, DIRECTORY_SEPARATOR) : '';
    }