Redaxscript\Server\Host::getOutput PHP Метод

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

get the output
С версии: 2.4.0
public getOutput ( ) : string
Результат 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);
 }