Documentation

ProviderLiveTestAbstract extends ProviderUnitTestAbstract
in package

AbstractYes

Table of Contents

Constants

CACERT  = __DIR__ . '/../cacert.pem'
PROJECT_ROOT  = __DIR__ . '/../../'

Properties

$CFG_DIR  : string
$dotEnv  : DotEnv
$ENV_IS_CI  : bool
$ENV_PREFIX  : string
$HTTP_CLIENT_FACTORY  : string
$logger  : LoggerInterface
$options  : OAuthOptions
$provider  : OAuthInterface
$reflection  : ReflectionClass
$storage  : OAuthStorageInterface
$TEST_USER  : string
a test username for live API tests, defined in .env as {ENV-PREFIX}_TESTUSER

Methods

getEnvPrefix()  : string|null
returns the prefix in the .env file for the current provider
getProviderFQCN()  : string
returns the fully qualified class name (FQCN) of the test subject
getReflectionProperty()  : mixed
initEnvConfig()  : void
initOptions()  : OAuthOptions
initProvider()  : OAuthInterface|OAuth1Interface|OAuth2Interface
initStorage()  : OAuthStorageInterface
invokeReflection()  : object
invokeReflectionMethod()  : mixed
setReflectionProperty()  : void
setUp()  : void

Constants

Properties

$HTTP_CLIENT_FACTORY

protected string $HTTP_CLIENT_FACTORY = \chillerlan\OAuthTest\Providers\ProviderLiveTestHttpClientFactory::class

$TEST_USER

a test username for live API tests, defined in .env as {ENV-PREFIX}_TESTUSER

protected string $TEST_USER = ''

Methods

getEnvPrefix()

returns the prefix in the .env file for the current provider

protected abstract getEnvPrefix() : string|null
Return values
string|null

getProviderFQCN()

returns the fully qualified class name (FQCN) of the test subject

protected abstract getProviderFQCN() : string
Return values
string

getReflectionProperty()

protected final getReflectionProperty(string $property) : mixed
Parameters
$property : string

invokeReflection()

protected final invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object
Parameters
$FQCN : string
$args : array<string|int, mixed> = []
Return values
object

invokeReflectionMethod()

protected final invokeReflectionMethod(string $method[, array<string|int, mixed> $args = [] ]) : mixed
Parameters
$method : string
$args : array<string|int, mixed> = []

setReflectionProperty()

protected final setReflectionProperty(string $property, mixed $value) : void
Parameters
$property : string
$value : mixed

        
On this page

Search results