ServiceTest
extends TestCase
uses
TestState
-
#[CoversClass]
-
\OpenTelemetry\SDK\Resource\Detectors\Service::class
Table of Contents
Properties
-
$detector
: Service
-
$environmentVariables
: array<string|int, mixed>
Methods
-
setUp()
: void
-
test_sdk_get_resource_with_service_name()
: void
-
restoreEnvironmentVariables()
: void
-
setEnvironmentVariable()
: void
-
tearDownSharedState()
: void
$detector
private
Service
$detector
$environmentVariables
private
array<string|int, mixed>
$environmentVariables
= []
setUp()
public
setUp() : void
test_sdk_get_resource_with_service_name()
public
test_sdk_get_resource_with_service_name() : void
restoreEnvironmentVariables()
protected
restoreEnvironmentVariables() : void
setEnvironmentVariable()
protected
setEnvironmentVariable(string $variable, mixed $value) : void
Parameters
-
$variable
: string
-
-
$value
: mixed
-
tearDownSharedState()
protected
tearDownSharedState() : void