SpanExporterFactoryTest
extends TestCase
uses
TestState
-
psalm-suppress
-
-
#[CoversClass]
-
\OpenTelemetry\Contrib\Otlp\SpanExporterFactory::class
Table of Contents
Properties
-
$environmentVariables
: array<string|int, mixed>
-
$transport
: TransportInterface
-
$transportFactory
: TransportFactoryInterface
Methods
-
configProvider()
: array<string|int, mixed>
-
setUp()
: void
-
test_create()
: void
-
test_unknown_protocol_exception()
: void
-
restoreEnvironmentVariables()
: void
-
setEnvironmentVariable()
: void
-
tearDownSharedState()
: void
configProvider()
public
static configProvider() : array<string|int, mixed>
Return values
array<string|int, mixed>
setUp()
public
setUp() : void
test_create()
public
test_create(array<string|int, mixed> $env, string $endpoint, string $protocol, string $compression[, array<string|int, mixed> $headerKeys = [] ][, array<string|int, mixed> $expectedValues = [] ]) : void
Parameters
-
$env
: array<string|int, mixed>
-
-
$endpoint
: string
-
-
$protocol
: string
-
-
$compression
: string
-
-
$headerKeys
: array<string|int, mixed>
= []
-
-
$expectedValues
: array<string|int, mixed>
= []
-
-
#[DataProvider]
-
'configProvider'
test_unknown_protocol_exception()
public
test_unknown_protocol_exception() : void
restoreEnvironmentVariables()
protected
restoreEnvironmentVariables() : void
setEnvironmentVariable()
protected
setEnvironmentVariable(string $variable, mixed $value) : void
Parameters
-
$variable
: string
-
-
$value
: mixed
-
tearDownSharedState()
protected
tearDownSharedState() : void