OpenTelemetry PHP

ConfigurationResolverTest extends TestCase
in package
uses TestState

Attributes
#[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

Properties

$environmentVariables

private array<string|int, mixed> $environmentVariables = []

Methods

booleanProvider()

public static booleanProvider() : array<string|int, mixed>
Return values
array<string|int, mixed>

listProvider()

public static listProvider() : array<string|int, mixed>
Return values
array<string|int, mixed>

test_get_boolean()

public test_get_boolean(string|null $value, bool|null $expected) : void
Parameters
$value : string|null
$expected : bool|null
Attributes
#[DataProvider]
'booleanProvider'

test_get_int()

public test_get_int(string|null $value, int|null $expected) : void
Parameters
$value : string|null
$expected : int|null
Attributes
#[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>
Attributes
#[DataProvider]
'listProvider'

test_has()

public test_has(string|null $value, bool $expected) : void
Parameters
$value : string|null
$expected : bool
Attributes
#[DataProvider]
'hasProvider'

restoreEnvironmentVariables()

protected restoreEnvironmentVariables() : void
Attributes
#[After]

setEnvironmentVariable()

protected setEnvironmentVariable(string $variable, mixed $value) : void
Parameters
$variable : string
$value : mixed

tearDownSharedState()

protected tearDownSharedState() : void
Attributes
#[After]

        
On this page

Search results