opentelemetry-php/tests/unit/Tracing/Sampler/AlwaysOnSamplerTest.php

13 lines
330 B
PHP

<?php
require __DIR__.'/../../../../vendor/autoload.php';
use OpenTelemetry\Tracing\Sampler\AlwaysOnSampler;
use PHPUnit\Framework\TestCase;
class AlwaysOnTest extends TestCase
{
public function testAlwaysOnSampler()
{
$sampler = new AlwaysOnSampler();
$this->assertTrue($sampler->shouldSample());
}
}