AutoRootSpanTest
extends TestCase
in package
uses
TestState
Attributes
- #[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_converts_request_time_float_to_nanoseconds() : void
- test_create_request() : void
- test_create_start_timestamp_preserves_sub_second_precision_without_request_time_float() : void
- test_is_enabled() : void
- test_shutdown_handler() : void
- restoreEnvironmentVariables() : void
- setEnvironmentVariable() : void
- tearDownSharedState() : void
Properties
$environmentVariables
private
array<string|int, mixed>
$environmentVariables
= []
$scope
private
ScopeInterface
$scope
$tracer
private
TracerInterface|MockObject
$tracer
Methods
enabledProvider()
public
static enabledProvider() : array<string|int, mixed>
Return values
array<string|int, mixed>setUp()
public
setUp() : void
Attributes
- #[Override]
tearDown()
public
tearDown() : void
Attributes
- #[Override]
test_create()
public
test_create() : void
test_create_converts_request_time_float_to_nanoseconds()
public
test_create_converts_request_time_float_to_nanoseconds() : void
test_create_request()
public
test_create_request() : void
Attributes
- #[BackupGlobals]
- true
test_create_start_timestamp_preserves_sub_second_precision_without_request_time_float()
public
test_create_start_timestamp_preserves_sub_second_precision_without_request_time_float() : void
test_is_enabled()
public
test_is_enabled(string $enabled, string|null $method, bool $expected) : void
Parameters
- $enabled : string
- $method : string|null
- $expected : bool
Attributes
- #[BackupGlobals]
- true
- #[DataProvider]
- 'enabledProvider'
test_shutdown_handler()
public
test_shutdown_handler() : 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]