Since: 2.4.0
Author: Henry Ruhs
Inheritance: extends ServerAbstract
 /**
  * testToken
  *
  * @since 2.4.0
  */
 public function testToken()
 {
     /* setup */
     $token = new Server\Token($this->_request);
     /* actual */
     $actual = $token->getOutput();
     /* compare */
     $this->assertNotEmpty($actual);
 }
Example #2
0
 /**
  * get the token parameter
  *
  * @since 2.4.0
  *
  * @return string
  */
 public function getToken()
 {
     $token = new Server\Token($this->_request);
     if ($this->getLast() === $token->getOutput()) {
         return $this->getLast();
     }
 }