AccessTokenTest
extends TestCase
in package
FinalYes
Tests the AccessToken class
Table of Contents
Properties
Methods
- expiryDataProvider() : array<string|int, mixed>
- isExpiredDataProvider() : array<string|int, mixed>
- testDefaultsGetSet() : void
- testIsExpired() : void
- testIsExpiredVariable() : void
- testSetExpiry() : void
- tokenDataProvider() : array<string|int, mixed>
- setUp() : void
Properties
$token
private
AccessToken
$token
Methods
expiryDataProvider()
public
static expiryDataProvider() : array<string|int, mixed>
Return values
array<string|int, mixed>isExpiredDataProvider()
public
static isExpiredDataProvider() : array<string|int, mixed>
Return values
array<string|int, mixed>testDefaultsGetSet()
public
testDefaultsGetSet(string $property, mixed $value, mixed $data) : void
Parameters
- $property : string
- $value : mixed
- $data : mixed
testIsExpired()
public
testIsExpired(int $expires, bool $isExpired) : void
Parameters
- $expires : int
- $isExpired : bool
testIsExpiredVariable()
public
testIsExpiredVariable() : void
testSetExpiry()
public
testSetExpiry(int|null $expires, int $expected) : void
Parameters
- $expires : int|null
- $expected : int
tokenDataProvider()
public
static tokenDataProvider() : array<string|int, mixed>
Return values
array<string|int, mixed>setUp()
protected
setUp() : void