Redaxscript\Server\Token::getOutput PHP Method

getOutput() public method

get the output
Since: 2.4.0
public getOutput ( ) : string
return string
    public function getOutput()
    {
        $host = new Host($this->_request);
        $output = sha1(session_id() . $this->_request->getServer('REMOTE_ADDR') . $this->_request->getServer('HTTP_USER_AGENT') . $host->getOutput());
        return $output;
    }

Usage Example

 /**
  * testToken
  *
  * @since 2.4.0
  */
 public function testToken()
 {
     /* setup */
     $token = new Server\Token($this->_request);
     /* actual */
     $actual = $token->getOutput();
     /* compare */
     $this->assertNotEmpty($actual);
 }
All Usage Examples Of Redaxscript\Server\Token::getOutput