OpenTelemetry PHP

ExporterFactoryTest extends TestCase
in package
uses TestState

Attributes
#[CoversClass]
\OpenTelemetry\SDK\Logs\ExporterFactory::class

Table of Contents

Properties

$environmentVariables  : array<string|int, mixed>

Methods

exporterProvider()  : array<string|int, mixed>
test_create()  : void
test_rejects_multiple()  : void
restoreEnvironmentVariables()  : void
setEnvironmentVariable()  : void
tearDownSharedState()  : void

Properties

$environmentVariables

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

Methods

exporterProvider()

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

test_create()

public test_create(string $name, class-string $expected) : void
Parameters
$name : string
$expected : class-string
Attributes
#[DataProvider]
'exporterProvider'

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