SpanProcessorFactoryTest
extends TestCase
uses
TestState
-
#[CoversClass]
-
\OpenTelemetry\SDK\Trace\SpanProcessorFactory::class
Table of Contents
Properties
-
$environmentVariables
: array<string|int, mixed>
Methods
-
processorProvider()
: array<string|int, mixed>
-
test_span_processor_factory_create_span_processor_from_environment()
: void
-
test_span_processor_factory_default_span_processor()
: void
-
test_span_processor_factory_invalid_span_processor()
: void
-
restoreEnvironmentVariables()
: void
-
setEnvironmentVariable()
: void
-
tearDownSharedState()
: void
$environmentVariables
private
array<string|int, mixed>
$environmentVariables
= []
processorProvider()
public
static processorProvider() : array<string|int, mixed>
Return values
array<string|int, mixed>
test_span_processor_factory_create_span_processor_from_environment()
public
test_span_processor_factory_create_span_processor_from_environment(string $processorName, string $expected) : void
Parameters
-
$processorName
: string
-
-
$expected
: string
-
-
psalm-suppress
-
-
#[DataProvider]
-
'processorProvider'
test_span_processor_factory_default_span_processor()
public
test_span_processor_factory_default_span_processor() : void
test_span_processor_factory_invalid_span_processor()
public
test_span_processor_factory_invalid_span_processor() : void
restoreEnvironmentVariables()
protected
restoreEnvironmentVariables() : void
setEnvironmentVariable()
protected
setEnvironmentVariable(string $variable, mixed $value) : void
Parameters
-
$variable
: string
-
-
$value
: mixed
-
tearDownSharedState()
protected
tearDownSharedState() : void