AutoRootSpanTest
extends TestCase
uses
TestState
-
#[CoversClass]
-
\OpenTelemetry\SDK\Trace\AutoRootSpan::class
Table of Contents
Properties
-
$environmentVariables
: array<string|int, mixed>
-
$scope
: ScopeInterface
-
$tracer
: TracerInterface|MockObject
Methods
-
enabledProvider()
: array<string|int, mixed>
-
setUp()
: void
-
tearDown()
: void
-
test_create()
: void
-
test_create_request()
: void
-
test_is_enabled()
: void
-
test_shutdown_handler()
: void
-
restoreEnvironmentVariables()
: void
-
setEnvironmentVariable()
: void
-
tearDownSharedState()
: void
$environmentVariables
private
array<string|int, mixed>
$environmentVariables
= []
$scope
private
ScopeInterface
$scope
$tracer
private
TracerInterface|MockObject
$tracer
enabledProvider()
public
static enabledProvider() : array<string|int, mixed>
Return values
array<string|int, mixed>
setUp()
public
setUp() : void
tearDown()
public
tearDown() : void
test_create()
public
test_create() : void
test_create_request()
public
test_create_request() : void
test_is_enabled()
public
test_is_enabled(string $enabled, string|null $method, bool $expected) : void
Parameters
-
$enabled
: string
-
-
$method
: string|null
-
-
$expected
: bool
-
-
#[BackupGlobals]
-
true
-
#[DataProvider]
-
'enabledProvider'
test_shutdown_handler()
public
test_shutdown_handler() : void
restoreEnvironmentVariables()
protected
restoreEnvironmentVariables() : void
setEnvironmentVariable()
protected
setEnvironmentVariable(string $variable, mixed $value) : void
Parameters
-
$variable
: string
-
-
$value
: mixed
-
tearDownSharedState()
protected
tearDownSharedState() : void