Phergie_Plugin_TestCase::getPluginsPath PHP Method

getPluginsPath() protected method

Returns the absolute path to the Phergie/Plugin directory. Useful in conjunction with getMockDatabase().
protected getPluginsPath ( string $subpath = null ) : string
$subpath string Optional path to append to the directory path
return string Directory path
    protected function getPluginsPath($subpath = null)
    {
        $path = dirname(dirname(dirname(dirname(__FILE__)))) . '/Phergie/Plugin';
        if (!empty($subpath)) {
            $path .= '/' . ltrim($subpath, '/');
        }
        return $path;
    }