SdkTest
extends TestCase
in package
uses
TestState
Attributes
- #[CoversClass]
- \OpenTelemetry\SDK\Resource\Detectors\Sdk::class
Table of Contents
Properties
- $detector : ResourceDetectorInterface
- $environmentVariables : array<string|int, mixed>
Methods
- setUp() : void
- test_sdk_get_resource() : void
- restoreEnvironmentVariables() : void
- setEnvironmentVariable() : void
- tearDownSharedState() : void
Properties
$detector
private
ResourceDetectorInterface
$detector
$environmentVariables
private
array<string|int, mixed>
$environmentVariables
= []
Methods
setUp()
public
setUp() : void
test_sdk_get_resource()
public
test_sdk_get_resource() : void
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]