OtlpUtilTest
extends TestCase
uses
TestState
-
#[CoversClass]
-
\OpenTelemetry\Contrib\Otlp\OtlpUtil::class
Table of Contents
Properties
-
$environmentVariables
: array<string|int, mixed>
Methods
-
headersProvider()
: array<string|int, mixed>
-
methodProvider()
: array<string|int, mixed>
-
test_get_headers()
: void
-
test_get_user_agent_header()
: void
-
test_method()
: void
-
test_method_not_defined()
: void
-
restoreEnvironmentVariables()
: void
-
setEnvironmentVariable()
: void
-
tearDownSharedState()
: void
$environmentVariables
private
array<string|int, mixed>
$environmentVariables
= []
public
static headersProvider() : array<string|int, mixed>
Return values
array<string|int, mixed>
methodProvider()
public
static methodProvider() : array<string|int, mixed>
Return values
array<string|int, mixed>
public
test_get_headers(string $signal, array<string|int, mixed> $env, array<string|int, mixed> $expected) : void
Parameters
-
$signal
: string
-
-
$env
: array<string|int, mixed>
-
-
$expected
: array<string|int, mixed>
-
-
#[DataProvider]
-
'headersProvider'
public
test_get_user_agent_header() : void
test_method()
public
test_method(string $signal, string $expected) : void
Parameters
-
$signal
: string
-
-
$expected
: string
-
-
#[DataProvider]
-
'methodProvider'
test_method_not_defined()
public
test_method_not_defined() : void
restoreEnvironmentVariables()
protected
restoreEnvironmentVariables() : void
setEnvironmentVariable()
protected
setEnvironmentVariable(string $variable, mixed $value) : void
Parameters
-
$variable
: string
-
-
$value
: mixed
-
tearDownSharedState()
protected
tearDownSharedState() : void