/** * testToken * * @since 2.4.0 */ public function testToken() { /* setup */ $token = new Server\Token($this->_request); /* actual */ $actual = $token->getOutput(); /* compare */ $this->assertNotEmpty($actual); }
/** * 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(); } }