OpenTelemetry PHP

ResourceInfoTest extends TestCase
in package
uses TestState

Attributes
#[CoversNothing]

Table of Contents

Properties

$environmentVariables  : array<string|int, mixed>

Methods

environmentResourceProvider()  : array<string|int, mixed>
test_resource_from_environment()  : void
restoreEnvironmentVariables()  : void
setEnvironmentVariable()  : void
tearDownSharedState()  : void

Properties

$environmentVariables

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

Methods

environmentResourceProvider()

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

test_resource_from_environment()

public test_resource_from_environment(string $envAttributes, array<string|int, mixed> $userAttributes, array<string|int, mixed> $expected) : void
Parameters
$envAttributes : string
$userAttributes : array<string|int, mixed>
$expected : array<string|int, mixed>
Attributes
#[DataProvider]
'environmentResourceProvider'
#[Group]
'compliance'

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