Redaxscript\Server\Host::getOutput PHP Method

getOutput() public method

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

Usage Example

 /**
  * testHost
  *
  * @since 2.4.0
  */
 public function testHost()
 {
     /* setup */
     $host = new Server\Host($this->_request);
     /* actual */
     $actual = $host->getOutput();
     /* compare */
     $this->assertEquals('localhost', $actual);
 }