OpenTelemetry PHP

OtlpUtilTest extends TestCase
in package
uses TestState

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

Properties

$environmentVariables

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

Methods

headersProvider()

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>

test_get_headers()

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

test_get_user_agent_header()

public test_get_user_agent_header() : void

test_method()

public test_method(string $signal, string $expected) : void
Parameters
$signal : string
$expected : string
Attributes
#[DataProvider]
'methodProvider'

test_method_not_defined()

public test_method_not_defined() : void

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