Neos\Flow\Utility\Environment::getMaximumPathLength PHP Method

getMaximumPathLength() public method

Retrieves the maximum path length that is valid in the current environment.
public getMaximumPathLength ( ) : integer
return integer The maximum available path length
    public function getMaximumPathLength()
    {
        return PHP_MAXPATHLEN;
    }

Usage Example

 /**
  * @test
  */
 public function getMaximumPathLengthReturnsCorrectValue()
 {
     $environment = new Environment(new ApplicationContext('Testing'));
     $expectedValue = PHP_MAXPATHLEN;
     if ((int) $expectedValue <= 0) {
         $this->fail('The PHP Constant PHP_MAXPATHLEN is not available on your system! Please file a PHP bug report.');
     }
     $this->assertEquals($expectedValue, $environment->getMaximumPathLength());
 }