public setTokenExpires ( integer $value ) : |
||
$value | integer | |
리턴 | provides a fluent interface |
public function setTokenExpires($value)
{
return $this->setParameter('tokenExpires', $value);
}
public function testBearerTokenExpires() { $this->setMockHttpResponse('RestTokenSuccess.txt'); $this->gateway->setToken('MYTOKEN'); $this->gateway->setTokenExpires(time() - 60); $this->assertFalse($this->gateway->hasToken()); $this->assertEquals('A015GQlKQ6uCRzLHSGRliANi59BHw6egNVKEWRnxvTwvLr0', $this->gateway->getToken()); }