Documentation

AccessTokenTest extends TestCase
in package

FinalYes

Tests the AccessToken class

Table of Contents

Properties

$token  : AccessToken

Methods

expiryDataProvider()  : array<string, DateInterval|int|null, 1: int}>
isExpiredDataProvider()  : array<string, array{0: int, 1: bool}>
testDefaultsGetSet()  : void
testIsExpired()  : void
testIsExpiredVariable()  : void
testSetExpiry()  : void
tokenDataProvider()  : array<string, array{0: string, 1: mixed, 2: mixed}>
setUp()  : void

Properties

Methods

expiryDataProvider()

public static expiryDataProvider() : array<string, DateInterval|int|null, 1: int}>
Return values
array<string, DateInterval|int|null, 1: int}>

isExpiredDataProvider()

public static isExpiredDataProvider() : array<string, array{0: int, 1: bool}>
Return values
array<string, array{0: int, 1: bool}>

testDefaultsGetSet()

public testDefaultsGetSet(string $property, mixed $value, mixed $data) : void
Parameters
$property : string
$value : mixed
$data : mixed
Attributes
#[DataProvider]
'tokenDataProvider'

testIsExpired()

public testIsExpired(int $expiry, bool $isExpired) : void
Parameters
$expiry : int
$isExpired : bool
Attributes
#[DataProvider]
'isExpiredDataProvider'

testIsExpiredVariable()

public testIsExpiredVariable() : void
Attributes
#[Group]
'slow'

testSetExpiry()

public testSetExpiry(DateTime|DateInterval|int|null $expires, int $expected) : void
Parameters
$expires : DateTime|DateInterval|int|null
$expected : int
Attributes
#[DataProvider]
'expiryDataProvider'

tokenDataProvider()

public static tokenDataProvider() : array<string, array{0: string, 1: mixed, 2: mixed}>
Return values
array<string, array{0: string, 1: mixed, 2: mixed}>

        
On this page

Search results