OpenTelemetry PHP

ExporterFactoryTest extends TestCase
in package
uses TestState

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

Table of Contents

Properties

$environmentVariables  : array<string|int, mixed>

Methods

envProvider()  : array<string|int, mixed>
invalidEnvProvider()  : array<string|int, mixed>
setUp()  : void
test_accepts_none_exporter_env_var()  : void
test_create_from_environment()  : void
test_throws_exception_for_invalid_or_unsupported_exporter_configs()  : void
restoreEnvironmentVariables()  : void
setEnvironmentVariable()  : void
tearDownSharedState()  : void

Properties

$environmentVariables

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

Methods

envProvider()

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

invalidEnvProvider()

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

test_accepts_none_exporter_env_var()

public test_accepts_none_exporter_env_var() : void
Attributes
#[Group]
'trace-compliance'

test_create_from_environment()

public test_create_from_environment(string $exporter, array<string|int, mixed> $env, string $expected) : void
Parameters
$exporter : string
$env : array<string|int, mixed>
$expected : string
Tags
psalm-param

class-string $expected

Attributes
#[DataProvider]
'envProvider'
#[Group]
'trace-compliance'

test_throws_exception_for_invalid_or_unsupported_exporter_configs()

public test_throws_exception_for_invalid_or_unsupported_exporter_configs(string $exporter[, array<string|int, mixed> $env = [] ]) : void
Parameters
$exporter : string
$env : array<string|int, mixed> = []
Attributes
#[DataProvider]
'invalidEnvProvider'
#[Group]
'trace-compliance'

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