ProviderUnitTestAbstract
extends TestCase
in package
Uses
HttpFactoryTrait
AbstractYes
Table of Contents
Constants
- CACERT = __DIR__ . '/../cacert.pem'
- PROJECT_ROOT = __DIR__ . '/../../'
Properties
- $ENV_IS_CI : bool
- $HTTP_CLIENT_FACTORY : string
- $logger : LoggerInterface
- $options : OAuthOptions
- $provider : OAuthInterface
- $reflection : ReflectionClass
- $storage : OAuthStorageInterface
Methods
- getProviderFQCN() : string
- returns the fully qualified class name (FQCN) of the test subject
- getReflectionProperty() : mixed
- initOptions() : OAuthOptions
- initProvider() : OAuthInterface|OAuth1Interface|OAuth2Interface
- initStorage() : OAuthStorageInterface
- invokeReflection() : object
- invokeReflectionMethod() : mixed
- setReflectionProperty() : void
- setUp() : void
Constants
CACERT
protected
mixed
CACERT
= __DIR__ . '/../cacert.pem'
PROJECT_ROOT
protected
mixed
PROJECT_ROOT
= __DIR__ . '/../../'
Properties
$ENV_IS_CI
protected
bool
$ENV_IS_CI
$HTTP_CLIENT_FACTORY
protected
string
$HTTP_CLIENT_FACTORY
= \chillerlan\OAuthTest\Providers\ProviderUnitTestHttpClientFactory::class
$logger
protected
LoggerInterface
$logger
$options
protected
OAuthOptions
$options
$provider
protected
OAuthInterface
$provider
$reflection
protected
ReflectionClass
$reflection
$storage
protected
OAuthStorageInterface
$storage
Methods
getProviderFQCN()
returns the fully qualified class name (FQCN) of the test subject
protected
abstract getProviderFQCN() : string
Return values
stringgetReflectionProperty()
protected
final getReflectionProperty(string $property) : mixed
Parameters
- $property : string
initOptions()
protected
initOptions() : OAuthOptions
Return values
OAuthOptionsinitProvider()
protected
initProvider(string $FQCN) : OAuthInterface|OAuth1Interface|OAuth2Interface
Parameters
- $FQCN : string
Return values
OAuthInterface|OAuth1Interface|OAuth2InterfaceinitStorage()
protected
initStorage(OAuthOptions $options) : OAuthStorageInterface
Parameters
- $options : OAuthOptions
Return values
OAuthStorageInterfaceinvokeReflection()
protected
final invokeReflection(string $FQCN[, array<string|int, mixed> $args = [] ]) : object
Parameters
- $FQCN : string
- $args : array<string|int, mixed> = []
Return values
objectinvokeReflectionMethod()
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
setUp()
protected
setUp() : void