$this->
assertSame('/path/to/test', Path::
join('/path', 'to', '/test'
));
$this->
assertSame('/path/to/test/subdir', Path::
join('/path', 'to', '/test', 'subdir/'
));
} public function testGetHomeDirectoryFailsIfNotSupportedOperatingSystem() { $this->
expectException(\RuntimeException::
class);
$this->
expectExceptionMessage('Your environment or operating system isn\'t supported'
);
putenv('HOME='
);
Path::
getHomeDirectory();
} public function testGetHomeDirectoryForUnix() { $this->
assertEquals('/home/webmozart', Path::
getHomeDirectory());
} public function testGetHomeDirectoryForWindows() { putenv('HOME='
);
putenv('HOMEDRIVE=C:'
);