LogsExporterFactoryTest
extends TestCase
uses
TestState
-
#[CoversClass]
-
\OpenTelemetry\Contrib\Otlp\LogsExporterFactory::class
Table of Contents
Properties
-
$environmentVariables
: array<string|int, mixed>
-
$transport
: TransportInterface|MockObject
-
$transportFactory
: TransportFactoryInterface|MockObject
Methods
-
configProvider()
: array<string|int, mixed>
-
setUp()
: void
-
test_create()
: void
-
test_unknown_protocol_exception()
: void
-
restoreEnvironmentVariables()
: void
-
setEnvironmentVariable()
: void
-
tearDownSharedState()
: void
$environmentVariables
private
array<string|int, mixed>
$environmentVariables
= []
$transport
private
TransportInterface|MockObject
$transport
$transportFactory
private
TransportFactoryInterface|MockObject
$transportFactory
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