realpath() публичный Метод

Returns the absolute path to the passed directory, also working on Windows.
public realpath ( string $relativePathToAppend ) : string
$relativePathToAppend string The relativ path to return the absolute path for
Результат string The absolute path of the passed directory
 /**
  * Test if building the absolute path works like it should
  *
  * @return null
  */
 public function testRealpath()
 {
     $appendedDirectory = '/test/directory';
     $result = $this->service->realpath($appendedDirectory);
     $this->assertEquals('/opt/appserver/test/directory', $result);
 }