OpenTelemetry PHP

SdkTest extends TestCase
in package
uses TestState

Attributes
#[CoversClass]
\OpenTelemetry\SDK\Sdk::class

Table of Contents

Properties

$environmentVariables  : array<string|int, mixed>
$eventLoggerProvider  : EventLoggerProviderInterface
$loggerProvider  : LoggerProviderInterface
$meterProvider  : MeterProviderInterface
$propagator  : TextMapPropagatorInterface
$tracerProvider  : TracerProviderInterface

Methods

disabledProvider()  : array<string|int, mixed>
instrumentationDisabledProvider()  : array<string|int, mixed>
setUp()  : void
tearDown()  : void
test_builder()  : void
test_getters()  : void
test_is_disabled()  : void
test_is_instrumentation_disabled()  : void
test_is_not_disabled_by_default()  : void
restoreEnvironmentVariables()  : void
setEnvironmentVariable()  : void
tearDownSharedState()  : void

Properties

$environmentVariables

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

Methods

disabledProvider()

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

instrumentationDisabledProvider()

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

test_builder()

public test_builder() : void

test_getters()

public test_getters() : void

test_is_disabled()

public test_is_disabled(string $value, bool $expected) : void
Parameters
$value : string
$expected : bool
Attributes
#[DataProvider]
'disabledProvider'

test_is_instrumentation_disabled()

public test_is_instrumentation_disabled(string $value, string $name, bool $expected) : void
Parameters
$value : string
$name : string
$expected : bool
Attributes
#[DataProvider]
'instrumentationDisabledProvider'

test_is_not_disabled_by_default()

public test_is_not_disabled_by_default() : 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