MeterProviderTest
extends TestCase
in package
uses
TestState
FinalYes
Attributes
- #[CoversNothing]
Table of Contents
Properties
- $environmentVariables : array<string|int, mixed>
Methods
- test_returns_noop_meter_when_sdk_disabled() : void
- test_weak_asynchronous_observer_is_released_when_instance_out_of_scope() : void
- restoreEnvironmentVariables() : void
- setEnvironmentVariable() : void
- tearDownSharedState() : void
- meterProvider() : MeterProviderInterface
Properties
$environmentVariables
private
array<string|int, mixed>
$environmentVariables
= []
Methods
test_returns_noop_meter_when_sdk_disabled()
public
test_returns_noop_meter_when_sdk_disabled() : void
test_weak_asynchronous_observer_is_released_when_instance_out_of_scope()
public
test_weak_asynchronous_observer_is_released_when_instance_out_of_scope() : 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]
meterProvider()
private
meterProvider(MetricReaderInterface|MetricSourceRegistryInterface|DefaultAggregationProviderInterface $metricReader, ClockInterface $clock) : MeterProviderInterface
Parameters
- $metricReader : MetricReaderInterface|MetricSourceRegistryInterface|DefaultAggregationProviderInterface
- $clock : ClockInterface