AlwaysRecordSamplerTest
extends TestCase
in package
Attributes
- #[CoversClass]
- \OpenTelemetry\SDK\Trace\Sampler\AlwaysRecordSampler::class
Table of Contents
Properties
Methods
- setUp() : void
- shouldSampleProvider() : iterable<string|int, mixed>
- test_get_description() : void
- test_should_sample() : void
- createMockSamplerInvokedOnce() : SamplerInterface
Properties
$rootSampler
private
SamplerInterface
$rootSampler
Methods
setUp()
public
setUp() : void
Attributes
- #[Override]
shouldSampleProvider()
public
static shouldSampleProvider() : iterable<string|int, mixed>
Return values
iterable<string|int, mixed>test_get_description()
public
test_get_description() : void
test_should_sample()
public
test_should_sample(SamplerInterface $rootSampler, int $result) : void
Parameters
- $rootSampler : SamplerInterface
- $result : int
Attributes
- #[DataProvider]
- 'shouldSampleProvider'
createMockSamplerInvokedOnce()
private
static createMockSamplerInvokedOnce(int $resultDecision) : SamplerInterface
Parameters
- $resultDecision : int