JamesMoss\Flywheel\Config::getPath PHP Method

getPath() public method

Gets the path set during initialisation
public getPath ( ) : string
return string The full file path, with no trailing slash.
    public function getPath()
    {
        return $this->path;
    }

Usage Example

Beispiel #1
0
 public function testSlashesTidedUp()
 {
     $path = __DIR__ . DIRECTORY_SEPARATOR . 'fixtures' . DIRECTORY_SEPARATOR . 'datastore' . DIRECTORY_SEPARATOR . 'writable';
     $config = new Config($path . DIRECTORY_SEPARATOR);
     $this->assertSame($path, $config->getPath());
 }