ExporterFactoryTest
extends TestCase
uses
TestState
-
#[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
$environmentVariables
private
array<string|int, mixed>
$environmentVariables
= []
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>
setUp()
public
setUp() : void
test_accepts_none_exporter_env_var()
public
test_accepts_none_exporter_env_var() : void
-
#[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
-
-
psalm-param
-
-
#[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>
= []
-
-
#[DataProvider]
-
'invalidEnvProvider'
-
#[Group]
-
'trace-compliance'
restoreEnvironmentVariables()
protected
restoreEnvironmentVariables() : void
setEnvironmentVariable()
protected
setEnvironmentVariable(string $variable, mixed $value) : void
Parameters
-
$variable
: string
-
-
$value
: mixed
-
tearDownSharedState()
protected
tearDownSharedState() : void