Documentation

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

Properties

$HTTP_CLIENT_FACTORY

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

Methods

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