getRelativePathFrom() public method

public getRelativePathFrom ( path $reference )
$reference path
Example #1
0
 public function testGetRelativePathFrom($path, $directorySeparator, $fromPath, $fromDirectorySeparator, $relativePath)
 {
     $this->if($path = new testedClass($path, $directorySeparator))->then->object($path->getRelativePathFrom(new testedClass($fromPath, $fromDirectorySeparator)))->isNotIdenticalTo($path)->toString->isEqualTo($relativePath);
 }