Redaxscript\Server\Directory::getOutput PHP Method

getOutput() public method

get the output
Since: 2.4.0
public getOutput ( ) : string
return string
    public function getOutput()
    {
        $output = dirname($this->_request->getServer('SCRIPT_NAME'));
        return $output;
    }

Usage Example

 /**
  * testDirectory
  *
  * @since 2.4.0
  */
 public function testDirectory()
 {
     /* setup */
     $directory = new Server\Directory($this->_request);
     /* actual */
     $actual = $directory->getOutput();
     /* compare */
     $this->assertEquals('/tests/includes/Server', $actual);
 }
Directory