ConfigurationResolverTest
extends TestCase
uses
TestState
-
#[CoversClass]
-
\OpenTelemetry\API\Instrumentation\ConfigurationResolver::class
Table of Contents
Properties
-
$environmentVariables
: array<string|int, mixed>
-
$resolver
: ConfigurationResolver
Methods
-
booleanProvider()
: array<string|int, mixed>
-
hasProvider()
: array<string|int, mixed>
-
intProvider()
: array<string|int, mixed>
-
listProvider()
: array<string|int, mixed>
-
setUp()
: void
-
test_get_boolean()
: void
-
test_get_int()
: void
-
test_get_list()
: void
-
test_get_string()
: void
-
test_has()
: void
-
test_has_when_missing()
: void
-
restoreEnvironmentVariables()
: void
-
setEnvironmentVariable()
: void
-
tearDownSharedState()
: void
$environmentVariables
private
array<string|int, mixed>
$environmentVariables
= []
$resolver
private
ConfigurationResolver
$resolver
booleanProvider()
public
static booleanProvider() : array<string|int, mixed>
Return values
array<string|int, mixed>
hasProvider()
public
static hasProvider() : array<string|int, mixed>
Return values
array<string|int, mixed>
intProvider()
public
static intProvider() : array<string|int, mixed>
Return values
array<string|int, mixed>
listProvider()
public
static listProvider() : array<string|int, mixed>
Return values
array<string|int, mixed>
setUp()
public
setUp() : void
test_get_boolean()
public
test_get_boolean(string|null $value, bool|null $expected) : void
Parameters
-
$value
: string|null
-
-
$expected
: bool|null
-
-
#[DataProvider]
-
'booleanProvider'
test_get_int()
public
test_get_int(string|null $value, int|null $expected) : void
Parameters
-
$value
: string|null
-
-
$expected
: int|null
-
-
#[DataProvider]
-
'intProvider'
test_get_list()
public
test_get_list(string|null $value, array<string|int, mixed> $expected) : void
Parameters
-
$value
: string|null
-
-
$expected
: array<string|int, mixed>
-
-
#[DataProvider]
-
'listProvider'
test_get_string()
public
test_get_string() : void
test_has()
public
test_has(string|null $value, bool $expected) : void
Parameters
-
$value
: string|null
-
-
$expected
: bool
-
-
#[DataProvider]
-
'hasProvider'
test_has_when_missing()
public
test_has_when_missing() : void
restoreEnvironmentVariables()
protected
restoreEnvironmentVariables() : void
setEnvironmentVariable()
protected
setEnvironmentVariable(string $variable, mixed $value) : void
Parameters
-
$variable
: string
-
-
$value
: mixed
-
tearDownSharedState()
protected
tearDownSharedState() : void