getTokenExpires() public method

Get OAuth 2.0 access token expiry time.
public getTokenExpires ( ) : integer
return integer
Esempio n. 1
0
 public function testBearerToken()
 {
     $this->gateway->setToken('');
     $this->setMockHttpResponse('RestTokenSuccess.txt');
     $this->assertFalse($this->gateway->hasToken());
     $this->assertEquals('A015GQlKQ6uCRzLHSGRliANi59BHw6egNVKEWRnxvTwvLr0', $this->gateway->getToken());
     // triggers request
     $this->assertEquals(time() + 28800, $this->gateway->getTokenExpires());
     $this->assertTrue($this->gateway->hasToken());
 }