OpenTelemetry PHP

LogsExporterFactoryTest extends TestCase
in package
uses TestState

Attributes
#[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

Properties

$environmentVariables

private array<string|int, mixed> $environmentVariables = []

Methods

configProvider()

public static configProvider() : array<string|int, mixed>
Return values
array<string|int, mixed>

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> = []
Attributes
#[DataProvider]
'configProvider'

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]

        
On this page

Search results